summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2007-06-14 18:32:49 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-06-15 11:17:50 +0000
commitcef6ea9dde586d23f429802e75d22875450d6b68 (patch)
tree6108efb40b0e9fd59200d485887f63a2383dbcbb /hv.h
parentd05d9be5bb960a2dda35f9c10256ae0e8caaede8 (diff)
downloadperl-cef6ea9dde586d23f429802e75d22875450d6b68.tar.gz
miscellanea
Message-ID: <4671FA51.4070001@iki.fi> p4raw-id: //depot/perl@31388
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/hv.h b/hv.h
index 1aaee59a89..f8e38a1dec 100644
--- a/hv.h
+++ b/hv.h
@@ -259,7 +259,7 @@ C<SV*>.
#define HvRITER_set(hv,r) Perl_hv_riter_set(aTHX_ (HV*)(hv), r)
#define HvEITER_set(hv,e) Perl_hv_eiter_set(aTHX_ (HV*)(hv), e)
#define HvRITER_get(hv) (SvOOK(hv) ? HvAUX(hv)->xhv_riter : -1)
-#define HvEITER_get(hv) (SvOOK(hv) ? HvAUX(hv)->xhv_eiter : 0)
+#define HvEITER_get(hv) (SvOOK(hv) ? HvAUX(hv)->xhv_eiter : NULL)
#define HvNAME(hv) HvNAME_get(hv)
/* Checking that hv is a valid package stash is the
@@ -271,9 +271,9 @@ C<SV*>.
/* FIXME - all of these should use a UTF8 aware API, which should also involve
getting the length. */
/* This macro may go away without notice. */
-#define HvNAME_HEK(hv) (SvOOK(hv) ? HvAUX(hv)->xhv_name : 0)
+#define HvNAME_HEK(hv) (SvOOK(hv) ? HvAUX(hv)->xhv_name : NULL)
#define HvNAME_get(hv) ((SvOOK(hv) && (HvAUX(hv)->xhv_name)) \
- ? HEK_KEY(HvAUX(hv)->xhv_name) : 0)
+ ? HEK_KEY(HvAUX(hv)->xhv_name) : NULL)
#define HvNAMELEN_get(hv) ((SvOOK(hv) && (HvAUX(hv)->xhv_name)) \
? HEK_LEN(HvAUX(hv)->xhv_name) : 0)