summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-04-18 09:57:51 +0200
committerYves Orton <demerphq@gmail.com>2022-08-03 11:07:09 +0200
commitf946e55ad047822276d1420651e4dc2d9caf3fce (patch)
treecbf22b8f36c0ef10a6ab2d28101712ac9b98ebb0 /regcomp.h
parentc0a7907be0f2bff18c64a6b2f3d09cb88c192dc3 (diff)
downloadperl-f946e55ad047822276d1420651e4dc2d9caf3fce.tar.gz
regen/regcomp.pl - Make regarglen available as PL_regarglen in regexec.c
In a follow up patch we will use this data from regexec.c which currently cannot see the variable. This changes a comment in regen/mk_invlists.pl which necessitated rebuilding several files related to unicode. Only the hashes associated with mk_invlists.pl were changed.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/regcomp.h b/regcomp.h
index 20047ccba2..4ee777fe26 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -412,7 +412,7 @@ struct regnode_ssc {
/* The number of (smallest) regnode equivalents that the node 'p' which uses
* 'struct regnode_string' occupies. (These are EXACTish nodes and a few
* others.) */
-#define NODE_SZ_STR(p) (STR_SZ(STR_LEN(p)) + 1 + regarglen[(p)->type])
+#define NODE_SZ_STR(p) (STR_SZ(STR_LEN(p)) + 1 + PL_regarglen[(p)->type])
#define setSTR_LEN(p,v) \
STMT_START{ \
@@ -460,13 +460,13 @@ struct regnode_ssc {
FILL_ADVANCE_NODE(offset, op); \
/* This is used generically for other operations \
* that have a longer argument */ \
- (offset) += regarglen[op]; \
+ (offset) += PL_regarglen[op]; \
} STMT_END
#define FILL_ADVANCE_NODE_ARGp(offset, op, arg) \
STMT_START { \
ARGp_SET(REGNODE_p(offset), arg); \
FILL_ADVANCE_NODE(offset, op); \
- (offset) += regarglen[op]; \
+ (offset) += PL_regarglen[op]; \
} STMT_END
#define FILL_ADVANCE_NODE_2L_ARG(offset, op, arg1, arg2) \
STMT_START { \