In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/7af276bcacd71d557a403b1d416e975ea139994c?hp=4886dc4f5813d46e391c2336d87c89a3f270b7f9>
- Log ----------------------------------------------------------------- commit 7af276bcacd71d557a403b1d416e975ea139994c Author: Karl Williamson <[email protected]> Date: Sat Nov 24 11:18:31 2012 -0700 Request is_utf8_char_slow() be inlined M embed.fnc M proto.h M utf8.c commit 457a9a829c2fcc56599d6950dcb6861c119bd191 Author: Karl Williamson <[email protected]> Date: Sat Nov 24 11:14:28 2012 -0700 regen/embed.pl: flag 'i' didn't work with 'n' M regen/embed.pl ----------------------------------------------------------------------- Summary of changes: embed.fnc | 2 +- proto.h | 2 +- regen/embed.pl | 2 +- utf8.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/embed.fnc b/embed.fnc index 0aa6faf..b0ed87a 100644 --- 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 --- 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/regen/embed.pl b/regen/embed.pl index 2a47e86..8f59f36 100755 --- a/regen/embed.pl +++ b/regen/embed.pl @@ -274,7 +274,7 @@ sub embed_h { unless ($flags =~ /[om]/) { my $args = scalar @args; if ($flags =~ /n/) { - if ($flags =~ /s/) { + if ($flags =~ /[si]/) { $ret = hide($func,"S_$func"); } elsif ($flags =~ /p/) { diff --git a/utf8.c b/utf8.c index b380cd2..527c210 100644 --- 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 */ -- Perl5 Master Repository
