diff options
author | David Mitchell <davem@iabyn.com> | 2013-05-20 16:22:20 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2013-06-02 22:28:52 +0100 |
commit | ba44c21651ed0b6f2e8d953004fa3dbc25cd970a (patch) | |
tree | a8b741d3f545492d5860571e3bd0f38107c5c408 /regexp.h | |
parent | aed7b151d4e452f2288e88e25caf094ac07def29 (diff) | |
download | perl-ba44c21651ed0b6f2e8d953004fa3dbc25cd970a.tar.gz |
Eliminate PL_reg_match_utf8
Earlier commits made the use of this var just local to the current
match, so move it to the local regmatch_info struct instead.
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -612,7 +612,8 @@ typedef struct { char *cutpoint; regmatch_eval_state *eval_state; /* extra saved state for (?{}) */ bool intuit; /* re_intuit_start() is the top-level caller */ - bool is_utf8_pat; + bool is_utf8_pat; /* regex is utf8 */ + bool is_utf8_target; /* string being matched is utf8 */ bool warned; /* we have issued a recursion warning; no need for more */ } regmatch_info; @@ -785,7 +786,6 @@ typedef struct regmatch_slab { struct regmatch_slab *prev, *next; } regmatch_slab; -#define PL_reg_match_utf8 PL_reg_state.re_state_reg_match_utf8 #define PL_reg_curpm PL_reg_state.re_state_reg_curpm #define PL_reg_maxiter PL_reg_state.re_state_reg_maxiter #define PL_reg_leftiter PL_reg_state.re_state_reg_leftiter @@ -794,8 +794,6 @@ typedef struct regmatch_slab { #define PL_reg_starttry PL_reg_state.re_state_reg_starttry struct re_save_state { - bool re_state_reg_match_utf8; /* from regexec.c */ - /* Space for U8 */ I32 re_state_reg_maxiter; /* max wait until caching pos */ I32 re_state_reg_leftiter; /* wait until caching pos */ PMOP *re_state_reg_curpm; /* from regexec.c */ |