MCPcopy Create free account
hub / github.com/git/git / check_halt_node_context

Function check_halt_node_context

compat/regex/regexec.c:1208–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1206 return match_last;
1207}
1208
1209/* Check NODE match the current context. */
1210
1211static int
1212internal_function
1213check_halt_node_context (const re_dfa_t *dfa, int node, unsigned int context)
1214{
1215 re_token_type_t type = dfa->nodes[node].type;
1216 unsigned int constraint = dfa->nodes[node].constraint;
1217 if (type != END_OF_RE)
1218 return 0;
1219 if (!constraint)
1220 return 1;
1221 if (NOT_SATISFY_NEXT_CONSTRAINT (constraint, context))
1222 return 0;
1223 return 1;
1224}

Callers 1

check_halt_state_contextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected