summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-05-17 17:38:26 +0100
committerDavid Mitchell <davem@iabyn.com>2013-06-02 22:28:50 +0100
commit220db18a521ebfe89f81d1f28862104b021164f3 (patch)
treee834f8f0e32597cf420fb88d3bbf9dd53da073ab /regexp.h
parent02d5137b98854dd95a1eb9d4bee9d44d656f2c16 (diff)
downloadperl-220db18a521ebfe89f81d1f28862104b021164f3.tar.gz
eliminiate PL_regeol
This is another global regex state variable (actually a field of PL_reg_state). Eliminate it by moving it into the regmatch_info struct instead, which is local to each match. Also, rename it to strend, which is a less misleading description in these exciting days of multi-line matches.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/regexp.h b/regexp.h
index ab9101435e..3479f260cf 100644
--- a/regexp.h
+++ b/regexp.h
@@ -577,6 +577,7 @@ get_regex_charset_name(const U32 flags, STRLEN* const lenp)
typedef struct {
REGEXP *prog;
char *bol;
+ char *strend; /* one byte beyond last char of match string */
char *till;
SV *sv;
char *ganch;
@@ -757,7 +758,6 @@ typedef struct regmatch_slab {
} regmatch_slab;
#define PL_bostr PL_reg_state.re_state_bostr
-#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
#define PL_reg_oldpos PL_reg_state.re_state_reg_oldpos
@@ -782,7 +782,6 @@ struct re_save_state {
I32 re_state_reg_maxiter; /* max wait until caching pos */
I32 re_state_reg_leftiter; /* wait until caching pos */
char *re_state_bostr;
- 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 */
PMOP *re_state_reg_curpm; /* from regexec.c */