From: Richard M. Stallman Date: Thu, 14 Oct 1993 16:19:10 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: GNU_ORIG~80 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/b658bf92ac1517b739b462019141554513364413?ds=inline *** empty log message *** --- diff --git a/bison.simple b/bison.simple index c0c278a3..701139be 100644 --- a/bison.simple +++ b/bison.simple @@ -181,8 +181,22 @@ __yy_bcopy (char *from, char *to, int count) #endif #line 184 "bison.simple" + +/* The user can define YYPARSE_PARAM as the name of an argument to be passed + into yyparse. The argument should have type void *. + It should actually point to an object. + Grammar actions can access the variable by casting it + to the proper pointer type. */ + +#ifdef YYPARSE_PARAM +#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; +#else +#define YYPARSE_PARAM +#endif + int -yyparse() +yyparse(YYPARSE_PARAM) + YYPARSE_PARAM_DECL { register int yystate; register int yyn; @@ -461,7 +475,7 @@ yyreduce: #endif $ /* the action file gets copied in in place of this dollarsign */ -#line 465 "bison.simple" +#line 479 "bison.simple" yyvsp -= yylen; yyssp -= yylen; diff --git a/src/bison.s1 b/src/bison.s1 index c0c278a3..701139be 100644 --- a/src/bison.s1 +++ b/src/bison.s1 @@ -181,8 +181,22 @@ __yy_bcopy (char *from, char *to, int count) #endif #line 184 "bison.simple" + +/* The user can define YYPARSE_PARAM as the name of an argument to be passed + into yyparse. The argument should have type void *. + It should actually point to an object. + Grammar actions can access the variable by casting it + to the proper pointer type. */ + +#ifdef YYPARSE_PARAM +#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; +#else +#define YYPARSE_PARAM +#endif + int -yyparse() +yyparse(YYPARSE_PARAM) + YYPARSE_PARAM_DECL { register int yystate; register int yyn; @@ -461,7 +475,7 @@ yyreduce: #endif $ /* the action file gets copied in in place of this dollarsign */ -#line 465 "bison.simple" +#line 479 "bison.simple" yyvsp -= yylen; yyssp -= yylen; diff --git a/src/bison.simple b/src/bison.simple index c0c278a3..701139be 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -181,8 +181,22 @@ __yy_bcopy (char *from, char *to, int count) #endif #line 184 "bison.simple" + +/* The user can define YYPARSE_PARAM as the name of an argument to be passed + into yyparse. The argument should have type void *. + It should actually point to an object. + Grammar actions can access the variable by casting it + to the proper pointer type. */ + +#ifdef YYPARSE_PARAM +#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; +#else +#define YYPARSE_PARAM +#endif + int -yyparse() +yyparse(YYPARSE_PARAM) + YYPARSE_PARAM_DECL { register int yystate; register int yyn; @@ -461,7 +475,7 @@ yyreduce: #endif $ /* the action file gets copied in in place of this dollarsign */ -#line 465 "bison.simple" +#line 479 "bison.simple" yyvsp -= yylen; yyssp -= yylen;