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

Function free_workarea_compile

compat/regex/regcomp.c:984–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982 for (j = 0; j < BITSET_WORD_BITS; ++j, ++ch)
983 if (isalnum (ch) || ch == '_')
984 dfa->word_char[i] |= (bitset_word_t) 1 << j;
985}
986
987/* Free the work area which are only used while compiling. */
988
989static void
990free_workarea_compile (regex_t *preg)
991{
992 re_dfa_t *dfa = (re_dfa_t *) preg->buffer;
993 bin_tree_storage_t *storage, *next;
994 for (storage = dfa->str_tree_storage; storage; storage = next)
995 {
996 next = storage->next;
997 re_free (storage);
998 }
999 dfa->str_tree_storage = NULL;
1000 dfa->str_tree_storage_idx = BIN_TREE_STORAGE_SIZE;
1001 dfa->str_tree = NULL;
1002 re_free (dfa->org_indices);

Callers 1

re_compile_internalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected