X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/29e8831621af57c5056380b68a96337e7647b850..616429b50868bf9225d55143526442a024e32969:/src/LR0.c diff --git a/src/LR0.c b/src/LR0.c index 3f06fedf..6a911f24 100644 --- a/src/LR0.c +++ b/src/LR0.c @@ -113,6 +113,7 @@ allocate_storage (void) shiftset = XCALLOC (short, nsyms); redset = XCALLOC (short, nrules + 1); state_hash = XCALLOC (state_t *, STATE_HASH_SIZE); + shift_symbol = XCALLOC (short, nsyms); } @@ -154,7 +155,6 @@ new_itemsets (void) for (i = 0; i < nsyms; i++) kernel_size[i] = 0; - shift_symbol = XCALLOC (short, nsyms); nshifts = 0; for (i = 0; i < nitemset; ++i) @@ -364,9 +364,9 @@ save_reductions (void) } -/*--------------------. +/*---------------. | Build STATES. | -`--------------------*/ +`---------------*/ static void set_states (void)