This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #122084] BBC KARMAN/Search-Tools
authorKarl Williamson <khw@cpan.org>
Mon, 16 Jun 2014 18:16:40 +0000 (12:16 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 16 Jun 2014 18:42:16 +0000 (12:42 -0600)
The problem was that a function was defined only in PERL_CORE, and
embed.fnc just needed to change to grant access outside that.

embed.fnc
embed.h

index 74b10ce..4d06b34 100644 (file)
--- a/embed.fnc
+++ b/embed.fnc
@@ -644,7 +644,7 @@ pR  |OP*    |invert         |NULLOK OP* cmd
 ApR    |I32    |is_lvalue_sub
 : Used in cop.h
 XopR   |I32    |was_lvalue_sub
-iRn    |STRLEN |_is_utf8_char_slow|NN const U8 *s|NN const U8 *e
+AiMRn  |STRLEN |_is_utf8_char_slow|NN const U8 *s|NN const U8 *e
 ADMpPR |U32    |to_uni_upper_lc|U32 c
 ADMpPR |U32    |to_uni_title_lc|U32 c
 ADMpPR |U32    |to_uni_lower_lc|U32 c
diff --git a/embed.h b/embed.h
index b236ada..28c0aa3 100644 (file)
--- a/embed.h
+++ b/embed.h
@@ -32,6 +32,7 @@
 #define _is_uni_perl_idcont(a) Perl__is_uni_perl_idcont(aTHX_ a)
 #define _is_uni_perl_idstart(a)        Perl__is_uni_perl_idstart(aTHX_ a)
 #define _is_utf8_FOO(a,b)      Perl__is_utf8_FOO(aTHX_ a,b)
+#define _is_utf8_char_slow     S__is_utf8_char_slow
 #define _is_utf8_idcont(a)     Perl__is_utf8_idcont(aTHX_ a)
 #define _is_utf8_idstart(a)    Perl__is_utf8_idstart(aTHX_ a)
 #define _is_utf8_mark(a)       Perl__is_utf8_mark(aTHX_ a)
 #ifdef PERL_CORE
 #define Slab_Alloc(a)          Perl_Slab_Alloc(aTHX_ a)
 #define Slab_Free(a)           Perl_Slab_Free(aTHX_ a)
-#define _is_utf8_char_slow     S__is_utf8_char_slow
 #define allocmy(a,b,c)         Perl_allocmy(aTHX_ a,b,c)
 #define amagic_is_enabled(a)   Perl_amagic_is_enabled(aTHX_ a)
 #define apply(a,b,c)           Perl_apply(aTHX_ a,b,c)