summaryrefslogtreecommitdiff
path: root/pad.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-24 09:33:51 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-08-24 09:35:36 -0700
commit3f6a9d3a9cabfeb160740fe70d8f9efa589304f0 (patch)
treecacef06713dd6901bf34cbe14605e4be2058145e /pad.h
parent43ddfa56142b05eb634e67f9eb458184251a389e (diff)
downloadperl-3f6a9d3a9cabfeb160740fe70d8f9efa589304f0.tar.gz
pad.h: Rename PadnameSTATE; make it a proper boolean
I used PadnameIs* for OUR, because I was copying PAD_COMPNAME_FLAGS_isOUR. STATE should be consistent with it. And it was missing the double bang, making the docs wrong.
Diffstat (limited to 'pad.h')
-rw-r--r--pad.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pad.h b/pad.h
index 01456a796e..f65af17a78 100644
--- a/pad.h
+++ b/pad.h
@@ -229,7 +229,7 @@ The stash in which this "our" variable was declared.
=for apidoc m|bool|PadnameOUTER|PADNAME pn
Whether this entry belongs to an outer pad.
-=for apidoc m|bool|PadnameSTATE|PADNAME pn
+=for apidoc m|bool|PadnameIsSTATE|PADNAME pn
Whether this is a "state" variable.
=for apidoc m|HV *|PadnameTYPE|PADNAME pn
@@ -297,7 +297,7 @@ Restore the old pad saved into the local variable opad by PAD_SAVE_LOCAL()
#define PadnameIsOUR(pn) !!SvPAD_OUR(pn)
#define PadnameOURSTASH(pn) SvOURSTASH(pn)
#define PadnameOUTER(pn) !!SvFAKE(pn)
-#define PadnameSTATE(pn) SvPAD_STATE(pn)
+#define PadnameIsSTATE(pn) !!SvPAD_STATE(pn)
#define PadnameTYPE(pn) (SvPAD_TYPED(pn) ? SvSTASH(pn) : NULL)