summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@opengroup.org>1997-03-26 20:23:14 -0500
committerChip Salzenberg <chip@atlantic.net>1997-03-26 07:04:34 +1200
commita3c8358ce414426ff5d7d0ca29f8d98f18d4c878 (patch)
tree7bd5fb8c9c7f59b41287d9b8a80018733ec0a22c
parent1fd066cbdf7ee74f73ad41ee661bdb6d8d7e141c (diff)
downloadperl-a3c8358ce414426ff5d7d0ca29f8d98f18d4c878.tar.gz
Eliminate unused dummy variable
private-msgid: 199703270123.UAA25454@postman.osf.org
-rw-r--r--lib/ExtUtils/Embed.pm5
-rw-r--r--unixish.h2
-rwxr-xr-xwritemain.SH3
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/ExtUtils/Embed.pm b/lib/ExtUtils/Embed.pm
index b6097f40ff..a26747fe04 100644
--- a/lib/ExtUtils/Embed.pm
+++ b/lib/ExtUtils/Embed.pm
@@ -17,7 +17,7 @@ use vars qw(@ISA @EXPORT $VERSION
);
use strict;
-$VERSION = sprintf("%d.%02d", q$Revision: 1.2201 $ =~ /(\d+)\.(\d+)/);
+$VERSION = sprintf("%d.%02d", q$Revision: 1.2202 $ =~ /(\d+)\.(\d+)/);
#for the namespace change
$Devel::embed::VERSION = "99.99";
@@ -114,8 +114,9 @@ sub xsi_body {
my(@exts) = @_;
my($pname,@retval,%seen);
my($dl) = canon('/','DynaLoader');
+ push(@retval, "\tchar *file = __FILE__;\n");
push(@retval, "\tdXSUB_SYS;\n") if $] > 5.002;
- push(@retval, "\tchar *file = __FILE__;\n\n");
+ push(@retval, "\n");
foreach $_ (@exts){
my($pname) = canon('/', $_);
diff --git a/unixish.h b/unixish.h
index c6cb272104..3e39e7d566 100644
--- a/unixish.h
+++ b/unixish.h
@@ -114,4 +114,4 @@
#define BIT_BUCKET "/dev/null"
-#define dXSUB_SYS int dummy
+#define dXSUB_SYS
diff --git a/writemain.SH b/writemain.SH
index f07c682faf..c428383085 100755
--- a/writemain.SH
+++ b/writemain.SH
@@ -70,11 +70,12 @@ cat << 'EOP'
static void
xs_init()
{
- dXSUB_SYS;
EOP
if test X"$args" != "X" ; then
echo " char *file = __FILE__;"
+ echo " dXSUB_SYS;"
+
ai=''
for ext in $args ; do