--- parser3/src/include/pa_request.h 2001/03/10 11:44:31 1.24 +++ parser3/src/include/pa_request.h 2001/03/10 15:17:44 1.28 @@ -1,5 +1,5 @@ /* - $Id: pa_request.h,v 1.24 2001/03/10 11:44:31 paf Exp $ + $Id: pa_request.h,v 1.28 2001/03/10 15:17:44 paf Exp $ */ #ifndef PA_REQUEST_H @@ -14,6 +14,7 @@ #include "pa_vclass.h" #define MAIN_METHOD_NAME "main" +#define AUTO_METHOD_NAME "auto" #define RUN_NAME "RUN" #define ROOT_NAME "ROOT" @@ -43,10 +44,15 @@ public: void core(); void use(char *file, String *alias); // core.C - Value& autocalc(Value& value, bool make_string=true); // execute.C + Value& autocalc(Value& value, const String *name=0, bool make_string=true); // execute.C - void write(String& astring) { - wcontext->write(astring, lang); // append string, assigning untaint language + void write(const String& astring) { + wcontext->write(astring, String::Untaint_lang::NO); // write(const) = clean + } + + void write(Value& avalue) { + // appending possible string, assigning untaint language + wcontext->write(avalue, lang); } public: @@ -79,6 +85,7 @@ private: // compile.C private: // execute.C + char *execute_static(VClass& vclass, String& method_name, bool return_cstr); void execute(const Array& ops); Value *get_element();