|
|
| version 1.183, 2003/09/25 09:15:02 | version 1.185, 2003/09/29 11:03:21 |
|---|---|
| Line 247 static void _save(Request& r, MethodPara | Line 247 static void _save(Request& r, MethodPara |
| for(int column=0; column<lsize; column++) { | for(int column=0; column<lsize; column++) { |
| char *cindex_tab=new(PointerFreeGC) char[MAX_NUMBER]; | char *cindex_tab=new(PointerFreeGC) char[MAX_NUMBER]; |
| sdata.append_know_length(cindex_tab, | sdata.append_know_length(cindex_tab, |
| snprintf(cindex_tab, MAX_NUMBER, "%d\t", column), | snprintf(cindex_tab, MAX_NUMBER, |
| String::L_CLEAN); | column<lsize-1?"%d\t":"%d", column), |
| String::L_CLEAN); | |
| } | } |
| else | else |
| sdata.append_help_length("empty nameless table", 0, String::L_CLEAN); | sdata.append_help_length("empty nameless table", 0, String::L_CLEAN); |
| Line 601 static void _locate(Request& r, MethodPa | Line 602 static void _locate(Request& r, MethodPa |
| static void _flip(Request& r, MethodParams& params) { | static void _flip(Request& r, MethodParams& params) { |
| Table& old_table=GET_SELF(r, VTable).table(); | Table& old_table=GET_SELF(r, VTable).table(); |
| Table& new_table=*new Table(old_table.columns()); | Table& new_table=*new Table(0); |
| if(size_t old_count=old_table.count()) | if(size_t old_count=old_table.count()) |
| if(size_t old_cols=old_table[0]->count()) | if(size_t old_cols=old_table[0]->count()) |
| for(size_t column=0; column<old_cols; column++) { | for(size_t column=0; column<old_cols; column++) { |