This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mktables: refactor algorithmically-defined names into globals
authorKarl Williamson <public@khwilliamson.com>
Tue, 4 Oct 2011 16:41:28 +0000 (10:41 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 8 Nov 2011 15:09:21 +0000 (08:09 -0700)
commitbb1dd3dad52bd7361a51602dea9a56a2e7048768
treea8f506150468e3ccf50fa07cd2fbb3806e7849d7
parent52dc8b5d386b918db9166567d86df5e1032ae6c7
mktables: refactor algorithmically-defined names into globals

This is in preparation for splitting the Name.pl and Name.pm files.
Prior to this patch, the code is copied into any file that needs it.
After this patch, it will be possible to store the code in Name.pm
once.

The main issue here is that Perl creates the Perl_charname file,
and the To/Name.pl file, both of which contain the Name property (the
first one also contains other things.)  Normally the To/Name.pl is
suppressed, but things can be configured so it is output.  The
subroutines that deal with algorithmically defined names are duplicated
in both files.  Future commits will also have Unicode::UCD refer to
those subroutines.  We do not want a calling program to load duplicate
or triplicate definitions of those subroutines, so we are refactoring
them into Name.pm, which can be included just once.
lib/unicore/mktables