From c7fd9c6721948aad186aefa3d0365b0158d17cbb Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 21 Sep 2019 13:24:33 -0600 Subject: 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 --- regcomp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'regcomp.h') 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 -- cgit v1.2.1