Diff for /parser3/src/classes/reflection.C between versions 1.73 and 1.74

version 1.73, 2016/12/01 23:42:35 version 1.74, 2016/12/02 17:39:29
Line 102  static void _create(Request& r, MethodPa Line 102  static void _create(Request& r, MethodPa
         if(nparams>MAX_CREATE_PARAMS)          if(nparams>MAX_CREATE_PARAMS)
                 throw Exception(PARSER_RUNTIME, 0, "arguments count should not exceed %d", MAX_CREATE_PARAMS);                  throw Exception(PARSER_RUNTIME, 0, "arguments count should not exceed %d", MAX_CREATE_PARAMS);
   
           Value* args[MAX_CREATE_PARAMS];
         CONSTRUCTOR_FRAME_ACTION(*method, r.get_method_frame(), object, {          CONSTRUCTOR_FRAME_ACTION(*method, r.get_method_frame(), object, {
                 Value* v[MAX_CREATE_PARAMS];  
                 if(nparams>0){                  if(nparams>0){
                         if(params_hash){                          if(params_hash){
                                 for(HashStringValue::Iterator i(*params_hash); i; i.next() )                                  int i=0;
                                         v[i]=i.value();                                  for(HashStringValue::Iterator h(*params_hash); h; h.next())
                                           args[i++]=h.value();
                         } else {                          } else {
                                 for(int i=0; i<nparams; i++)                                  for(int i=0; i<nparams; i++)
                                         v[i]=&r.process(params[i+params_offset]);                                          args[i]=&r.process(params[i+params_offset]);
                         }                          }
                         frame.store_params((Value**)&v, nparams);                          frame.store_params((Value**)&args, nparams);
                 } else {                  } else {
                         frame.empty_params();                          frame.empty_params();
                 }                  }

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


E-mail: