diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-01-23 10:38:58 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-01-23 10:41:25 +0000 |
commit | ce716c52d393ac84495b7b8f262c39ecc5447cc9 (patch) | |
tree | 8053d9bd192b318367aa7c50b3910bc88b706422 /regen/overload.pl | |
parent | f038801aea0ff24cf86511fa6679d7dcb859cd8d (diff) | |
download | perl-ce716c52d393ac84495b7b8f262c39ecc5447cc9.tar.gz |
Change close_and_rename() to read_only_bottom_close_and_rename()
All users of close_and_rename() were printing out the appropriate "ex: set ro:"
string to the file handle immediately before closing it. So move that into
the common function and rename it to reflect what it now does. [Except
overload.pl, which should have been, given that it calls read_only_top()]
Print a newline above the "ex: set ro:" line. This removes many newlines from
the regen scripts, but does add newlines to a couple of generated files.
Diffstat (limited to 'regen/overload.pl')
-rw-r--r-- | regen/overload.pl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/regen/overload.pl b/regen/overload.pl index 7ff3f124ae..fa22bd50a1 100644 --- a/regen/overload.pl +++ b/regen/overload.pl @@ -57,7 +57,6 @@ our \@enums = qw# { my \$i = 0; our %names = map { \$_ => \$i++ } \@names } { my \$i = 0; our %enums = map { \$_ => \$i++ } \@enums } - EOF } @@ -89,7 +88,6 @@ print <<'EOF'; }; #define NofAMmeth max_amg_code - EOF print $c <<'EOF'; @@ -129,10 +127,9 @@ print $c <<"EOT"; }; EOT -close_and_rename($h); -close_and_rename($c); -close_and_rename($p); - +foreach ($h, $c, $p) { + read_only_bottom_close_and_rename($_); +} __DATA__ # Fallback should be the first fallback () |