diff options
author | Andy Lester <andy@petdance.com> | 2005-04-19 06:38:44 -0500 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2005-04-19 23:43:54 +0000 |
commit | b21dc0313d6db8e825aa8b1c17bfe601ada00827 (patch) | |
tree | 460f20c7a25c53c5df6b1616371d2efef512be7d /pad.c | |
parent | 4d4948808560f73c9be361930114c89552276998 (diff) | |
download | perl-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.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; +} |