diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-12 22:20:39 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-12 22:20:39 +0000 |
commit | 9f621bb00a11fa3741b155ff668ae147fed95cf0 (patch) | |
tree | 7b5b39f40f93859c7938b76462590a705d7a4147 /sv.h | |
parent | d06445298904613950b0410a2f3b1125ab58c7b5 (diff) | |
download | perl-9f621bb00a11fa3741b155ff668ae147fed95cf0.tar.gz |
For 5.12: saner behaviour for `length`
(Make C<length undef> return undef).
Patch mostly by Rafael, with some fine tuning by me.
p4raw-id: //depot/perl@32969
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1685,6 +1685,8 @@ Like C<sv_catsv> but doesn't process magic. #define SV_COW_SHARED_HASH_KEYS 512 /* This one is only enabled for PERL_OLD_COPY_ON_WRITE */ #define SV_COW_OTHER_PVS 1024 +/* Make sv_2pv_flags return NULL if something is undefined. */ +#define SV_UNDEF_RETURNS_NULL 2048 /* The core is safe for this COW optimisation. XS code on CPAN may not be. So only default to doing the COW setup if we're in the core. |