mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-18 13:43:27 +00:00
yacc.c: make sure we properly propagated the user's number for error
* data/skeletons/yacc.c (YYERRCODE): Be truthful. * tests/input.at (Redefining the error token): Check that.
This commit is contained in:
1 parent
cfcd823e16
commit
e3812bb8c3
3 files changed
+18
-8
No files matched your search
@@ -673,7 +673,7 @@ static const ]b4_int_type_for([b4_toknum])[ yytoknum[] =
|
||||
|
||||
/* Error token number */
|
||||
#define YYTERROR 1
|
||||
#define YYERRCODE 256
|
||||
#define YYERRCODE ]b4_symbol(1, user_number)[
|
||||
|
||||
]b4_locations_if([[
|
||||
]b4_yylloc_default_define[
|
||||
|
||||
Reference in new issue
Block a user