X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/217598dadc1d5aa72f430b1ac5584de8f385b596..c0ad8bf3c2fb46f001bb24ac98a72b8bfb3a77ce:/data/yacc.c?ds=inline diff --git a/data/yacc.c b/data/yacc.c index 5b5da3c5..daa08d60 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -358,12 +358,14 @@ static const char *const yytname[[]] = }; #endif +# ifdef YYPRINT /* YYTOKNUM[[YYLEX-NUM]] -- Internal token number corresponding to token YYLEX-NUM. */ static const b4_int_type_for([b4_toknum]) yytoknum[[]] = { b4_toknum }; +# endif /* YYR1[[YYN]] -- Symbol number of symbol that rule YYN derives. */ static const b4_int_type_for([b4_r1]) yyr1[[]] = @@ -1044,8 +1046,8 @@ yyreduce: /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. - Otherwise, the following line sets YYVAL to the semantic value of - the lookahead token. This behavior is undocumented and Bison + Otherwise, the following line sets YYVAL to garbage. + This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */