Diff for /parser3/src/main/execute.C between versions 1.237 and 1.239

version 1.237, 2002/04/18 11:41:29 version 1.239, 2002/04/22 10:15:12
Line 210  void Request::execute(const Array& ops) Line 210  void Request::execute(const Array& ops)
 #endif                            #endif                          
                                 Junction& j=*NEW Junction(pool(),                                   Junction& j=*NEW Junction(pool(), 
                                         *self, 0, 0,                                          *self, 0, 0,
                                         root,                                           0, 
                                         rcontext,                                           0, 
                                         wcontext,                                           0, 
                                         local_ops);                                          local_ops);
                                   
                                 value=NEW VJunction(j);                                  value=NEW VJunction(j);
                                 const String& name=POP_NAME();                                  const String& name=POP_NAME();
                                 Value *ncontext=POP();                                  Value *ncontext=POP();
Line 859  StringOrValue Request::process(Value& in Line 859  StringOrValue Request::process(Value& in
 #ifdef DEBUG_EXECUTE  #ifdef DEBUG_EXECUTE
                 debug_printf(pool(), "ja->\n");                  debug_printf(pool(), "ja->\n");
 #endif  #endif
   
                 PUSH(self);                    PUSH(self);  
                 PUSH(root);                    PUSH(root);  
                 PUSH(rcontext);                    PUSH(rcontext);  
                 PUSH(wcontext);                  PUSH(wcontext);
                   
                   WContext *jwcontext;
                 self=&junction->self;                  self=&junction->self;
                 root=junction->root;                  if(junction->root) {
                 rcontext=junction->rcontext;                          root=junction->root;
                           rcontext=junction->rcontext;
                           jwcontext=junction->wcontext;
                   } else
                           jwcontext=wcontext;
   
                 // for expression method params                  // for expression method params
                 // wcontext is set 0                  // wcontext is set 0
                 // using the fact in decision "which wwrapper to use"                  // using the fact in decision "which wwrapper to use"
                 bool using_code_frame=intercept_string && junction->wcontext;                  bool using_code_frame=intercept_string && jwcontext;
                 if(using_code_frame) {                  if(using_code_frame) {
                         // almost plain wwrapper about junction wcontext,                           // almost plain wwrapper about junction wcontext, 
                         // BUT intercepts string writes                          // BUT intercepts string writes
                         VCodeFrame local(pool(), *junction->wcontext);                            VCodeFrame local(pool(), *jwcontext);
                         wcontext=&local;                          wcontext=&local;
   
                         // execute it                          // execute it

Removed from v.1.237  
changed lines
  Added in v.1.239


E-mail: