summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-06-30 10:56:03 +0100
committerPaul Evans <leonerd@leonerd.org.uk>2022-07-02 23:00:28 +0100
commit922562d10af7810210fc8afb3c3666e0b7d9594e (patch)
tree076122d29585a373a7c2c26b274c88d4cad1a2c1 /sv.h
parent68670bd9d8d20914b9111b7927cb102bccfa4388 (diff)
downloadperl-922562d10af7810210fc8afb3c3666e0b7d9594e.tar.gz
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.
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h5
1 files changed, 2 insertions, 3 deletions
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<L</svtype>>.
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