summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-12 22:20:39 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-12 22:20:39 +0000
commit9f621bb00a11fa3741b155ff668ae147fed95cf0 (patch)
tree7b5b39f40f93859c7938b76462590a705d7a4147 /sv.h
parentd06445298904613950b0410a2f3b1125ab58c7b5 (diff)
downloadperl-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index 1d7555f502..9ab1c94f87 100644
--- a/sv.h
+++ b/sv.h
@@ -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.