Revert "tools/lrama: apply ruby/lrama#442"

This reverts commit fb9fbc8498.

The fix in the upstream still causes syntax error in C++.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-06-22 13:34:46 +09:00
parent eab6bddffe
commit 54e99197bd
+1 -5
View File
@@ -1475,11 +1475,7 @@ int yychar;
/* The semantic value of the lookahead symbol. */
/* Default value used for initialization, for pacifying older GCCs
or non-GCC compilers. */
#ifdef __cplusplus
static const YYSTYPE yyval_default = YY_INITIAL_VALUE(YYSTYPE());
#else
YY_INITIAL_VALUE (static const YYSTYPE yyval_default;)
#endif
YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
/* Location data for the lookahead symbol. */