summaryrefslogtreecommitdiff
path: root/reentr.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-09 09:15:55 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-09 09:15:55 +0000
commite06c4d37e9c075c9a909e0cdf8fdf9d851bbe1a4 (patch)
treed55674661c461e49f37dd7fc7bab11c96f5be239 /reentr.pl
parent4210e2f66b35a304bfe2b0c1c7eb1f8d48a82407 (diff)
downloadperl-e06c4d37e9c075c9a909e0cdf8fdf9d851bbe1a4.tar.gz
reentr.pl should be using regen_lib.pl and unlinking files before it
starts. p4raw-id: //depot/perl@24774
Diffstat (limited to 'reentr.pl')
-rw-r--r--reentr.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/reentr.pl b/reentr.pl
index a38eab114d..cdce54e53a 100644
--- a/reentr.pl
+++ b/reentr.pl
@@ -5,6 +5,11 @@
# and optionally also the relevant metaconfig units (-U option).
#
+BEGIN {
+ # Get function prototypes
+ require 'regen_lib.pl';
+}
+
use strict;
use Getopt::Std;
my %opts;
@@ -35,6 +40,7 @@ my %map = (
# Example #3: S_CBI means type func_r(const char*, char*, int)
+safer_unlink 'reentr.h';
die "reentr.h: $!" unless open(H, ">reentr.h");
select H;
print <<EOF;
@@ -759,6 +765,7 @@ close(H);
# Prepare to write the reentr.c.
+safer_unlink 'reentr.c';
die "reentr.c: $!" unless open(C, ">reentr.c");
select C;
print <<EOF;