diff options
author | David Mitchell <davem@iabyn.com> | 2012-09-12 20:10:44 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-09-14 08:49:34 +0100 |
commit | f73aaa438c3ca4e4c489cf8821275d72c192859d (patch) | |
tree | d549aca91b8dcd55413a89283a85e4d6ddb5f9df /regexp.h | |
parent | a341814904f870ae50cc3ebaec8967e9fc103b66 (diff) | |
download | perl-f73aaa438c3ca4e4c489cf8821275d72c192859d.tar.gz |
eliminate PL_reginput
PL_reginput (which is actually #defined to PL_reg_state.re_state_reginput)
is, to all intents and purposes, state that is only used within
S_regmatch().
The only other places it is referenced are in S_regtry() and S_regrepeat(),
where it is used to pass the current match position back and forth between
the subs.
Do this passing instead via function args, and bingo! PL_reginput is now
just a local var of S_regmatch().
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -775,7 +775,6 @@ typedef struct regmatch_slab { #define PL_reg_flags PL_reg_state.re_state_reg_flags #define PL_bostr PL_reg_state.re_state_bostr -#define PL_reginput PL_reg_state.re_state_reginput #define PL_regeol PL_reg_state.re_state_regeol #define PL_reg_match_utf8 PL_reg_state.re_state_reg_match_utf8 #define PL_reg_magic PL_reg_state.re_state_reg_magic @@ -800,7 +799,6 @@ struct re_save_state { bool re_state_reg_match_utf8; /* from regexec.c */ bool re_reparsing; /* runtime (?{}) fed back into parser */ char *re_state_bostr; - char *re_state_reginput; /* String-input pointer. */ char *re_state_regeol; /* End of input, for $ check. */ MAGIC *re_state_reg_magic; /* from regexec.c */ PMOP *re_state_reg_oldcurpm; /* from regexec.c */ |