summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-03-31 23:15:15 +0000
committerNicholas Clark <nick@ccl4.org>2007-03-31 23:15:15 +0000
commit9bd878171021311bd025e403714388c68ff5d9e2 (patch)
tree230642a1528afc0c53aed7a66102b21d48a036f0 /parser.h
parentb1225a1b471182e0a875e14b76da023a738eea62 (diff)
downloadperl-9bd878171021311bd025e403714388c68ff5d9e2.tar.gz
Rearrange members of structures to reduce memory size on some
platforms. On LP64 structs stackinfo, refcounted_he, and magic shrink by 8 bytes, struct yy_parser by 16. p4raw-id: //depot/perl@30817
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.h b/parser.h
index a78eafc9c2..dd9f28ed23 100644
--- a/parser.h
+++ b/parser.h
@@ -25,8 +25,8 @@ typedef struct yy_parser {
/* parser state */
struct yy_parser *old_parser; /* previous value of PL_parser */
- int yychar; /* The lookahead symbol. */
YYSTYPE yylval; /* value of lookahead symbol, set by yylex() */
+ int yychar; /* The lookahead symbol. */
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
@@ -47,9 +47,9 @@ typedef struct yy_parser {
int lex_expect; /* expect after determined token */
I32 lex_formbrack; /* bracket count at outer format level */
OP *lex_inpat; /* in pattern $) and $| are special */
- I32 lex_inwhat; /* what kind of quoting are we in */
OP *lex_op; /* extra info to pass back on op */
SV *lex_repl; /* runtime replacement from s/// */
+ I32 lex_inwhat; /* what kind of quoting are we in */
I32 lex_starts; /* how many interps done on level */
SV *lex_stuff; /* runtime pattern from m// or s/// */
I32 multi_start; /* 1st line of multi-line string */