summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-05-12 22:17:40 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-05-12 22:17:40 +0000
commit12bd6ede29d13c215438daf78d15695e487886b0 (patch)
tree78ba457776b01252a85ffb3957bce4289c26f607 /parser.h
parent5afb0a623b9b99b8da0168b2f2a3030d9165d7ff (diff)
downloadperl-12bd6ede29d13c215438daf78d15695e487886b0.tar.gz
move PL_in_my and PL_in_my_stash into the PL_parser struct
p4raw-id: //depot/perl@31203
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/parser.h b/parser.h
index affe7be143..f481cace7c 100644
--- a/parser.h
+++ b/parser.h
@@ -61,7 +61,6 @@ typedef struct yy_parser {
bool preambled;
SUBLEXINFO sublex_info;
SV *linestr; /* current chunk of src text */
- line_t copline; /* current line number */
char *bufptr;
char *oldbufptr;
char *oldoldbufptr;
@@ -69,7 +68,11 @@ typedef struct yy_parser {
char *linestart; /* beginning of most recently read line */
char *last_uni; /* position of last named-unary op */
char *last_lop; /* position of last list operator */
+ line_t copline; /* current line number */
+ U16 in_my; /* we're compiling a "my"/"our" declaration */
U8 lex_state; /* next token is determined */
+ /* space for a U8 here */
+ HV *in_my_stash; /* declared class of this "my" declaration */
PerlIO *rsfp; /* current source file pointer */
AV *rsfp_filters; /* holds chain of active source filters */