--- parser3/src/main/execute.C 2002/09/02 10:49:22 1.258 +++ parser3/src/main/execute.C 2002/09/10 14:56:34 1.268 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_EXECUTE_C="$Date: 2002/09/02 10:49:22 $"; +static const char* IDENT_EXECUTE_C="$Date: 2002/09/10 14:56:34 $"; #include "pa_opcode.h" #include "pa_array.h" @@ -111,7 +111,7 @@ void debug_dump(Pool& pool, int level, c #define POP_NAME() static_cast(stack.pop())->as_string() #define POP_CODE() static_cast(stack.pop()) -void Request::execute(const Array& ops, bool clean_junctions) { +void Request::execute(const Array& ops) { // _asm int 3; #ifdef DEBUG_EXECUTE debug_printf(pool(), "source----------------------------\n"); @@ -286,7 +286,7 @@ void Request::execute(const Array& ops, WContext *saved_wcontext=wcontext; uchar saved_lang= flang; flang=String::UL_PASS_APPENDED; - WWrapper local(pool(), 0 /*empty*/); + WWrapper local(pool(), 0 /*empty*/, wcontext); wcontext=&local; execute(*local_ops); @@ -303,7 +303,7 @@ void Request::execute(const Array& ops, const Array *local_ops=reinterpret_cast(i.next()); WContext *saved_wcontext=wcontext; - WWrapper local(pool(), 0 /*empty*/); + WWrapper local(pool(), 0 /*empty*/, wcontext); wcontext=&local; execute(*local_ops); @@ -695,7 +695,7 @@ void Request::execute(const Array& ops, { b=POP(); a=POP(); double result=a->as_double() - b->as_double(); - value=NEW VBool(pool(), result < 0); + value=NEW VBool(pool(), result < 0.0); PUSH(value); break; } @@ -703,7 +703,7 @@ void Request::execute(const Array& ops, { b=POP(); a=POP(); double result=a->as_double() - b->as_double(); - value=NEW VBool(pool(), result > 0); + value=NEW VBool(pool(), result > 0.0); PUSH(value); break; } @@ -711,7 +711,7 @@ void Request::execute(const Array& ops, { b=POP(); a=POP(); double result=a->as_double() - b->as_double(); - value=NEW VBool(pool(), result <= 0); + value=NEW VBool(pool(), result <= 0.0); PUSH(value); break; } @@ -719,7 +719,7 @@ void Request::execute(const Array& ops, { b=POP(); a=POP(); double result=a->as_double() - b->as_double(); - value=NEW VBool(pool(), result >= 0); + value=NEW VBool(pool(), result >= 0.0); PUSH(value); break; } @@ -727,7 +727,7 @@ void Request::execute(const Array& ops, { b=POP(); a=POP(); double result=a->as_double() - b->as_double(); - value=NEW VBool(pool(), result == 0); + value=NEW VBool(pool(), result == 0.0); PUSH(value); break; } @@ -735,7 +735,7 @@ void Request::execute(const Array& ops, { b=POP(); a=POP(); double result=a->as_double() - b->as_double(); - value=NEW VBool(pool(), result != 0); + value=NEW VBool(pool(), result != 0.0); PUSH(value); break; } @@ -875,7 +875,7 @@ StringOrValue Request::process(Value& in if(using_code_frame) { // almost plain wwrapper about junction wcontext, // BUT intercepts string writes - VCodeFrame local(pool(), *junction->wcontext); + VCodeFrame local(pool(), *junction->wcontext, junction->wcontext); wcontext=&local; // execute it @@ -887,7 +887,7 @@ StringOrValue Request::process(Value& in result.set_string(*wcontext->get_string()); } else { // plain wwrapper - WWrapper local(pool(), 0/*empty*/); + WWrapper local(pool(), 0/*empty*/, wcontext); wcontext=&local; // execute it @@ -945,7 +945,7 @@ void Request::execute_method(Value& asel // initialize contexts //method_frame=rcontext=self=&aself; self=&aself; -// WWrapper local(pool(), &aself); +// WWrapper local(pool(), &aself, wcontext); // wcontext=&local; Junction local_junction(pool(), *self, self->get_class(), &method, 0,0,0,0); VMethodFrame local_frame(pool(), method.name, local_junction);