mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
(YYPARSE_PARAM_DECL): In C++, make it always null.
(YYPARSE_PARAM_ARG): New macro. (yyparse): Use YYPARSE_PARAM_ARG.
This commit is contained in:
16
bison.simple
16
bison.simple
@@ -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;
|
||||||
|
|||||||
16
src/bison.s1
16
src/bison.s1
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user