| 288 | |
| 289 | |
| 290 | int json_path_compare(const json_path_t *a, const json_path_t *b, |
| 291 | enum json_value_types vt, |
| 292 | MEM_ROOT_DYNAMIC_ARRAY *array_size) |
| 293 | { |
| 294 | json_path_step_t *a_init= (json_path_step_t*)(a->steps.buffer), |
| 295 | *b_init= (json_path_step_t*)(b->steps.buffer), |
| 296 | *a_last_step= (json_path_step_t*)(a->steps.buffer)+ a->last_step_idx, |
| 297 | *b_last_step= (json_path_step_t*)(b->steps.buffer) + b->last_step_idx; |
| 298 | |
| 299 | return |
| 300 | json_path_parts_compare(&(a->steps), a_init + 1, |
| 301 | a_last_step, |
| 302 | &(b->steps), b_init + 1, |
| 303 | b_last_step, vt, array_size); |
| 304 | } |
| 305 | |
| 306 | |
| 307 | static int json_nice(json_engine_t *je, String *nice_js, |
no test coverage detected