]> git.saurik.com Git - bison.git/blobdiff - src/lex.c
* data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
[bison.git] / src / lex.c
index cb7b2127d5426bfb955268ef9516d8077ee24b91..516f799795fbc6cc5662d0daedf3042ec6a18f38 100644 (file)
--- a/src/lex.c
+++ b/src/lex.c
 static struct obstack token_obstack;
 const char *token_buffer = NULL;
 
-bucket *symval = NULL;
+symbol_t *symval = NULL;
 int numval;
 
 /* A token to be reread, see unlex and lex. */
 static token_t unlexed = tok_undef;
-static bucket *unlexed_symval = NULL;
+static symbol_t *unlexed_symval = NULL;
 static const char *unlexed_token_buffer = NULL;
 
 void
@@ -364,7 +364,7 @@ lex (void)
        obstack_1grow (&token_obstack, '\0');
        token_buffer = obstack_finish (&token_obstack);
        symval = getsym (token_buffer);
-       if (symval->number == -1)
+       if (symval->number == NUMBER_UNDEFINED)
          {
            symval->number = ntokens++;
            symval->class = token_sym;
@@ -392,7 +392,7 @@ lex (void)
        token_buffer = obstack_finish (&token_obstack);
 
        symval = getsym (token_buffer);
-       if (symval->number == -1)
+       if (symval->number == NUMBER_UNDEFINED)
          {
            symval->number = ntokens++;
            symval->class = token_sym;