Diff for /parser3/src/classes/table.C between versions 1.63 and 1.65

version 1.63, 2001/04/20 14:18:30 version 1.65, 2001/04/26 14:55:13
Line 186  static void _offset(Request& r, const St Line 186  static void _offset(Request& r, const St
         }          }
 }  }
   
 /// @test $a.menu{ $a[123] }  
 static void _menu(Request& r, const String& method_name, MethodParams *params) {  static void _menu(Request& r, const String& method_name, MethodParams *params) {
         Value& body_code=params->get_junction(0, "body must be code");          Value& body_code=params->get_junction(0, "body must be code");
                   
         Value *delim_code=params->size()==2?&params->get(1):0;          Value *delim_code=params->size()==2?&params->get(1):0;
   
         Table& table=static_cast<VTable *>(r.self)->table();          VTable& vtable=*static_cast<VTable *>(r.self);
           Table& table=vtable.table();
         bool need_delim=false;          bool need_delim=false;
         int saved_current=table.current();          vtable.lock(); int saved_current=table.current();
         for(int row=0; row<table.size(); row++) {          for(int row=0; row<table.size(); row++) {
                 table.set_current(row);                  table.set_current(row);
   
Line 207  static void _menu(Request& r, const Stri Line 207  static void _menu(Request& r, const Stri
                 }                  }
                 r.write_pass_lang(processed_body);                  r.write_pass_lang(processed_body);
         }          }
         table.set_current(saved_current);          table.set_current(saved_current); vtable.unlock();
 }  }
   
 static void _empty(Request& r, const String& method_name, MethodParams *params) {  static void _empty(Request& r, const String& method_name, MethodParams *params) {
Line 218  static void _empty(Request& r, const Str Line 218  static void _empty(Request& r, const Str
                 r.write_pass_lang(r.process(params->get(1)));                  r.write_pass_lang(r.process(params->get(1)));
 }  }
   
   /// used by table: _record / store_column_item_to_hash
 struct Record_info {  struct Record_info {
         Pool *pool;          Pool *pool;
         Table *table;          Table *table;

Removed from v.1.63  
changed lines
  Added in v.1.65


E-mail: