mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 09:43:03 +00:00
Formatting changes.
* data/glr.c: Formatting changes.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-12-11 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
|
Formatting changes.
|
||||||
|
* data/glr.c: Formatting changes.
|
||||||
|
|
||||||
2008-12-11 Akim Demaille <demaille@gostai.com>
|
2008-12-11 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
Propagate i18n changes into glr.c.
|
Propagate i18n changes into glr.c.
|
||||||
|
|||||||
37
data/glr.c
37
data/glr.c
@@ -500,9 +500,12 @@ static const int YYEMPTY = -2;
|
|||||||
|
|
||||||
typedef enum { yyok, yyaccept, yyabort, yyerr } YYRESULTTAG;
|
typedef enum { yyok, yyaccept, yyabort, yyerr } YYRESULTTAG;
|
||||||
|
|
||||||
#define YYCHK(YYE) \
|
#define YYCHK(YYE) \
|
||||||
do { YYRESULTTAG yyflag = YYE; if (yyflag != yyok) return yyflag; } \
|
do { \
|
||||||
while (YYID (0))
|
YYRESULTTAG yyflag = YYE; \
|
||||||
|
if (yyflag != yyok) \
|
||||||
|
return yyflag; \
|
||||||
|
} while (YYID (0))
|
||||||
|
|
||||||
#if YYDEBUG
|
#if YYDEBUG
|
||||||
|
|
||||||
@@ -511,23 +514,23 @@ typedef enum { yyok, yyaccept, yyabort, yyerr } YYRESULTTAG;
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# define YYDPRINTF(Args) \
|
# define YYDPRINTF(Args) \
|
||||||
do { \
|
do { \
|
||||||
if (yydebug) \
|
if (yydebug) \
|
||||||
YYFPRINTF Args; \
|
YYFPRINTF Args; \
|
||||||
} while (YYID (0))
|
} while (YYID (0))
|
||||||
|
|
||||||
]b4_yy_symbol_print_generate([b4_c_ansi_function_def])[
|
]b4_yy_symbol_print_generate([b4_c_ansi_function_def])[
|
||||||
|
|
||||||
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
|
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
|
||||||
do { \
|
do { \
|
||||||
if (yydebug) \
|
if (yydebug) \
|
||||||
{ \
|
{ \
|
||||||
YYFPRINTF (stderr, "%s ", Title); \
|
YYFPRINTF (stderr, "%s ", Title); \
|
||||||
yy_symbol_print (stderr, Type, \
|
yy_symbol_print (stderr, Type, \
|
||||||
Value]b4_locations_if([, Location])[]b4_user_args[); \
|
Value]b4_locations_if([, Location])[]b4_user_args[); \
|
||||||
YYFPRINTF (stderr, "\n"); \
|
YYFPRINTF (stderr, "\n"); \
|
||||||
} \
|
} \
|
||||||
} while (YYID (0))
|
} while (YYID (0))
|
||||||
|
|
||||||
/* Nonzero means print parse trace. It is left uninitialized so that
|
/* Nonzero means print parse trace. It is left uninitialized so that
|
||||||
multiple parsers can coexist. */
|
multiple parsers can coexist. */
|
||||||
|
|||||||
Reference in New Issue
Block a user