Diff for /parser3/src/classes/table.C between versions 1.160 and 1.162

version 1.160, 2002/08/15 10:38:18 version 1.162, 2002/09/17 09:30:06
Line 281  static void _menu(Request& r, const Stri Line 281  static void _menu(Request& r, const Stri
         for(int row=0; row<size; row++) {          for(int row=0; row<size; row++) {
                 table.set_current(row);                  table.set_current(row);
   
                 StringOrValue processed_body=r.process(body_code);                  StringOrValue sv_processed=r.process(body_code);
                 if(delim_maybe_code) { // delimiter set?                  const String *s_processed=sv_processed.get_string();
                         const String *string=processed_body.get_string();                  if(delim_maybe_code && s_processed && s_processed->size()) { // delimiter set and we have body
                         if(need_delim && string && string->size()) // need delim & iteration produced string?                          if(need_delim) // need delim & iteration produced string?
                                 r.write_pass_lang(r.process(*delim_maybe_code));                                  r.write_pass_lang(r.process(*delim_maybe_code));
                         need_delim=true;                          need_delim=true;
                 }                  }
                 r.write_pass_lang(processed_body);                  r.write_pass_lang(sv_processed);
         }          }
         table.set_current(saved_current);          table.set_current(saved_current);
 }  }
Line 317  static void table_row_to_hash(Array::Ite Line 317  static void table_row_to_hash(Array::Ite
                                         new(pool) VString(*row.get_string(value_field)));                                          new(pool) VString(*row.get_string(value_field)));
                 }                  }
                                   
                 ri.hash->put(*row.get_string(ri.key_field), &result);                  const String& key=*row.get_string(ri.key_field);
                   if(ri.hash->put_dont_replace(key, &result)) // put. existed?
                           throw Exception("parser.runtime",
                                   &key,
                                   "duplicate key");
         }          }
 }  }
 static void _hash(Request& r, const String& method_name, MethodParams *params) {  static void _hash(Request& r, const String& method_name, MethodParams *params) {

Removed from v.1.160  
changed lines
  Added in v.1.162


E-mail: