X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=vms%2Fvms_yfix.pl;h=f57ea1d515077f1803904b191b97bdec9f3cc005;hb=e92c4225b24535b7128dd90f6a3e01d0abc79a1d;hp=33af914b25c8443cb722122819a944302172b1d0;hpb=c07a80fdfe3926b5eb0585b674aa5d1f57b32ade;p=p5sagit%2Fp5-mst-13.2.git diff --git a/vms/vms_yfix.pl b/vms/vms_yfix.pl index 33af914..f57ea1d 100644 --- a/vms/vms_yfix.pl +++ b/vms/vms_yfix.pl @@ -6,10 +6,12 @@ # If it finds that the input files are already patches for VMS, # it just copies the input to the output. # -# Revised 29-Jan-1996 by Charles Bailey bailey@genetics.upenn.edu +# Revised 20-Dec-1996 by Charles Bailey bailey@genetics.upenn.edu -$VERSION = '1.1'; +$VERSION = '1.11'; +push(@ARGV,(qw[ perly.c perly.h vms/perly_c.vms vms/perly_h.vms])[@ARGV..4]) + if @ARGV < 4; ($cinfile,$hinfile,$coutfile,$houtfile) = @ARGV; open C,$cinfile or die "Can't read $cinfile: $!\n"; @@ -21,6 +23,10 @@ while () { # "y.tab.c" is illegal as a VMS filename; DECC 5.2/VAX preprocessor # doesn't like this. if ( s/^#line\s+(\d+)\s+"y.tab.c"/#line $1 "y_tab.c"/ ) { 1; } + elsif (/char \*getenv/) { + # accomodate old VAXC's macro susbstitution pecularities + $_ = "# ifndef getenv\n$_# endif\n"; + } else { # add the dEXT tag to definitions of global vars, so we'll insert # a globaldef when perly.c is compiled