projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9920667
)
Add HvENAME_HEK
author
Father Chrysostomos
<sprout@cpan.org>
Sat, 30 Oct 2010 05:26:34 +0000
(22:26 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Sat, 30 Oct 2010 05:49:20 +0000
(22:49 -0700)
hv.h
patch
|
blob
|
history
diff --git
a/hv.h
b/hv.h
index
81786a6
..
84eac3d
100644
(file)
--- a/
hv.h
+++ b/
hv.h
@@
-295,6
+295,8
@@
C<SV*>.
HvAUX(hv)->xhv_name_count == -1 ? NULL : \
HvAUX(hv)->xhv_name \
)
+# define HvENAME_HEK(hv) \
+ (SvOOK(hv) && HvAUX(hv)->xhv_name ? HvENAME_HEK_NN(hv) : NULL)
# define HvENAME_get(hv) \
((SvOOK(hv) && (HvAUX(hv)->xhv_name) && HvENAME_HEK_NN(hv)) \
? HEK_KEY(HvENAME_HEK_NN(hv)) : NULL)