Searched refs:maxrules (Results 1 – 2 of 2) sorted by relevance
/openbsd/usr.bin/doas/ |
H A D | parse.y | 52 static size_t maxrules; variable 98 if (nrules == maxrules) { 99 if (maxrules == 0) 100 maxrules = 32; 101 rules = reallocarray(rules, maxrules, 105 maxrules *= 2;
|
/openbsd/usr.bin/yacc/ |
H A D | reader.c | 64 int maxrules; variable 1098 maxrules = 100; in initialize_grammar() 1099 plhs = reallocarray(NULL, maxrules, sizeof(bucket *)); in initialize_grammar() 1105 rprec = reallocarray(NULL, maxrules, sizeof(short)); in initialize_grammar() 1111 rassoc = reallocarray(NULL, maxrules, sizeof(char)); in initialize_grammar() 1136 maxrules += 100; in expand_rules() 1137 plhs = reallocarray(plhs, maxrules, sizeof(bucket *)); in expand_rules() 1140 rprec = reallocarray(rprec, maxrules, sizeof(short)); in expand_rules() 1143 rassoc = reallocarray(rassoc, maxrules, sizeof(char)); in expand_rules() 1205 if (nrules >= maxrules) in start_rule() [all …]
|