This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Request is_utf8_char_slow() be inlined
authorKarl Williamson <public@khwilliamson.com>
Sat, 24 Nov 2012 18:18:31 +0000 (11:18 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 24 Nov 2012 19:58:12 +0000 (12:58 -0700)
embed.fnc
proto.h
utf8.c

index 0aa6faf..b0ed87a 100644 (file)
--- a/embed.fnc
+++ b/embed.fnc
@@ -2218,7 +2218,7 @@ sn        |NV|mulexp10    |NV value|I32 exponent
 #endif
 
 #if defined(PERL_IN_UTF8_C)
-sRn    |STRLEN |is_utf8_char_slow|NN const U8 *s|const STRLEN len
+iRn    |STRLEN |is_utf8_char_slow|NN const U8 *s|const STRLEN len
 sRM    |UV     |check_locale_boundary_crossing|NN const U8* const p|const UV result|NN U8* const ustrp|NN STRLEN *lenp
 iR     |bool   |is_utf8_common |NN const U8 *const p|NN SV **swash|NN const char * const swashname
 sR     |SV*    |swatch_get     |NN SV* swash|UV start|UV span
diff --git a/proto.h b/proto.h
index b044718..3089f0a 100644 (file)
--- a/proto.h
+++ b/proto.h
@@ -7240,7 +7240,7 @@ STATIC UV S_check_locale_boundary_crossing(pTHX_ const U8* const p, const UV res
 #define PERL_ARGS_ASSERT_CHECK_LOCALE_BOUNDARY_CROSSING        \
        assert(p); assert(ustrp); assert(lenp)
 
-STATIC STRLEN  S_is_utf8_char_slow(const U8 *s, const STRLEN len)
+PERL_STATIC_INLINE STRLEN      S_is_utf8_char_slow(const U8 *s, const STRLEN len)
                        __attribute__warn_unused_result__
                        __attribute__nonnull__(1);
 #define PERL_ARGS_ASSERT_IS_UTF8_CHAR_SLOW     \
diff --git a/utf8.c b/utf8.c
index b380cd2..527c210 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -279,7 +279,7 @@ the "Perl extended UTF-8" (the infamous 'v-strings') will encode into
 five bytes or more.
 
 =cut */
-STATIC STRLEN
+PERL_STATIC_INLINE STRLEN
 S_is_utf8_char_slow(const U8 *s, const STRLEN len)
 {
     dTHX;   /* The function called below requires thread context */