#include <ctype.h>
#include "system.h"
#include "files.h"
-#include "new.h"
+#include "alloc.h"
#include "symtab.h"
#include "lex.h"
#include "gram.h"
static int gensym_count; /* incremented for each generated symbol */
static bucket *errtoken;
+static bucket *undeftoken;
/* Nonzero if any action or guard uses the @n construct. */
static int yylsp_needed;
errtoken->user_token_number = 256; /* Value specified by posix. */
/* construct a token that represents all undefined literal tokens. */
/* it is always token number 2. */
- getsym("$undefined.")->class = STOKEN;
+ undeftoken = getsym("$undefined.");
+ undeftoken->class = STOKEN;
+ undeftoken->user_token_number = 2;
/* Read the declaration section. Copy %{ ... %} groups to ftable and fdefines file.
Also notice any %token, %left, etc. found there. */
if (noparserflag)
continue;
}
else
- warni(_("$%s is invalid"), printable_version(c));
+ warns(_("$%s is invalid"), printable_version(c));
break;
}
else
{
- warni(_("@%s is invalid"), printable_version(c));
+ warns(_("@%s is invalid"), printable_version(c));
n = 1;
}
continue;
}
else
- warni(_("$%s is invalid"), printable_version(c));
+ warns(_("$%s is invalid"), printable_version(c));
break;