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

Function re_node_set_init_1

compat/regex/regex_internal.c:990–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988 return REG_ESPACE;
989 return REG_NOERROR;
990}
991
992static reg_errcode_t
993internal_function
994re_node_set_init_1 (re_node_set *set, int elem)
995{
996 set->alloc = 1;
997 set->nelem = 1;
998 set->elems = re_malloc (int, 1);
999 if (BE (set->elems == NULL, 0))
1000 {
1001 set->alloc = set->nelem = 0;
1002 return REG_ESPACE;
1003 }
1004 set->elems[0] = elem;
1005 return REG_NOERROR;
1006}
1007

Callers 6

re_node_set_insertFunction · 0.85
sift_states_backwardFunction · 0.85
internal_functionFunction · 0.85
expand_bkref_cacheFunction · 0.85
link_nfa_nodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected