summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-21 19:05:08 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-21 19:05:08 +0000
commit651b5b28673befa3f36a39b00591c15d5b30cca2 (patch)
treea0b972c92157745dc69c47556215c9c238d1c9b7 /toke.c
parent9f7da6d537556dbe72c14a7f3fb5896e5591eace (diff)
downloadperl-651b5b28673befa3f36a39b00591c15d5b30cca2.tar.gz
Several members of struct yy_parser can go on a diet. Some I32s were
actually only holding chars. p4raw-id: //depot/perl@31015
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/toke.c b/toke.c
index d5fbd0a4ca..12d91afa77 100644
--- a/toke.c
+++ b/toke.c
@@ -645,7 +645,7 @@ Perl_lex_start(pTHX_ SV *line)
/* initialise lexer state */
- SAVEI32(PL_lex_state);
+ SAVEI8(PL_lex_state);
#ifdef PERL_MAD
if (PL_lex_state == LEX_KNOWNEXT) {
I32 toke = parser->old_parser->lasttoke;
@@ -678,7 +678,7 @@ Perl_lex_start(pTHX_ SV *line)
SAVEPPTR(PL_linestart);
SAVESPTR(PL_linestr);
SAVEDESTRUCTOR_X(restore_rsfp, PL_rsfp);
- SAVEINT(PL_expect);
+ SAVEI8(PL_expect);
PL_copline = NOLINE;
PL_lex_state = LEX_NORMAL;
@@ -1658,13 +1658,13 @@ S_sublex_push(pTHX)
ENTER;
PL_lex_state = PL_sublex_info.super_state;
- SAVEI32(PL_lex_dojoin);
+ SAVEBOOL(PL_lex_dojoin);
SAVEI32(PL_lex_brackets);
SAVEI32(PL_lex_casemods);
SAVEI32(PL_lex_starts);
- SAVEI32(PL_lex_state);
+ SAVEI8(PL_lex_state);
SAVEVPTR(PL_lex_inpat);
- SAVEI32(PL_lex_inwhat);
+ SAVEI8(PL_lex_inwhat);
SAVECOPLINE(PL_curcop);
SAVEPPTR(PL_bufptr);
SAVEPPTR(PL_bufend);