summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-09-21 13:24:33 -0600
committerKarl Williamson <khw@cpan.org>2019-09-29 11:46:25 -0600
commitc7fd9c6721948aad186aefa3d0365b0158d17cbb (patch)
tree28fabd2fa88511ddf9c790899c568f42df81b18d /regcomp.h
parent0db1c5b08ab4711aa04177a4549a29f2e83123b6 (diff)
downloadperl-c7fd9c6721948aad186aefa3d0365b0158d17cbb.tar.gz
regcomp: Use new set macro to store a value
This is in preparation for the current mechanism in a later commit to become a not legal lhs
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/regcomp.h b/regcomp.h
index d9f2cbe63e..b06016ae1d 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -338,6 +338,8 @@ struct regnode_ssc {
#define STRING(p) (((struct regnode_string *)p)->string)
#define STR_SZ(l) (((l) + sizeof(regnode) - 1) / sizeof(regnode))
#define NODE_SZ_STR(p) (STR_SZ(STR_LEN(p))+1)
+#define setSTR_LEN(p,v) \
+ ((struct regnode_string *)(p))->str_len = (v);
#undef NODE_ALIGN
#undef ARG_LOC