summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-05-20 16:22:20 +0100
committerDavid Mitchell <davem@iabyn.com>2013-06-02 22:28:52 +0100
commitba44c21651ed0b6f2e8d953004fa3dbc25cd970a (patch)
treea8b741d3f545492d5860571e3bd0f38107c5c408 /regexp.h
parentaed7b151d4e452f2288e88e25caf094ac07def29 (diff)
downloadperl-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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/regexp.h b/regexp.h
index 844ec6b3fc..bc3871a3c8 100644
--- a/regexp.h
+++ b/regexp.h
@@ -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 */