diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-01-01 11:24:07 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-01-01 11:24:07 +0000 |
commit | 22735491a787756cfbfdb6b4e8124a882f0abd9a (patch) | |
tree | 7d63f4539195e0e9c5732f7be6db8708fb80fa1a /parser.h | |
parent | 02b34bbea1ac385edebf3102d8f728a3ff73dbfc (diff) | |
download | perl-22735491a787756cfbfdb6b4e8124a882f0abd9a.tar.gz |
split parser stack from parser object
p4raw-id: //depot/perl@29649
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |