Enter one level of recursive descent. Returns false when the cap is hit, in * which case the caller must return NULL without recursing. */
| 449 | /* Enter one level of recursive descent. Returns false when the cap is hit, in |
| 450 | * which case the caller must return NULL without recursing. */ |
| 451 | static bool parse_depth_enter(parser_t *p) { |
| 452 | if (p->depth >= CYPHER_MAX_PARSE_DEPTH) { |
| 453 | snprintf(p->error, sizeof(p->error), "expression nested deeper than %d levels", |
| 454 | CYPHER_MAX_PARSE_DEPTH); |
| 455 | return false; |
| 456 | } |
| 457 | p->depth++; |
| 458 | return true; |
| 459 | } |
| 460 | |
| 461 | static void parse_depth_leave(parser_t *p) { |
| 462 | p->depth--; |
no outgoing calls
no test coverage detected