/external/bison/src/ |
D | tables.c | 391 froms[s] = sp = sp1 = xnmalloc (count, sizeof *sp1); in save_row() 392 tos[s] = sp2 = xnmalloc (count, sizeof *sp2); in save_row() 394 nondeterministic_parser ? xnmalloc (count, sizeof *sp3) : NULL; in save_row() 428 yydefact = xnmalloc (nstates, sizeof *yydefact); in token_actions() 430 actrow = xnmalloc (ntokens, sizeof *actrow); in token_actions() 431 conflrow = xnmalloc (ntokens, sizeof *conflrow); in token_actions() 433 conflict_list = xnmalloc (1 + 2 * nconflict, sizeof *conflict_list); in token_actions() 498 froms[symno] = sp = sp1 = xnmalloc (count, sizeof *sp1); in save_column() 499 tos[symno] = sp2 = xnmalloc (count, sizeof *sp2); in save_column() 561 size_t *state_count = xnmalloc (nstates, sizeof *state_count); in goto_actions() [all …]
|
D | LR0.c | 121 kernel_base = xnmalloc (nsyms, sizeof *kernel_base); in allocate_itemsets() 122 kernel_items = xnmalloc (count, sizeof *kernel_items); in allocate_itemsets() 132 kernel_size = xnmalloc (nsyms, sizeof *kernel_size); in allocate_itemsets() 141 shiftset = xnmalloc (nsyms, sizeof *shiftset); in allocate_storage() 142 redset = xnmalloc (nrules, sizeof *redset); in allocate_storage() 144 shift_symbol = xnmalloc (nsyms, sizeof *shift_symbol); in allocate_storage()
|
D | lalr.c | 85 temp_map = xnmalloc (nvars + 1, sizeof *temp_map); in set_goto_map() 172 goto_number **reads = xnmalloc (ngotos, sizeof *reads); in initialize_F() 173 goto_number *edge = xnmalloc (ngotos + 1, sizeof *edge); in initialize_F() 200 reads[i] = xnmalloc (nedges + 1, sizeof reads[i][0]); in initialize_F() 232 goto_number *edge = xnmalloc (ngotos + 1, sizeof *edge); in build_relations() 233 state_number *states1 = xnmalloc (ritem_longest_rhs () + 1, sizeof *states1); in build_relations() 236 includes = xnmalloc (ngotos, sizeof *includes); in build_relations() 287 includes[i] = xnmalloc (nedges + 1, sizeof includes[i][0]); in build_relations()
|
D | derives.c | 78 rule_list *delts = xnmalloc (nrules, sizeof *delts); in derives_compute() 93 derives = xnmalloc (nvars, sizeof *derives); in derives_compute() 94 q = xnmalloc (nvars + nrules, sizeof *q); in derives_compute()
|
D | output.c | 190 int *values = xnmalloc (ntokens, sizeof *values); in prepare_symbols() 210 item_number *rhs = xnmalloc (nritems, sizeof *rhs); in prepare_rules() 211 unsigned int *prhs = xnmalloc (nrules, sizeof *prhs); in prepare_rules() 212 unsigned int *rline = xnmalloc (nrules, sizeof *rline); in prepare_rules() 213 symbol_number *r1 = xnmalloc (nrules, sizeof *r1); in prepare_rules() 214 unsigned int *r2 = xnmalloc (nrules, sizeof *r2); in prepare_rules() 215 int *dprec = xnmalloc (nrules, sizeof *dprec); in prepare_rules() 216 int *merger = xnmalloc (nrules, sizeof *merger); in prepare_rules() 269 symbol_number *values = xnmalloc (nstates, sizeof *values); in prepare_states()
|
D | relation.c | 103 VERTICES = xnmalloc (size + 1, sizeof *VERTICES); in relation_digraph() 129 relation new_R = xnmalloc (n, sizeof *new_R); in relation_transpose() 131 relation end_R = xnmalloc (n, sizeof *end_R); in relation_transpose() 155 sp = xnmalloc (nedges[i] + 1, sizeof *sp); in relation_transpose()
|
D | nullable.c | 65 symbol_number *squeue = xnmalloc (nvars, sizeof *squeue); in nullable_compute() 72 rule_list *relts = xnmalloc (nritems + nvars + 1, sizeof *relts); in nullable_compute()
|
D | reduce.c | 251 rule *rules_sorted = xnmalloc (nrules, sizeof *rules_sorted); in reduce_grammar_tables() 295 symbol_number *nontermmap = xnmalloc (nvars, sizeof *nontermmap); in nonterminals_reduce() 311 symbol **symbols_sorted = xnmalloc (nvars, sizeof *symbols_sorted); in nonterminals_reduce()
|
D | reader.c | 420 ritem = xnmalloc (nritems + 1, sizeof *ritem); in packgram() 425 rules = xnmalloc (nrules, sizeof *rules); in packgram()
|
D | closure.c | 187 itemset = xnmalloc (n, sizeof *itemset); in new_closure()
|
D | conflicts.c | 309 symbol **errors = xnmalloc (ntokens + 1, sizeof *errors); in conflicts_solve()
|
D | symtab.c | 622 token_translations = xnmalloc (max_user_token_number + 1, in symbols_token_translations_init()
|
/external/bison/lib/ |
D | xalloc.h | 49 void *xnmalloc (size_t n, size_t s);
|
D | xmalloc.c | 55 xnmalloc (size_t n, size_t s) in xnmalloc() function
|
/external/bison/ |
D | ChangeLog | 3282 changed to use xcalloc, xnmalloc, xnrealloc, respectively, 3285 * src/LR0.c (allocate_itemsets): Use xnmalloc, not xcalloc, 4007 * src/system.h (MALLOC): Use xnmalloc, for better overflow checking.
|