summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-01-01 11:24:07 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-01-01 11:24:07 +0000
commit22735491a787756cfbfdb6b4e8124a882f0abd9a (patch)
tree7d63f4539195e0e9c5732f7be6db8708fb80fa1a /parser.h
parent02b34bbea1ac385edebf3102d8f728a3ff73dbfc (diff)
downloadperl-22735491a787756cfbfdb6b4e8124a882f0abd9a.tar.gz
split parser stack from parser object
p4raw-id: //depot/perl@29649
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/parser.h b/parser.h
index 51bcf88ccf..9a61a52164 100644
--- a/parser.h
+++ b/parser.h
@@ -18,7 +18,8 @@ typedef struct {
#endif
} yy_stack_frame;
-typedef struct {
+typedef struct yy_parser {
+ struct yy_parser *old_parser; /* previous value of PL_parser */
int yychar; /* The lookahead symbol. */
YYSTYPE yylval; /* value of lookahead symbol, set by yylex() */
@@ -27,8 +28,8 @@ typedef struct {
int stack_size;
int yylen; /* length of active reduction */
+ yy_stack_frame *stack; /* base of stack */
yy_stack_frame *ps; /* current stack frame */
- yy_stack_frame stack[1]; /* will actually be as many as needed */
} yy_parser;