|
|
| version 1.84, 2017/02/15 17:05:21 | version 1.86, 2017/05/17 14:22:11 |
|---|---|
| Line 66 static void _create(Request& r, MethodPa | Line 66 static void _create(Request& r, MethodPa |
| valid_options++; | valid_options++; |
| params_hash=vparams_hash->as_hash("arguments"); | params_hash=vparams_hash->as_hash("arguments"); |
| if(params.count()>1) | if(params.count()>1) |
| throw Exception(PARSER_RUNTIME, 0, "agruments should not be specified as hash and as create params"); | throw Exception(PARSER_RUNTIME, 0, "arguments should not be specified as hash and as create params"); |
| } | } |
| if(valid_options!=options->count()) | if(valid_options!=options->count()) |
| throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION); | throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION); |
| Line 222 static void _methods(Request& r, MethodP | Line 222 static void _methods(Request& r, MethodP |
| VHash& result=*new VHash; | VHash& result=*new VHash; |
| #ifdef HASH_ORDER | |
| if(reverse){ | if(reverse){ |
| for(HashStringMethod::ReverseIterator i(vclass->get_methods()); i; i.prev()){ | for(HashStringMethod::ReverseIterator i(vclass->get_methods()); i; i.prev()){ |
| result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser)); | result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser)); |
| } | } |
| } else { | } else { |
| #else | |
| { | |
| #endif | |
| for(HashStringMethod::Iterator i(vclass->get_methods()); i; i.next()){ | for(HashStringMethod::Iterator i(vclass->get_methods()); i; i.next()){ |
| result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser)); | result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser)); |
| } | } |