Diff for /parser3/src/main/execute.C between versions 1.71 and 1.73

version 1.71, 2001/03/08 13:42:32 version 1.73, 2001/03/08 15:15:46
Line 92  void Request::execute(const Array& ops) Line 92  void Request::execute(const Array& ops)
         for(int i=0; i<size; i++) {          for(int i=0; i<size; i++) {
                 Operation op;                  Operation op;
                 op.cast=ops.quick_get(i);                  op.cast=ops.quick_get(i);
                 fprintf(stderr, "%d:%s", stack.top()+1, opcode_name[op.code]); fflush(stderr);                  fprintf(stderr, "%d:%s", stack.top_index(), opcode_name[op.code]); fflush(stderr);
   
                 switch(op.code) {                  switch(op.code) {
                 // param in next instruction                  // param in next instruction
Line 105  void Request::execute(const Array& ops) Line 105  void Request::execute(const Array& ops)
                         }                          }
                 case OP_CODE__STORE_PARAM:                  case OP_CODE__STORE_PARAM:
                         {                          {
                                 VMethodFrame *frame=static_cast<VMethodFrame *>(stack[stack.top()]);                                  VMethodFrame *frame=static_cast<VMethodFrame *>(stack.top_value());
                                 // code                                  // code
                                 const Array *local_ops=reinterpret_cast<const Array *>(ops.quick_get(++i));                                  const Array *local_ops=reinterpret_cast<const Array *>(ops.quick_get(++i));
                                 fprintf(stderr, " (%d)\n", local_ops->size());                                  fprintf(stderr, " (%d)\n", local_ops->size());
Line 258  void Request::execute(const Array& ops) Line 258  void Request::execute(const Array& ops)
                 case OP_STORE_PARAM:                  case OP_STORE_PARAM:
                         {                          {
                                 Value *value=POP();                                  Value *value=POP();
                                 VMethodFrame *frame=static_cast<VMethodFrame *>(stack[0]);                                  VMethodFrame *frame=static_cast<VMethodFrame *>(stack.top_value());
                                 frame->store_param(value);                                  frame->store_param(value);
                                 break;                                  break;
                         }                          }
Line 544  Value *Request::get_element() { Line 544  Value *Request::get_element() {
         Value *value=ncontext->get_element(name);          Value *value=ncontext->get_element(name);
   
         // autocalc possible code-junction          // autocalc possible code-junction
         value=value?&autocalc(*value, true/*make_string*/):NEW VUnknown(pool());          value=value?&autocalc(*value):NEW VUnknown(pool());
   
         value->set_name(name);          value->set_name(name);
         return value;          return value;

Removed from v.1.71  
changed lines
  Added in v.1.73


E-mail: