This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change close_and_rename() to read_only_bottom_close_and_rename()
authorNicholas Clark <nick@ccl4.org>
Sun, 23 Jan 2011 10:38:58 +0000 (10:38 +0000)
committerNicholas Clark <nick@ccl4.org>
Sun, 23 Jan 2011 10:41:25 +0000 (10:41 +0000)
commitce716c52d393ac84495b7b8f262c39ecc5447cc9
tree8053d9bd192b318367aa7c50b3910bc88b706422
parentf038801aea0ff24cf86511fa6679d7dcb859cd8d
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.
15 files changed:
global.sym
lib/overload/numbers.pm
lib/warnings.pm
overload.c
overload.h
proto.h
regen/embed.pl
regen/keywords.pl
regen/opcode.pl
regen/overload.pl
regen/reentr.pl
regen/regcomp.pl
regen/regen_lib.pl
regen/warnings.pl
warnings.h