EOW
if ($file =~ m:\.[ch]$:) {
-$warning =~ s:^: * :gm;
-$warning =~ s: +$::gm;
-$warning =~ s: :/:;
-$warning =~ s:$:/:;
+ $warning =~ s:^: * :gm;
+ $warning =~ s: +$::gm;
+ $warning =~ s: :/:;
+ $warning =~ s:$:/:;
}
else {
-$warning =~ s:^:# :gm;
-$warning =~ s: +$::gm;
+ $warning =~ s:^:# :gm;
+ $warning =~ s: +$::gm;
}
$warning;
} # do_not_edit
sub walk_table (&@) {
my $function = shift;
my $filename = shift || '-';
- my $leader = shift || do_not_edit ($filename);
+ my $leader = shift;
+ defined $leader or $leader = do_not_edit ($filename);
my $trailer = shift;
my $F;
local *F;
if (@_ > 1) {
$functions->{$_[2]} = \@_ if $_[@_-1] =~ /\.\.\./;
}
- } '/dev/null';
+ } '/dev/null', '';
local $^I = '.bak';
while (<>) {
# if (/^#\s*include\s+"perl.h"/) {
$ret;
}
-walk_table(\&write_protos, "proto.h");
-walk_table(\&write_global_sym, "global.sym");
+walk_table(\&write_protos, "proto.h", "");
+walk_table(\&write_global_sym, "global.sym", "");
# XXX others that may need adding
# warnhook
}
}
$ret;
-} \*EM;
+} \*EM, "";
for $sym (sort keys %ppsym) {
$sym =~ s/^Perl_//;
}
}
$ret;
-} \*EM;
+} \*EM, "";
for $sym (sort keys %ppsym) {
$sym =~ s/^Perl_//;