Diff for /parser3/src/classes/table.C between versions 1.182 and 1.183

version 1.182, 2003/07/24 11:31:20 version 1.183, 2003/09/25 09:15:02
Line 207  static void _load(Request& r, MethodPara Line 207  static void _load(Request& r, MethodPara
         }          }
   
         // parse cells          // parse cells
         Table& table=*new Table(columns);          Table& table=*new Table(columns);//что-то очень плохое с realloc'ом: 1000 сильно помогает
         char *row_chars;          char *row_chars;
           int cells=0;
         while(row_chars=getrow(&data)) {          while(row_chars=getrow(&data)) {
                 // remove empty&comment lines                  // remove empty&comment lines
                 if(!*row_chars || *row_chars == '#')                  if(!*row_chars || *row_chars == '#')
Line 216  static void _load(Request& r, MethodPara Line 217  static void _load(Request& r, MethodPara
                 Table::element_type row(new ArrayString);                  Table::element_type row(new ArrayString);
                 while(char *cell_chars=lsplit(&row_chars, '\t')) {                  while(char *cell_chars=lsplit(&row_chars, '\t')) {
                         *row+=new String(cell_chars, 0, true);                          *row+=new String(cell_chars, 0, true);
                           cells++;
                 }                  }
                 table+=row;                  table+=row;
         };          };

Removed from v.1.182  
changed lines
  Added in v.1.183


E-mail: