summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-04-19 06:38:44 -0500
committerDave Mitchell <davem@fdisolutions.com>2005-04-19 23:43:54 +0000
commitb21dc0313d6db8e825aa8b1c17bfe601ada00827 (patch)
tree460f20c7a25c53c5df6b1616371d2efef512be7d /pad.c
parent4d4948808560f73c9be361930114c89552276998 (diff)
downloadperl-b21dc0313d6db8e825aa8b1c17bfe601ada00827.tar.gz
pad_compname_type(), takes care of a clunky macro
Message-Id: <20050419163844.GA19747@petdance.com> p4raw-id: //depot/perl@24256
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pad.c b/pad.c
index 9a63e3e83f..14649fcaa4 100644
--- a/pad.c
+++ b/pad.c
@@ -1599,3 +1599,14 @@ Perl_pad_push(pTHX_ PADLIST *padlist, int depth)
AvFILLp(padlist) = depth;
}
}
+
+
+HV *
+Perl_pad_compname_type(pTHX_ const PADOFFSET po)
+{
+ SV** const av = av_fetch(PL_comppad_name, po, FALSE);
+ if ( SvFLAGS(*av) & SVpad_TYPED ) {
+ return SvSTASH(*av);
+ }
+ return Nullhv;
+}