|
|
| version 1.63, 2001/04/20 14:18:30 | version 1.64, 2001/04/23 10:58:27 |
|---|---|
| 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?¶ms->get(1):0; | Value *delim_code=params->size()==2?¶ms->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) { |