X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/5458d9a05ef8545ccbb8a58e670fbede60d10480..6e22b38560ae8c2f1293a7f9bc2709541ea4d528:/regen/regcomp.pl diff --git a/regen/regcomp.pl b/regen/regcomp.pl index 2a1fb03..69643ca 100644 --- a/regen/regcomp.pl +++ b/regen/regcomp.pl @@ -17,7 +17,6 @@ BEGIN { # Get function prototypes require 'regen/regen_lib.pl'; } -#use Fatal qw(open close rename chmod unlink); use strict; open DESC, 'regcomp.sym'; @@ -123,23 +122,12 @@ EXTCONST U8 PL_${varname}_bitmask[] = { $out_mask }; #endif /* DOINIT */ - EOP } -my $tmp_h = 'regnodes.h-new'; - -unlink $tmp_h if -f $tmp_h; - -my $out = safer_open($tmp_h); - +my $out = open_new('regnodes.h', '>', + { by => 'regen/regcomp.pl', from => 'regcomp.sym' }); printf $out <