Searched refs:NEW2 (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/byacc/ |
H A D | lalr.c | 76 state_table = NEW2(nstates, core *); in set_state_table() 86 accessing_symbol = NEW2(nstates, Value_t); in set_accessing_symbol() 96 shift_table = NEW2(nstates, shifts *); in set_shift_table() 106 reduction_table = NEW2(nstates, reductions *); in set_reduction_table() 145 lookaheads = NEW2(nstates + 1, Value_t); in initialize_LA() 157 LA = NEW2(k * tokensetsize, unsigned); in initialize_LA() 158 LAruleno = NEW2(k, Value_t); in initialize_LA() 159 lookback = NEW2(k, shorts *); in initialize_LA() 187 goto_base = NEW2(nvars + 1, Value_t); in set_goto_map() 188 temp_base = NEW2(nvars + 1, Value_t); in set_goto_map() [all …]
|
H A D | lr0.c | 53 symbol_count = NEW2(nsyms, Value_t); in allocate_itemsets() 67 kernel_base = NEW2(nsyms, Value_t *); in allocate_itemsets() 68 kernel_items = NEW2(count, Value_t); in allocate_itemsets() 81 kernel_end = NEW2(nsyms, Value_t *); in allocate_itemsets() 88 shiftset = NEW2(nsyms, Value_t); in allocate_storage() 89 redset = NEW2(nrules + 1, Value_t); in allocate_storage() 90 state_set = NEW2(nitems, core *); in allocate_storage() 138 itemset = NEW2(nitems, Value_t); in generate_states() 139 ruleset = NEW2(WORDSIZE(nrules), unsigned); in generate_states() 491 derives = NEW2(nsyms, Value_t *); in set_derives() [all …]
|
H A D | output.c | 449 actionrow = NEW2(PER_STATE * ntokens, Value_t); in token_actions() 561 froms[i] = r = NEW2(shiftcount, Value_t); in token_actions() 562 tos[i] = s = NEW2(shiftcount, Value_t); in token_actions() 581 froms[nstates + i] = r = NEW2(reducecount, Value_t); in token_actions() 582 tos[nstates + i] = s = NEW2(reducecount, Value_t); in token_actions() 602 froms[2 * nstates + i] = r = NEW2(conflictcount, Value_t); in token_actions() 603 tos[2 * nstates + i] = s = NEW2(conflictcount, Value_t); in token_actions() 687 froms[symno] = sp1 = sp = NEW2(count, Value_t); in save_column() 688 tos[symno] = sp2 = NEW2(count, Value_t); in save_column() 708 state_count = NEW2(nstates, Value_t); in goto_actions() [all …]
|
H A D | mkpar.c | 51 parser = NEW2(nstates, action *); in make_parser() 235 SRconflicts = NEW2(nstates, Value_t); in remove_conflicts() 236 RRconflicts = NEW2(nstates, Value_t); in remove_conflicts() 377 defred = NEW2(nstates, Value_t); in defreds()
|
H A D | closure.c | 28 EFF = NEW2(nvars * rowsize, unsigned); in set_EFF() 68 first_derives = NEW2(nvars * rulesetsize, unsigned); in set_first_derives()
|
H A D | defs.h | 185 #define NEW2(n,t) ((t*)allocate(((size_t)(n)*sizeof(t)))) macro
|