not part of build, fixing 65987, current() function. Code by kvisco@ziplink.net, r=peterv,me.

git-svn-id: svn://10.0.0.236/trunk@85626 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
axel%pike.org
2001-01-27 15:05:41 +00:00
parent b23e7af50b
commit d8a716fe41
9 changed files with 97 additions and 49 deletions

View File

@@ -7,9 +7,10 @@
/**
* Creates a new current function call
**/
CurrentFunctionCall::CurrentFunctionCall() :
CurrentFunctionCall::CurrentFunctionCall(ProcessorState* ps) :
FunctionCall(CURRENT_FN)
{
this->processorState = ps;
}
/**
@@ -23,7 +24,7 @@ CurrentFunctionCall::CurrentFunctionCall() :
ExprResult* CurrentFunctionCall::evaluate(Node* context, ContextState* cs) {
NodeSet* result = new NodeSet(1);
result->add(context);
result->add(processorState->getCurrentNode());
return result;
} //-- evaluate