diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-03-08 07:56:39 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-03-08 08:10:11 +0100 |
commit | e3812bb8c317203014f615c6f0cb15fd657ae293 (patch) | |
tree | 35c41d015daf4f64a3c941cfdc5af34326be1aa3 /data | |
parent | cfcd823e160121d8be7463b8b47600ff50c3cbd3 (diff) | |
download | bison-e3812bb8c317203014f615c6f0cb15fd657ae293.tar.gz |
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.
Diffstat (limited to 'data')
-rw-r--r-- | data/skeletons/yacc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c index 9a083037..add94351 100644 --- a/data/skeletons/yacc.c +++ b/data/skeletons/yacc.c @@ -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[ |