--- parser3/src/main/execute.C 2003/02/24 17:04:57 1.295.2.19 +++ parser3/src/main/execute.C 2003/03/04 15:20:07 1.295.2.24 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_EXECUTE_C="$Date: 2003/02/24 17:04:57 $"; +static const char* IDENT_EXECUTE_C="$Date: 2003/03/04 15:20:07 $"; #include "pa_opcode.h" #include "pa_array.h" @@ -116,7 +116,7 @@ void Request::execute(ArrayOperation& op //ArrayOperationPtr b_code; StringPtr name; - Value* ncontext; + ValuePtr ncontext; ArrayOperationPtr local_ops; @@ -178,7 +178,7 @@ void Request::execute(ArrayOperation& op { if(wcontext==method_frame) throw Exception("parser.runtime", - Exception::undefined_source, + Exception::undefined_source, "$.name outside of $name[...]"); stack.push(ValuePtr(wcontext)); @@ -190,7 +190,7 @@ void Request::execute(ArrayOperation& op { value=stack.pop().value; name=stack.pop().string(pool()); - ncontext=stack.pop().value.get(); + ncontext=stack.pop().value; ncontext->put_element(name, value, false); break; } @@ -201,7 +201,7 @@ void Request::execute(ArrayOperation& op value=stack.pop().value; name=stack.pop().string(pool()); - ncontext=stack.pop().value.get(); + ncontext=stack.pop().value; ncontext->put_element(name, value->as_expr_result(), false); break; } @@ -220,7 +220,7 @@ void Request::execute(ArrayOperation& op local_ops)))); name=stack.pop().string(pool()); - ncontext=stack.pop().value.get(); + ncontext=stack.pop().value; ncontext->put_element(name, value, false); break; } @@ -286,7 +286,7 @@ void Request::execute(ArrayOperation& op local_ops=i.next().ops; WContext *saved_wcontext=wcontext; - uchar saved_lang= flang; + String_UL saved_lang=flang; flang=String::UL_PASS_APPENDED; WWrapper local(ValuePtr(0)/*empty*/, wcontext); local.ref(); wcontext=&local; @@ -759,42 +759,42 @@ void Request::execute(ArrayOperation& op case OP_STR_LT: { b=stack.pop().value; a=stack.pop().value; - value=ValuePtr(new VBool(a->as_string(&pool()) < b->as_string(&pool()))); + value=ValuePtr(new VBool(*a->as_string(&pool()) < *b->as_string(&pool()))); stack.push(value); break; } case OP_STR_GT: { b=stack.pop().value; a=stack.pop().value; - value=ValuePtr(new VBool(a->as_string(&pool()) > b->as_string(&pool()))); + value=ValuePtr(new VBool(*a->as_string(&pool()) > *b->as_string(&pool()))); stack.push(value); break; } case OP_STR_LE: { b=stack.pop().value; a=stack.pop().value; - value=ValuePtr(new VBool(a->as_string(&pool()) <= b->as_string(&pool()))); + value=ValuePtr(new VBool(*a->as_string(&pool()) <= *b->as_string(&pool()))); stack.push(value); break; } case OP_STR_GE: { b=stack.pop().value; a=stack.pop().value; - value=ValuePtr(new VBool(a->as_string(&pool()) >= b->as_string(&pool()))); + value=ValuePtr(new VBool(*a->as_string(&pool()) >= *b->as_string(&pool()))); stack.push(value); break; } case OP_STR_EQ: { b=stack.pop().value; a=stack.pop().value; - value=ValuePtr(new VBool(a->as_string(&pool()) == b->as_string(&pool()))); + value=ValuePtr(new VBool(*a->as_string(&pool()) == *b->as_string(&pool()))); stack.push(value); break; } case OP_STR_NE: { b=stack.pop().value; a=stack.pop().value; - value=ValuePtr(new VBool(a->as_string(&pool()) != b->as_string(&pool()))); + value=ValuePtr(new VBool(*a->as_string(&pool()) != *b->as_string(&pool()))); stack.push(value); break; } @@ -847,7 +847,8 @@ ValuePtr Request::get_element(StringPtr& if(junction->self->get_class()!=ncontext.get()) throw Exception("parser.runtime", name, - "constructor must be declared in class %s", ncontext->get_class()->name_cstr()); + "constructor must be declared in class '%s'", + ncontext->get_class()->name_cstr()); } value_ready: