(YYPARSE_PARAM_DECL): In C++, make it always null.

(YYPARSE_PARAM_ARG): New macro.
(yyparse): Use YYPARSE_PARAM_ARG.
This commit is contained in:
Richard M. Stallman
1995-12-27 12:43:49 +00:00
parent 23ae3b48e4
commit 30f5b1ccd3
3 changed files with 33 additions and 15 deletions

View File

@@ -201,14 +201,20 @@ __yy_memcpy (char *from, char *to, int count)
to the proper pointer type. */ to the proper pointer type. */
#ifdef YYPARSE_PARAM #ifdef YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; #ifdef __cplusplus
#else #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM
#define YYPARSE_PARAM_DECL #define YYPARSE_PARAM_DECL
#endif #else /* not __cplusplus */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#endif /* not __cplusplus */
#else /* not YYPARSE_PARAM */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#endif /* not YYPARSE_PARAM */
int int
yyparse(YYPARSE_PARAM) yyparse(YYPARSE_PARAM_ARG)
YYPARSE_PARAM_DECL YYPARSE_PARAM_DECL
{ {
register int yystate; register int yystate;

View File

@@ -201,14 +201,20 @@ __yy_memcpy (char *from, char *to, int count)
to the proper pointer type. */ to the proper pointer type. */
#ifdef YYPARSE_PARAM #ifdef YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; #ifdef __cplusplus
#else #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM
#define YYPARSE_PARAM_DECL #define YYPARSE_PARAM_DECL
#endif #else /* not __cplusplus */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#endif /* not __cplusplus */
#else /* not YYPARSE_PARAM */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#endif /* not YYPARSE_PARAM */
int int
yyparse(YYPARSE_PARAM) yyparse(YYPARSE_PARAM_ARG)
YYPARSE_PARAM_DECL YYPARSE_PARAM_DECL
{ {
register int yystate; register int yystate;

View File

@@ -201,14 +201,20 @@ __yy_memcpy (char *from, char *to, int count)
to the proper pointer type. */ to the proper pointer type. */
#ifdef YYPARSE_PARAM #ifdef YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; #ifdef __cplusplus
#else #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM
#define YYPARSE_PARAM_DECL #define YYPARSE_PARAM_DECL
#endif #else /* not __cplusplus */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#endif /* not __cplusplus */
#else /* not YYPARSE_PARAM */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#endif /* not YYPARSE_PARAM */
int int
yyparse(YYPARSE_PARAM) yyparse(YYPARSE_PARAM_ARG)
YYPARSE_PARAM_DECL YYPARSE_PARAM_DECL
{ {
register int yystate; register int yystate;