Make "YYPARSE_PARAM" and "YYPARSE_PARAM_TYPE" C++/ANSI-C clean.
This commit is contained in:
parent
56597309fa
commit
484620e2e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52594
@ -161,16 +161,27 @@ char *body[] =
|
||||
"",
|
||||
"#ifndef YYPARSE_PARAM",
|
||||
"#define YYPARSE_PARAM",
|
||||
"#define YYPARSE_PARAM_DECL",
|
||||
"#else",
|
||||
"#if defined(__cplusplus) || __STDC__",
|
||||
"#define YYPARSE_PARAM_TYPE void",
|
||||
"#else /* ! ANSI-C/C++ */",
|
||||
"#define YYPARSE_PARAM_TYPE",
|
||||
"#endif /* ANSI-C/C++ */",
|
||||
"#else /* ! YYPARSE_PARAM */",
|
||||
"#ifndef YYPARSE_PARAM_TYPE",
|
||||
"#define YYPARSE_PARAM_TYPE void *",
|
||||
"#endif",
|
||||
"#endif /* ! YYPARSE_PARAM */",
|
||||
"",
|
||||
"#if defined(__cplusplus) || __STDC__",
|
||||
"#define YYPARSE_PARAM_ARG YYPARSE_PARAM_TYPE YYPARSE_PARAM",
|
||||
"#define YYPARSE_PARAM_DECL",
|
||||
"#else /* ! ANSI-C/C++ */",
|
||||
"#define YYPARSE_PARAM_ARG YYPARSE_PARAM;",
|
||||
"#define YYPARSE_PARAM_DECL YYPARSE_PARAM_TYPE YYPARSE_PARAM;",
|
||||
"#endif",
|
||||
"#endif /* ANSI-C/C++ */",
|
||||
"",
|
||||
"int",
|
||||
"yyparse (YYPARSE_PARAM)",
|
||||
"yyparse (YYPARSE_PARAM_ARG)",
|
||||
" YYPARSE_PARAM_DECL",
|
||||
"{",
|
||||
" register int yym, yyn, yystate;",
|
||||
|
Loading…
Reference in New Issue
Block a user