47 |
set_nullable (void) |
set_nullable (void) |
48 |
{ |
{ |
49 |
int ruleno; |
int ruleno; |
50 |
short *s1; |
token_number_t *s1; |
51 |
short *s2; |
token_number_t *s2; |
52 |
shorts *p; |
shorts *p; |
53 |
|
|
54 |
short *squeue = XCALLOC (short, nvars); |
token_number_t *squeue = XCALLOC (token_number_t, nvars); |
55 |
short *rcount = XCALLOC (short, nrules + 1); |
short *rcount = XCALLOC (short, nrules + 1); |
56 |
/* RITEM contains all the rules, including useless productions. |
/* RITEM contains all the rules, including useless productions. |
57 |
Hence we must allocate room for useless nonterminals too. */ |
Hence we must allocate room for useless nonterminals too. */ |