This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
handy.h: isASCII() extend to work on > 8 bit values
authorKarl Williamson <public@khwilliamson.com>
Sun, 19 Sep 2010 18:29:02 +0000 (12:29 -0600)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 22 Sep 2010 23:02:42 +0000 (16:02 -0700)
commitd0dcc4028a160eba03640da1ff1d34087f930ec1
treed61642cec6830e2dd4bf23484085225d8bf4da92
parent89e8dfa95ef07c947545bb90a358cf884038b1eb
handy.h: isASCII() extend to work on > 8 bit values

Prior to this patch, if isASCII() is called with something like '256',
it would return true.

For some reason unknown to me, U64 is defined only inside the perl core.
However, the equivalent U64TYPE is known everywhere, so in the macro
that can be called outside of core, use that instead.

The commit log doesn't give a reason for not defining U64 outside of
core, and no tests in the suite fail when it is defined outside core.
But out of caution, I'm just doing this workaround instead of exposing
U64.
handy.h