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

Function free_token

compat/regex/regcomp.c:3827–3837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3825
3826static reg_errcode_t
3827mark_opt_subexp (void *extra, bin_tree_t *node)
3828{
3829 int idx = (int) (intptr_t) extra;
3830 if (node->token.type == SUBEXP && node->token.opr.idx == idx)
3831 node->token.opt_subexp = 1;
3832
3833 return REG_NOERROR;
3834}
3835
3836/* Free the allocated memory inside NODE. */
3837
3838static void
3839free_token (re_token_t *node)
3840{

Callers 2

free_dfa_contentFunction · 0.85
free_treeFunction · 0.85

Calls 1

free_charsetFunction · 0.85

Tested by

no test coverage detected