From 922562d10af7810210fc8afb3c3666e0b7d9594e Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Thu, 30 Jun 2022 10:56:03 +0100 Subject: Create `HvHasAUX()` macro Gives a new name `SVphv_HasAUX` to the `SVf_OOK` flag, for use on HVs. For back-compatibility with existing code we'll have to continue to use the same bit position, at least for now. But at least code can use this new name to be clearer about its intent. --- sv.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sv.h') diff --git a/sv.h b/sv.h index 98995a3624..39edc140df 100644 --- a/sv.h +++ b/sv.h @@ -422,9 +422,8 @@ perform the upgrade if necessary. See C>. including PVLV-as-regex. See isREGEXP(). */ -#define SVf_OOK 0x02000000 /* has valid offset value. For a PVHV this - means that a hv_aux struct is present - after the main array */ +#define SVf_OOK 0x02000000 /* has valid offset value */ +#define SVphv_HasAUX SVf_OOK /* PVHV has an additional hv_aux struct */ #define SVf_BREAK 0x04000000 /* refcnt is artificially low - used by SVs in final arena cleanup. Set in S_regtry on PL_reg_curpm, so that -- cgit v1.2.1