diff options
author | Karl Williamson <khw@cpan.org> | 2018-06-25 19:11:46 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-07-05 14:47:18 -0600 |
commit | 8ed185f9c23fbf6e4b07abbe602e675889d07d4a (patch) | |
tree | 2c67fc73b1f4fa6023f5a4be18e0d158ca083c32 /embed.h | |
parent | 3de6d1419f40062b902c4f65a73bde456095805f (diff) | |
download | perl-8ed185f9c23fbf6e4b07abbe602e675889d07d4a.tar.gz |
Make isUTF8_char() an inline function
It was a macro that used a trie. This changes to use the dfa
constructed in previous commits. I didn't bother with taking
measurements. A dfa should require fewer conditionals to be executed
for many code points.
Diffstat (limited to 'embed.h')
-rw-r--r-- | embed.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -258,6 +258,7 @@ #define init_stacks() Perl_init_stacks(aTHX) #define init_tm(a) Perl_init_tm(aTHX_ a) #define intro_my() Perl_intro_my(aTHX) +#define isUTF8_CHAR S_isUTF8_CHAR #define is_c9strict_utf8_string_loclen S_is_c9strict_utf8_string_loclen #define is_lvalue_sub() Perl_is_lvalue_sub(aTHX) #define is_safe_syscall(a,b,c,d) S_is_safe_syscall(aTHX_ a,b,c,d) |