summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorSteffen Mueller <smueller@cpan.org>2017-02-03 09:06:41 +0100
committerSteffen Mueller <smueller@cpan.org>2017-02-03 09:25:55 +0100
commit1186f82119d5270455d8831744d4f40a4ccbb222 (patch)
tree2c1f51da84c843e838ca3c35919b48c4257357a5 /hv.h
parentc9470cf1abc4cc21f63ba5222f7860ec1175adfc (diff)
downloadperl-1186f82119d5270455d8831744d4f40a4ccbb222.tar.gz
HvTOTALKEYS() takes a HV* as argument
Incidentally, it currently works on SV *'s as well because there's an explicit cast after an SvANY. Let's not rely on that. This commit also removes a pointless const in a cast. Again. It takes an HV * as argument. Let's only change that if we have a strong reason to.
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.h b/hv.h
index b6b22dfd76..8411b5d31f 100644
--- a/hv.h
+++ b/hv.h
@@ -325,7 +325,7 @@ C<SV*>.
((SvOOK(hv) && HvAUX(hv)->xhv_name_u.xhvnameu_name && HvAUX(hv)->xhv_name_count != -1) \
? HEK_UTF8(HvENAME_HEK_NN(hv)) : 0)
-/* the number of keys (including any placeholders) */
+/* the number of keys (including any placeholders) - NOT PART OF THE API */
#define XHvTOTALKEYS(xhv) ((xhv)->xhv_keys)
/*