AutoXS
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/AutoXS/Accessor.pm view on Meta::CPAN
sub scan_package_accessor {
my $selfclass = shift;
my $edit_pkg = shift;
warn "Scanning package '$edit_pkg'" if $AutoXS::Debug;
my $sym = $selfclass->get_symbol($edit_pkg);
my @to_be_replaced;
foreach my $function (sort keys %$sym) {
next if $function =~ /^BEGIN|END|CHECK|UNITCHECK|INIT|import$/;
warn "Scanning function '${edit_pkg}::$function'" if $AutoXS::Debug;
local *symbol = $sym->{$function};
my $coderef = *symbol{CODE} or next;
my $codeobj = svref_2object($coderef);
next unless ref $codeobj eq 'B::CV';
if ($codeobj->XSUB) {
#print *symbol, " is XS\n";
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.035 second using v1.00-cache-2.02-grep-82fe00e-cpan-c30982ac1bc3 )