#ifdef USE_PURE_BISON
YYSTYPE* yylval_pointer = NULL;
int* yychar_pointer = NULL;
-#ifdef EMBED
-#undef yylval
-#undef yychar
-#endif
-#define yylval (*yylval_pointer)
-#define yychar (*yychar_pointer)
+# ifdef EMBED
+# undef yylval
+# undef yychar
+# endif
+# define yylval (*yylval_pointer)
+# define yychar (*yychar_pointer)
+# define PERL_YYLEX_PARAM yylval_pointer,yychar_pointer
+#else
+# define PERL_YYLEX_PARAM
#endif
#include "keywords.h"
if (PL_lex_casemods) { /* oops, we've got some unbalanced parens */
PL_lex_state = LEX_INTERPCASEMOD;
- return yylex(PERL_YYLEX_PARAM_DECL);
+ return yylex(PERL_YYLEX_PARAM);
}
/* Is there a right-hand side to take care of? */
if (PL_bufptr != PL_bufend)
PL_bufptr += 2;
PL_lex_state = LEX_INTERPCONCAT;
- return yylex(PERL_YYLEX_PARAM_DECL);
+ return yylex(PERL_YYLEX_PARAM);
}
else {
s = PL_bufptr + 1;
Aop(OP_CONCAT);
}
else
- return yylex(PERL_YYLEX_PARAM_DECL);
+ return yylex(PERL_YYLEX_PARAM);
}
case LEX_INTERPPUSH:
s = PL_bufptr;
Aop(OP_CONCAT);
}
- return yylex(PERL_YYLEX_PARAM_DECL);
+ return yylex(PERL_YYLEX_PARAM);
case LEX_INTERPENDMAYBE:
if (intuit_more(PL_bufptr)) {
Aop(OP_CONCAT);
else {
PL_bufptr = s;
- return yylex(PERL_YYLEX_PARAM_DECL);
+ return yylex(PERL_YYLEX_PARAM);
}
}
- return yylex(PERL_YYLEX_PARAM_DECL);
+ return yylex(PERL_YYLEX_PARAM);
case LEX_FORMLINE:
PL_lex_state = LEX_NORMAL;
s = scan_formline(PL_bufptr);
if (PL_lex_formbrack && PL_lex_brackets <= PL_lex_formbrack) {
PL_bufptr = s;
PL_lex_state = LEX_FORMLINE;
- return yylex(PERL_YYLEX_PARAM_DECL);
+ return yylex(PERL_YYLEX_PARAM);
}
goto retry;
case '\r':
if (PL_lex_formbrack && PL_lex_brackets <= PL_lex_formbrack) {
PL_bufptr = s;
PL_lex_state = LEX_FORMLINE;
- return yylex(PERL_YYLEX_PARAM_DECL);
+ return yylex(PERL_YYLEX_PARAM);
}
}
else {
if (PL_lex_fakebrack) {
PL_lex_state = LEX_INTERPEND;
PL_bufptr = s;
- return yylex(PERL_YYLEX_PARAM_DECL); /* ignore fake brackets */
+ return yylex(PERL_YYLEX_PARAM); /* ignore fake brackets */
}
if (*s == '-' && s[1] == '>')
PL_lex_state = LEX_INTERPENDMAYBE;
if (PL_lex_brackets < PL_lex_fakebrack) {
PL_bufptr = s;
PL_lex_fakebrack = 0;
- return yylex(PERL_YYLEX_PARAM_DECL); /* ignore fake brackets */
+ return yylex(PERL_YYLEX_PARAM); /* ignore fake brackets */
}
force_next('}');
TOKEN(';');