--- parser3/src/classes/op.C 2009/07/06 12:13:30 1.190 +++ parser3/src/classes/op.C 2009/07/07 12:16:13 1.192 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_OP_C="$Date: 2009/07/06 12:13:30 $"; +static const char * const IDENT_OP_C="$Date: 2009/07/07 12:16:13 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -122,11 +122,8 @@ static void _untaint(Request& r, MethodP { Value& vbody=params.as_junction(params.count()-1, "body must be code"); - StringOrValue result; - { - Temp_lang temp_lang(r, lang); // set temporarily specified ^untaint[language; - result=r.process(vbody); // process marking tainted with that lang - } + Temp_lang temp_lang(r, lang); // set temporarily specified ^untaint[language; + StringOrValue result=r.process(vbody); // process marking tainted with that lang r.write_assign_lang(result); } } @@ -141,10 +138,7 @@ static void _taint(Request& r, MethodPar { Value& vbody=params.as_no_junction(params.count()-1, "body must not be code"); - String result; - result.append( - vbody.as_string(), // process marking tainted with that lang - lang, true); // force result language to specified + String result(vbody.as_string(), lang); // force result language to specified r.write_assign_lang(result); } } @@ -169,7 +163,7 @@ static void _process(Request& r, MethodP "no target class"); // temporary remove language change - Temp_lang temp_lang(r, String::L_PASS_APPENDED); + Temp_lang temp_lang(r, String::L_PARSER_CODE); // temporary zero @main so to maybe-replace it in processed code Temp_method temp_method_main(*target_class, main_method_name, 0); // temporary zero @auto so it wouldn't be auto-called in Request::use_buf