switch (c)
{
case '\n':
- obstack_1grow (&action_obstack, c);
+ copy_character (&action_obstack, c);
++lineno;
break;
case '{':
- obstack_1grow (&action_obstack, c);
+ copy_character (&action_obstack, c);
++count;
break;
fatal (_("unmatched %s"), "`{'");
default:
- obstack_1grow (&action_obstack, c);
+ copy_character (&action_obstack, c);
}
/* Above loop exits when C is '}'. */
if (--count)
- obstack_1grow (&action_obstack, c);
+ copy_character (&action_obstack, c);
}
obstack_1grow (&action_obstack, '\0');
static void
packgram (void)
{
- int itemno;
+ unsigned int itemno;
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)