MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / insert_arg_cache

Function insert_arg_cache

extern/btyacc/reader.c:1153–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1151}
1152
1153static void insert_arg_cache(char *code, int rule)
1154{
1155struct arg_cache *entry = NEW(struct arg_cache);
1156int i;
1157
1158 if (!entry) no_space();
1159 i = strnshash(code) % ARG_CACHE_SIZE;
1160 entry->code = code;
1161 entry->rule = rule;
1162 entry->next = arg_cache[i];
1163 arg_cache[i] = entry;
1164}
1165
1166static void clean_arg_cache(void)
1167{

Callers 1

insert_arg_ruleFunction · 0.85

Calls 2

no_spaceFunction · 0.85
strnshashFunction · 0.85

Tested by

no test coverage detected