summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-07-01 06:18:01 -0600
committerKarl Williamson <khw@cpan.org>2017-07-12 21:14:26 -0600
commit8d6204cca6dfeab549e87d3b40fa1900a8ca8a0e (patch)
tree91712f1aadc752b7f618fadd3766189fe7c1c5b9 /embed.fnc
parentc4e96019708f80aedf076564f0d2994581c027b9 (diff)
downloadperl-8d6204cca6dfeab549e87d3b40fa1900a8ca8a0e.tar.gz
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.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index 20f2987bfe..6799895ebb 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -1724,7 +1724,7 @@ EpM |char * |_byte_dump_string \
#if defined(PERL_IN_UTF8_C)
inR |bool |does_utf8_overflow|NN const U8 * const s|NN const U8 * e
inR |bool |is_utf8_overlong_given_start_byte_ok|NN const U8 * const s|const STRLEN len
-inR |bool |isFF_OVERLONG |NN const U8 * const s|const STRLEN len
+inR |int |isFF_OVERLONG |NN const U8 * const s|const STRLEN len
sMR |char * |unexpected_non_continuation_text \
|NN const U8 * const s \
|STRLEN print_len \