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

Function search_duplicated_node

compat/regex/regcomp.c:1589–1601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1587 org_node = org_dest;
1588 clone_node = clone_dest;
1589 }
1590 return REG_NOERROR;
1591}
1592
1593/* Search for a node which is duplicated from the node ORG_NODE, and
1594 satisfies the constraint CONSTRAINT. */
1595
1596static int
1597search_duplicated_node (const re_dfa_t *dfa, int org_node,
1598 unsigned int constraint)
1599{
1600 int idx;
1601 for (idx = dfa->nodes_len - 1; dfa->nodes[idx].duplicated && idx > 0; --idx)
1602 {
1603 if (org_node == dfa->org_indices[idx]
1604 && constraint == dfa->nodes[idx].constraint)

Callers 1

duplicate_node_closureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected