From: Peter Prymmer Date: Tue, 10 Jul 2001 19:33:00 +0000 (-0700) Subject: blead kit timestamps && the problem with running perl embed.pl X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4543f4c00774aa97ed0915825e1f257dcf27c3a6;p=p5sagit%2Fp5-mst-13.2.git blead kit timestamps && the problem with running perl embed.pl Message-ID: Backport of embed.pl to 5.003. p4raw-id: //depot/perl@11277 --- diff --git a/embed.pl b/embed.pl index c2f5351..82ebfd2 100755 --- a/embed.pl +++ b/embed.pl @@ -49,7 +49,8 @@ sub walk_table (&@) { else { @args = split /\s*\|\s*/, $_; } - print $F $function->(@args); + my @outs = &{$function}(@args); + print $F @outs; # $function->(@args) is not 5.003 } print $F $trailer if $trailer; close $F unless ref $filename; @@ -251,7 +252,8 @@ readvars %intrp, 'intrpvar.h','I'; readvars %thread, 'thrdvar.h','T'; readvars %globvar, 'perlvars.h','G'; -foreach my $sym (sort keys %thread) { +my $sym; +foreach $sym (sort keys %thread) { warn "$sym in intrpvar.h as well as thrdvar.h\n" if exists $intrp{$sym}; } @@ -856,15 +858,15 @@ START_EXTERN_C EOT -foreach my $sym (sort keys %intrp) { +foreach $sym (sort keys %intrp) { print CAPIH bincompat_var('I',$sym); } -foreach my $sym (sort keys %thread) { +foreach $sym (sort keys %thread) { print CAPIH bincompat_var('T',$sym); } -foreach my $sym (sort keys %globvar) { +foreach $sym (sort keys %globvar) { print CAPIH bincompat_var('G',$sym); } @@ -985,7 +987,7 @@ sub emit_func { if (length $return) { $decl .= " $rettype retval;\n"; $retarg .= "retval = "; - $return = "\n ${return}retval;\n"; + $return = "\n " . $return . "retval;\n"; } $emitval .= <