X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/5378c3e72c254d17a8d62341e97717d946a76ab1..b658bf92ac1517b739b462019141554513364413:/src/bison.s1?ds=sidebyside 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;