diff options
author | Karl Williamson <khw@cpan.org> | 2019-09-11 20:33:05 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-09-15 10:39:56 -0600 |
commit | bdef45de9c7826f7f2eefe93a033a3f42f25608a (patch) | |
tree | 1c5974c01f5b231385cf5b0e83e21f333dee4d79 | |
parent | 2ac0ce0e1ab8109922cbf1cc0824d2a17da26951 (diff) | |
download | perl-bdef45de9c7826f7f2eefe93a033a3f42f25608a.tar.gz |
Add embed.fnc entry for ReANY
This inline function should have an entry.
-rw-r--r-- | embed.fnc | 1 | ||||
-rw-r--r-- | inline.h | 3 | ||||
-rw-r--r-- | proto.h | 5 |
3 files changed, 9 insertions, 0 deletions
@@ -1539,6 +1539,7 @@ ApMb |OP* |ref |NULLOK OP* o|I32 type S |OP* |refkids |NULLOK OP* o|I32 type #endif Ap |void |regdump |NN const regexp* r +CiTop |struct regexp *|ReANY |NN const REGEXP * const re #if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_PERL_C) || defined(PERL_IN_UTF8_C) EXpR |SV* |_new_invlist_C_array|NN const UV* const list EXp |bool |_invlistEQ |NN SV* const a|NN SV* const b|const bool complement_b @@ -185,7 +185,10 @@ PERL_STATIC_INLINE struct regexp * Perl_ReANY(const REGEXP * const re) { XPV* const p = (XPV*)SvANY(re); + + PERL_ARGS_ASSERT_REANY; assert(isREGEXP(re)); + return SvTYPE(re) == SVt_PVLV ? p->xpv_len_u.xpvlenu_rx : (struct regexp *)p; } @@ -70,6 +70,11 @@ PERL_CALLCONV int Perl_PerlLIO_open_cloexec(pTHX_ const char *file, int flag) PERL_CALLCONV const char* Perl_setlocale(const int category, const char* locale); #define PERL_ARGS_ASSERT_PERL_SETLOCALE +#ifndef PERL_NO_INLINE_FUNCTIONS +PERL_STATIC_INLINE struct regexp * Perl_ReANY(const REGEXP * const re); +#define PERL_ARGS_ASSERT_REANY \ + assert(re) +#endif PERL_CALLCONV void* Perl_Slab_Alloc(pTHX_ size_t sz) __attribute__warn_unused_result__; #define PERL_ARGS_ASSERT_SLAB_ALLOC |