summaryrefslogtreecommitdiff
path: root/opcode.pl
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2004-11-16 10:55:20 +0000
committerSteve Hay <SteveHay@planit.com>2004-11-16 10:55:20 +0000
commitdfb1454fc4d475052564cd52d54284a5565a13e1 (patch)
tree8afc37835ece95d079f371b69b4f113f51698ec1 /opcode.pl
parent3d036c2b4a16bfabb30adc0a1c9a65f0f7823869 (diff)
downloadperl-dfb1454fc4d475052564cd52d54284a5565a13e1.tar.gz
Make all scripts run by regen.pl write output with UNIX style EOL's.
(autodoc.pl was already done by change 23371.) p4raw-id: //depot/perl@23501
Diffstat (limited to 'opcode.pl')
-rwxr-xr-xopcode.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/opcode.pl b/opcode.pl
index 70516d0eee..d9c81b3c81 100755
--- a/opcode.pl
+++ b/opcode.pl
@@ -7,7 +7,9 @@ BEGIN {
$opcode_new = 'opcode.h-new';
$opname_new = 'opnames.h-new';
open(OC, ">$opcode_new") || die "Can't create $opcode_new: $!\n";
+binmode OC;
open(ON, ">$opname_new") || die "Can't create $opname_new: $!\n";
+binmode ON;
select OC;
# Read data.
@@ -293,7 +295,9 @@ $pp_proto_new = 'pp_proto.h-new';
$pp_sym_new = 'pp.sym-new';
open PP, ">$pp_proto_new" or die "Error creating $pp_proto_new: $!";
+binmode PP;
open PPSYM, ">$pp_sym_new" or die "Error creating $pp_sym_new: $!";
+binmode PPSYM;
print PP <<"END";
/* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!