mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
Make "YYPARSE_PARAM" and "YYPARSE_PARAM_TYPE" C++/ANSI-C clean.
This commit is contained in:
parent
56597309fa
commit
484620e2e4
1 changed files with 15 additions and 4 deletions
|
|
@ -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 a new issue