diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-09 09:15:55 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-09 09:15:55 +0000 |
commit | e06c4d37e9c075c9a909e0cdf8fdf9d851bbe1a4 (patch) | |
tree | d55674661c461e49f37dd7fc7bab11c96f5be239 /reentr.pl | |
parent | 4210e2f66b35a304bfe2b0c1c7eb1f8d48a82407 (diff) | |
download | perl-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.pl | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |