summaryrefslogtreecommitdiff
path: root/regen/keywords.pl
Commit message (Collapse)AuthorAgeFilesLines
* Deparse CORE::breakFather Chrysostomos2011-06-171-0/+2
| | | | This is something 80e3f4adf22 missed.
* Add an optional third argument to open_new(), to invoke read_only_top() with.Nicholas Clark2011-05-191-8/+6
| | | | Merge together many calls to open_new() and read_only_top().
* Rename safer_open() to open_new(), and eliminate the first parameter.Nicholas Clark2011-05-191-2/+2
| | | | Update the SHA256s where necessary in the generated files.
* Merge perl_keyword.pl into regen/keywords.pl, to generate keywords.[ch]Nicholas Clark2011-01-241-265/+333
| | | | | | | | | | Prepend + or - in front of all the keyword names in __DATA__ to mark weak and strong keywords, needed for keyword.c As keywords.c needs Devel::Tokenizer::C 0.05, not a core module (and not a common module either) we can no longer run it as part of regen.pl. So store the sha256 of the source in the generated files, and use this in to check that they are not stale (in t/porting/regen.t)
* In regen scripts, print to explicit file handles instead of using select.Nicholas Clark2011-01-231-5/+4
| | | | | Also put explicit quotes on heredoc declarations to show whether they should interpolate, merge some heredocs, and remove & from calls to &tab(...)
* Move the duplicated subroutine tab() into regen_lib.plNicholas Clark2011-01-231-7/+0
|
* Change close_and_rename() to read_only_bottom_close_and_rename()Nicholas Clark2011-01-231-3/+1
| | | | | | | | | | 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.
* In regen/*.pl, refactor the repeated code for close and rename if different.Nicholas Clark2011-01-231-4/+2
| | | | | | | Pass the final file name as an optional second argument of safer_open() and store it with the file handle. Add a function close_and_rename() which closes the file handle, then retrieves the final name, and renames the temporary file if the two differ.
* Move all the generated file header printing into read_only_top()Nicholas Clark2011-01-231-16/+3
| | | | | | | | | Previously all the scripts in regen/ had code to generate header comments (buffer-read-only, "do not edit this file", and optionally regeneration script, regeneration data, copyright years and filename). This change results in some minor reformatting of header blocks, and standardises the copyright line as "Larry Wall and others".
* keywords.pl -> regen/keywords.plFather Chrysostomos2010-10-131-2/+2
|
* Move regen scripts to regen/Steffen Mueller2010-10-101-0/+315
Moves the various scripts that are called by regen.pl to a subdirectory to reduce clutter.