From: Alexey Tourbin Date: Tue, 14 Nov 2006 05:45:40 +0000 (+0300) Subject: ParseXS.pm: small optimization for "Usage: ..." constant strings X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bfb0b58a0ee1c7605d58a3bdb19350b27f738866;p=p5sagit%2Fp5-mst-13.2.git ParseXS.pm: small optimization for "Usage: ..." constant strings Message-ID: <20061114024540.GA21986@localhost.localdomain> p4raw-id: //depot/perl@29269 --- diff --git a/lib/ExtUtils/ParseXS.pm b/lib/ExtUtils/ParseXS.pm index 0729397..a5db98d 100644 --- a/lib/ExtUtils/ParseXS.pm +++ b/lib/ExtUtils/ParseXS.pm @@ -18,7 +18,7 @@ my(@XSStack); # Stack of conditionals and INCLUDEs my($XSS_work_idx, $cpp_next_tmp); use vars qw($VERSION); -$VERSION = '2.16_01'; +$VERSION = '2.16_02'; use vars qw(%input_expr %output_expr $ProtoUsed @InitFileCode $FH $proto_re $Overload $errors $Fallback $cplusplus $hiertype $WantPrototypes $WantVersionChk $except $WantLineNumbers @@ -594,12 +594,12 @@ EOF if ($ALIAS) { print Q(<<"EOF") if $cond } # if ($cond) -# Perl_croak(aTHX_ "Usage: %s($report_args)", GvNAME(CvGV(cv))); +# Perl_croak(aTHX_ "Usage: %s(%s)", GvNAME(CvGV(cv)), "$report_args"); EOF else { print Q(<<"EOF") if $cond } # if ($cond) -# Perl_croak(aTHX_ "Usage: $pname($report_args)"); +# Perl_croak(aTHX_ "Usage: %s(%s)", "$pname", "$report_args"); EOF # cv doesn't seem to be used, in most cases unless we go in