C-Scan-Constants
view release on metacpan or search on metacpan
contrib/lib/ModPerl/CScan.pm view on Meta::CPAN
313314315316317318319320321322323324325326327328329330331332333sub
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.422 second using v1.01-cache-2.11-cpan-26ccb49234f )