From: Malcolm Beattie Date: Wed, 25 Feb 1998 17:44:34 +0000 (+0000) Subject: More compiler tweaks. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=33b839e22819d9ddfd0fa565289e5af7b6262ec9;p=p5sagit%2Fp5-mst-13.2.git More compiler tweaks. p4raw-id: //depot/perl@585 --- diff --git a/Makefile.SH b/Makefile.SH index 10a0023..cea0c24 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -186,15 +186,16 @@ h1 = EXTERN.h INTERN.h XSUB.h av.h config.h cop.h cv.h dosish.h h2 = embed.h form.h gv.h handy.h hv.h keywords.h mg.h op.h h3 = opcode.h patchlevel.h perl.h perly.h pp.h proto.h regcomp.h h4 = regexp.h scope.h sv.h unixish.h util.h perlio.h thread.h -h = $(h1) $(h2) $(h3) $(h4) +h5 = bytecode.h byterun.h +h = $(h1) $(h2) $(h3) $(h4) $(h5) -c1 = $(mallocsrc) av.c scope.c op.c doop.c doio.c dump.c hv.c mg.c +c1 = $(mallocsrc) av.c scope.c op.c doop.c doio.c dump.c hv.c mg.c byterun.c c2 = perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c c3 = gv.c sv.c taint.c toke.c util.c deb.c run.c universal.c globals.c perlio.c c = $(c1) $(c2) $(c3) miniperlmain.c perlmain.c -obj1 = $(mallocobj) gv$(OBJ_EXT) toke$(OBJ_EXT) perly$(OBJ_EXT) op$(OBJ_EXT) regcomp$(OBJ_EXT) dump$(OBJ_EXT) util$(OBJ_EXT) mg$(OBJ_EXT) +obj1 = $(mallocobj) gv$(OBJ_EXT) toke$(OBJ_EXT) perly$(OBJ_EXT) op$(OBJ_EXT) regcomp$(OBJ_EXT) dump$(OBJ_EXT) util$(OBJ_EXT) mg$(OBJ_EXT) byterun$(OBJ_EXT) obj2 = hv$(OBJ_EXT) av$(OBJ_EXT) run$(OBJ_EXT) pp_hot$(OBJ_EXT) sv$(OBJ_EXT) pp$(OBJ_EXT) scope$(OBJ_EXT) pp_ctl$(OBJ_EXT) pp_sys$(OBJ_EXT) obj3 = doop$(OBJ_EXT) doio$(OBJ_EXT) regexec$(OBJ_EXT) taint$(OBJ_EXT) deb$(OBJ_EXT) universal$(OBJ_EXT) globals$(OBJ_EXT) perlio$(OBJ_EXT) diff --git a/bytecode.pl b/bytecode.pl index 8eadbdd..e72d852 100644 --- a/bytecode.pl +++ b/bytecode.pl @@ -34,12 +34,12 @@ EOT my $perl_header; ($perl_header = $c_header) =~ s{[/ ]?\*/?}{#}g; -unlink "byterun.c", "byterun.h", "ext/B/Asmdata.pm"; +unlink "byterun.c", "byterun.h", "ext/B/B/Asmdata.pm"; # # Start with boilerplate for Asmdata.pm # -open(ASMDATA_PM, ">ext/B/Asmdata.pm") or die "Asmdata.pm: $!"; +open(ASMDATA_PM, ">ext/B/B/Asmdata.pm") or die "ext/B/B/Asmdata.pm: $!"; print ASMDATA_PM $perl_header, <<'EOT'; package B::Asmdata; use Exporter; @@ -69,11 +69,9 @@ print BYTERUN_C $c_header, <<'EOT'; #include "byterun.h" #ifdef INDIRECT_BGET_MACROS -void byterun(bs) -struct bytestream bs; +void byterun(struct bytestream bs) #else -void byterun(fp) -FILE *fp; +void byterun(FILE *fp) #endif /* INDIRECT_BGET_MACROS */ { dTHR; @@ -216,10 +214,10 @@ EXT SV * specialsv_list[%d]; #define INIT_SPECIALSV_LIST STMT_START { \ EOT for ($i = 0; $i < @specialsv; $i++) { - print BYTERUN_H "specialsv_list[$i] = $specialsv[$i]; \\\n"; + print BYTERUN_H "\tspecialsv_list[$i] = $specialsv[$i]; \\\n"; } print BYTERUN_H <<'EOT'; -} STMT_END + } STMT_END EOT # diff --git a/byterun.c b/byterun.c index 3d4b64f..fe7d6d3 100644 --- a/byterun.c +++ b/byterun.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 1997 Malcolm Beattie + * Copyright (c) 1996-1998 Malcolm Beattie * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -15,11 +15,9 @@ #include "byterun.h" #ifdef INDIRECT_BGET_MACROS -void byterun(bs) -struct bytestream bs; +void byterun(struct bytestream bs) #else -void byterun(fp) -FILE *fp; +void byterun(FILE *fp) #endif /* INDIRECT_BGET_MACROS */ { dTHR; diff --git a/byterun.h b/byterun.h index 81e8204..f7185c7 100644 --- a/byterun.h +++ b/byterun.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 1997 Malcolm Beattie + * Copyright (c) 1996-1998 Malcolm Beattie * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -187,8 +187,8 @@ EXT int optype_size[] EXT SV * specialsv_list[4]; #define INIT_SPECIALSV_LIST STMT_START { \ -specialsv_list[0] = Nullsv; \ -specialsv_list[1] = &sv_undef; \ -specialsv_list[2] = &sv_yes; \ -specialsv_list[3] = &sv_no; \ -} STMT_END + specialsv_list[0] = Nullsv; \ + specialsv_list[1] = &sv_undef; \ + specialsv_list[2] = &sv_yes; \ + specialsv_list[3] = &sv_no; \ + } STMT_END diff --git a/ext/B/B/Asmdata.pm b/ext/B/B/Asmdata.pm index 3a3cf6d..b1df379 100644 --- a/ext/B/B/Asmdata.pm +++ b/ext/B/B/Asmdata.pm @@ -1,5 +1,5 @@ # -# Copyright (c) 1996, 1997 Malcolm Beattie +# Copyright (c) 1996-1998 Malcolm Beattie # # You may distribute under the terms of either the GNU General Public # License or the Artistic License, as specified in the README file.