From: Gurusamy Sarathy Date: Fri, 1 Oct 1999 22:58:55 +0000 (+0000) Subject: typo, whitespace adjustments X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7aff18a29f00367fcfe67939893db3cdff0f0f50;p=p5sagit%2Fp5-mst-13.2.git typo, whitespace adjustments p4raw-id: //depot/perl@4273 --- diff --git a/utils/h2xs.PL b/utils/h2xs.PL index b3031c3..7d72e8a 100644 --- a/utils/h2xs.PL +++ b/utils/h2xs.PL @@ -271,15 +271,15 @@ to rewrite this function as int foo(sv) - SV *addr - PREINIT: - STRLEN len; - char *s; - CODE: - s = SvPV(sv,len); - RETVAL = foo(s, len); - OUTPUT: - RETVAL + SV *addr + PREINIT: + STRLEN len; + char *s; + CODE: + s = SvPV(sv,len); + RETVAL = foo(s, len); + OUTPUT: + RETVAL or alternately @@ -393,7 +393,8 @@ To install C::Scan, execute perl -MCPAN -e "install C::Scan" EOD } -} elsif ($opt_o or $opt_F) { +} +elsif ($opt_o or $opt_F) { warn <curdir(), $Config{usrinc}, (split ' ', $Config{locincpth}), '/usr/include'); } @@ -507,7 +509,8 @@ else { if ($opt_O) { warn "Overwriting existing $ext$modpname!!!\n" if -e $modpname; -} else { +} +else { die "Won't overwrite existing $ext$modpname\n" if -e $modpname; } if( $nested ){ @@ -712,17 +715,18 @@ sub AUTOLOAD { goto &AutoLoader::AUTOLOAD; } else { - croak "Your vendor has not defined $module macro \$constname"; + croak "Your vendor has not defined $module macro \$constname"; } } - { no strict 'refs'; - # Next line doesn't help with older Perls; in newers: no such warnings - # local \$^W = 0; # Prototype mismatch: sub XXX vs () - if (\$] >= 5.00561) { # Fixed between 5.005_53 and 5.005_61 - *\$AUTOLOAD = sub () { \$val }; - } else { - *\$AUTOLOAD = sub { \$val }; - } + { + no strict 'refs'; + # Fixed between 5.005_53 and 5.005_61 + if (\$] >= 5.00561) { + *\$AUTOLOAD = sub () { \$val }; + } + else { + *\$AUTOLOAD = sub { \$val }; + } } goto &\$AUTOLOAD; } @@ -810,7 +814,7 @@ EOD } my $pod = <<"END" unless $opt_P; -## Below is the stub of documentation for your module. You better edit it! +## Below is stub documentation for your module. You better edit it! # #=head1 NAME # @@ -823,7 +827,7 @@ my $pod = <<"END" unless $opt_P; # #=head1 DESCRIPTION # -#Stub documentation for $module was created by h2xs. It looks like the +#Stub documentation for $module, created by h2xs. It looks like the #author of the extension was negligent enough to leave the stub #unedited. # @@ -1022,7 +1026,8 @@ EOP print $fh <