summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-07-01 18:48:10 -0600
committerKarl Williamson <khw@cpan.org>2021-08-14 06:47:43 -0600
commit1aa501c28abd51b6253fb6da3caeee66320bf274 (patch)
tree34755745c3dffee562186389cedada7b54c88bc0 /embed.h
parent22f363ffd253b5142b1138438c30f34da9494d4a (diff)
downloadperl-1aa501c28abd51b6253fb6da3caeee66320bf274.tar.gz
utf8.c: Refactor is_utf8_char_helper()
Now that the DFA is used by the only callers to this to eliminate the need to check for e.g., wrong continuation bytes, this function can be refactored to use a switch statement, which makes it clearer, shorter, and faster. The name is changed to indicate its private nature
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index f4e0043cf1..8e9b3779dc 100644
--- a/embed.h
+++ b/embed.h
@@ -277,7 +277,7 @@
#ifndef NO_MATHOMS
#define is_utf8_char Perl_is_utf8_char
#endif
-#define is_utf8_char_helper Perl_is_utf8_char_helper
+#define is_utf8_char_helper_ Perl_is_utf8_char_helper_
#define is_utf8_fixed_width_buf_loclen_flags Perl_is_utf8_fixed_width_buf_loclen_flags
#define is_utf8_invariant_string_loc Perl_is_utf8_invariant_string_loc
#define is_utf8_string_flags Perl_is_utf8_string_flags