|
|
| version 1.403, 2017/01/13 13:50:28 | version 1.404, 2017/01/26 22:57:47 |
|---|---|
| Line 1470 const String* Request::execute_virtual_m | Line 1470 const String* Request::execute_virtual_m |
| } | } |
| const String* Request::get_method_filespec(const Method* method){ | const String* Request::get_method_filespec(const Method* method){ |
| Operation::Origin origin=get_method_origin(method); | |
| return origin.file_no ? get_used_filespec(origin.file_no) : NULL; | |
| } | |
| const Operation::Origin Request::get_method_origin(const Method* method){ | |
| Operation::Origin origin={0, 0, 0}; | |
| if(ArrayOperation* code=method->parser_code) | if(ArrayOperation* code=method->parser_code) |
| if(code){ | if(code){ |
| Operation::Origin origin={0, 0, 0}; | |
| Array_iterator<Operation> i(*code); | Array_iterator<Operation> i(*code); |
| while( i.has_next() ){ | while( i.has_next() ){ |
| switch( i.next().code ){ | switch( i.next().code ){ |
| Line 1539 const String* Request::get_method_filesp | Line 1545 const String* Request::get_method_filesp |
| default: break; | default: break; |
| } | } |
| if(origin.file_no) | if(origin.file_no) |
| return get_used_filespec(origin.file_no); | return origin; |
| } | } |
| } | } |
| return 0; | return origin; |
| } | } |