/* Symbol table manager for Bison.
- Copyright (C) 1984, 1989, 2000-2002, 2004-2011 Free Software
+ Copyright (C) 1984, 1989, 2000-2002, 2004-2012 Free Software
Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
if (user_token_number == 0)
{
endtoken = sym;
- endtoken->number = 0;
/* It is always mapped to 0, so it was already counted in
NTOKENS. */
- --ntokens;
+ if (endtoken->number != NUMBER_UNDEFINED)
+ --ntokens;
+ endtoken->number = 0;
}
}