diff options
author | Karl Williamson <khw@cpan.org> | 2019-09-21 13:24:33 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-09-29 11:46:25 -0600 |
commit | c7fd9c6721948aad186aefa3d0365b0158d17cbb (patch) | |
tree | 28fabd2fa88511ddf9c790899c568f42df81b18d /regcomp.h | |
parent | 0db1c5b08ab4711aa04177a4549a29f2e83123b6 (diff) | |
download | perl-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |