This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.c: Generalize static fcn return for indeterminate result
authorKarl Williamson <khw@cpan.org>
Sat, 1 Jul 2017 12:18:01 +0000 (06:18 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 13 Jul 2017 03:14:26 +0000 (21:14 -0600)
commit8d6204cca6dfeab549e87d3b40fa1900a8ca8a0e
tree91712f1aadc752b7f618fadd3766189fe7c1c5b9
parentc4e96019708f80aedf076564f0d2994581c027b9
utf8.c: Generalize static fcn return for indeterminate result

Prior to this commit, isFF_OVERLONG() returned a boolean, with 0 also
indicating that there wasn't enough information to make a determination.
I realized that I was forgetting that 0 wasn't necessarily definitive
while coding.  By changing the API to return 3 values, forgetting that
won't likely happen.

This and the next several commits change several other functions that
have the same predicament.
embed.fnc
proto.h
utf8.c