Diff for /parser3/src/main/execute.C between versions 1.403 and 1.406

version 1.403, 2017/01/13 13:50:28 version 1.406, 2018/02/02 22:59:55
Line 1 Line 1
 /** @file  /** @file
         Parser: executor part of request class.          Parser: executor part of request class.
   
         Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com)          Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
Line 672  void Request::execute(ArrayOperation& op Line 672  void Request::execute(ArrayOperation& op
   
                 case OP::OP_OBJECT_POOL:                  case OP::OP_OBJECT_POOL:
                         {                          {
                                   debug_name=0;
   
                                 ArrayOperation& local_ops=*i.next().ops;                                  ArrayOperation& local_ops=*i.next().ops;
                                                                   
                                 WContext *saved_wcontext=wcontext;                                  WContext *saved_wcontext=wcontext;
Line 1470  const String* Request::execute_virtual_m Line 1472  const String* Request::execute_virtual_m
 }  }
   
 const String* Request::get_method_filespec(const Method* method){  const String* Request::get_method_filespec(const Method* method){
           Operation::Origin origin=get_method_origin(method);
           return origin.file_no ? get_used_filespec(origin.file_no) : NULL;
   }
   
   const Operation::Origin Request::get_method_origin(const Method* method){
           Operation::Origin origin={0, 0, 0};
   
         if(ArrayOperation* code=method->parser_code)          if(ArrayOperation* code=method->parser_code)
                 if(code){                  if(code){
                         Operation::Origin origin={0, 0, 0};  
                         Array_iterator<Operation> i(*code);                          Array_iterator<Operation> i(*code);
                         while( i.has_next() ){                          while( i.has_next() ){
                                 switch( i.next().code ){                                  switch( i.next().code ){
Line 1539  const String* Request::get_method_filesp Line 1547  const String* Request::get_method_filesp
                                         default: break;                                          default: break;
                                 }                                  }
                                 if(origin.file_no)                                  if(origin.file_no)
                                         return get_used_filespec(origin.file_no);                                          return origin;
                         }                          }
                 }                  }
         return 0;          return origin;
 }  }
   

Removed from v.1.403  
changed lines
  Added in v.1.406


E-mail: