C-Scan-Constants
view release on metacpan or search on metacpan
contrib/lib/ModPerl/CScan.pm view on Meta::CPAN
sub typedef_hash {
my ($typedefs, $whited) = (shift,shift);
my %out;
loop:
for my $o (0..$#$typedefs) {
my $wh = $whited->[$o];
my $td = $typedefs->[$o];
#my $verb = $td =~ /apr_child_errfn_t/ ? 1 : 0;
#warn "$wh || $td\n" if $verb;
if ($wh =~ /,/ or not $wh =~ /\w/) { # Hard case, guessimates ...
# Determine whether the new thingies are inside parens
$wh =~ /,/g;
my $p = pos $wh;
my ($s, $e);
if (matchingbrace($wh)) { # Inside. Easy part: just split on /,/...
$e = pos($wh) - 1;
$s = $e;
my $d = 0;
# Skip back
while (--$s >= 0) {
( run in 0.503 second using v1.01-cache-2.11-cpan-26ccb49234f )