summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2012-12-25 18:09:32 +0000
committerDavid Mitchell <davem@iabyn.com>2012-12-25 18:09:32 +0000
commit984e6dd18b2c93d4a6ae228bb9d2d98aadf7ca6e (patch)
tree869b7de1f2b2401a7eda4134742ca35370778d07 /proto.h
parent4fab19ce1519686c7468c2e8b79b34d7d9b7f5bc (diff)
downloadperl-984e6dd18b2c93d4a6ae228bb9d2d98aadf7ca6e.tar.gz
eliminate RF_utf8 flag from PL_reg_flags
This global flag indicates whether the currently executing regex is utf8. Replace it with a boolean var local to to the matching function, and pass it around via function args, or as a member of the regmatch_info struct. This is a first step to eliminating PL_reg_flags.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto.h b/proto.h
index ee2b14ef7e..a962d32a72 100644
--- a/proto.h
+++ b/proto.h
@@ -6834,7 +6834,7 @@ STATIC SV* S_core_regclass_swash(pTHX_ const regexp *prog, const struct regnode
#define PERL_ARGS_ASSERT_CORE_REGCLASS_SWASH \
assert(node)
-STATIC char* S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s, const char *strend, regmatch_info *reginfo)
+STATIC char* S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s, const char *strend, regmatch_info *reginfo, bool is_utf_pat)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2)
@@ -6899,7 +6899,7 @@ STATIC I32 S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *pro
#define PERL_ARGS_ASSERT_REGMATCH \
assert(reginfo); assert(startpos); assert(prog)
-STATIC I32 S_regrepeat(pTHX_ const regexp *prog, char **startposp, const regnode *p, I32 max, int depth)
+STATIC I32 S_regrepeat(pTHX_ const regexp *prog, char **startposp, const regnode *p, I32 max, int depth, bool is_utf8_pat)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2)