sentinel: it is not used.
+2002-05-06 Akim Demaille <akim@epita.fr>
+
+ * src/reader.c (packgram): No longer end `ritem' with a 0
+ sentinel: it is not used.
+
+
2002-05-05 Akim Demaille <akim@epita.fr>
New experimental feature: display the lookaheads in the report and
* data/bison.simple, data/bison.c++: b4_token_number_max is now
b4_translate_max.
-
2002-05-05 Akim Demaille <akim@epita.fr>
* src/output.c (output_unsigned_int_table): New.
to compute types instead of constant types.
* tests/regression.at (Web2c Actions): Adjust.
-
2002-05-04 Akim Demaille <akim@epita.fr>
* src/symtab.h (SALIAS, SUNDEF): Rename as...
contains minus R, which identifies it as the end of a portion and
says which rule it is for.
- The portions of RITEM come in order of increasing rule number and
- are followed by an element which is zero to mark the end. nritems
- is the total length of ritem, not counting the final zero. Each
- element of RITEM is called an "item" and its index in RITEM is an
- item number.
+ The portions of RITEM come in order of increasing rule number.
+ NRITEMS is the total length of RITEM. Each element of RITEM is
+ called an "item" and its index in RITEM is an item number.
Item numbers are used in the finite state machine to represent
places that parsing can get to.
int ruleno;
symbol_list *p;
- ritem = XCALLOC (item_number_t, nritems + 1);
+ ritem = XCALLOC (item_number_t, nritems);
rules = XCALLOC (rule_t, nrules) - 1;
itemno = 0;
p = p->next;
}
- ritem[itemno] = 0;
assert (itemno == nritems);
if (trace_flag)
nrules -= nuseless_productions;
}
- /* Adjust NRITEMS and NITEMS. */
+ /* Adjust NRITEMS. */
{
int r;
int length;