This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c: Extract part of \N{} processing to new function
authorKarl Williamson <public@khwilliamson.com>
Fri, 26 Oct 2012 01:10:03 +0000 (19:10 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sun, 11 Nov 2012 17:11:33 +0000 (10:11 -0700)
commit6f613c73269ab31da4b87eae3af051905ffc94cf
tree205f1969cdebec080d327976b5ea837080494656
parentd088425de1afed172efc29a32ce0910bf5ee6efb
toke.c: Extract part of \N{} processing to new function

This is in preparation for making fatal the deprecations that this code
covers.

This code combines the first and final portions of the code that handles
\N{names}, leaving the middle intact.  There are no intentional logic
changes.  The code is moved and outdented as appropriate for not being
within nested "if's", and the comments are reflowed to fill 79 columns.
One declaration had a const added.

This causes the logic that checks for input name validity to be moved
from after everything is computed to doing it beforehand.  Since invalid
names are not currently fatal, there was no problem with checking them
after computing things, but a future commit will make them fatal, so
this saves the work of computing something that is erroneous.
embed.fnc
embed.h
proto.h
toke.c