diff options
author | Karl Williamson <khw@cpan.org> | 2020-03-09 17:47:09 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-11 16:54:16 -0600 |
commit | d68c938a1e6c6b4bfe907decbb4929780ee06eae (patch) | |
tree | b8416409df2721642467832a69d15102299ef0bf /inline.h | |
parent | fd8ce3da25472276b0923b6f9a6c685b77d63b09 (diff) | |
download | perl-d68c938a1e6c6b4bfe907decbb4929780ee06eae.tar.gz |
Revert "croak_memory_wrap is an inline function."
This reverts commit 6c714a09cc08600278e72aea1fcdf83576d061b4.
croak_memory_wrap is designed to save a few bytes of memory, and was
never intended to be inlined. This commit moves it to util.c where the
other croak functions are.
Diffstat (limited to 'inline.h')
-rw-r--r-- | inline.h | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -292,17 +292,6 @@ S_sv_or_pv_pos_u2b(pTHX_ SV *sv, const char *pv, STRLEN pos, STRLEN *lenp) } #endif -/* ------------------------------- handy.h ------------------------------- */ - -/* saves machine code for a common noreturn idiom typically used in Newx*() */ -GCC_DIAG_IGNORE_DECL(-Wunused-function); -static void -Perl_croak_memory_wrap(void) -{ - Perl_croak_nocontext("%s",PL_memory_wrap); -} -GCC_DIAG_RESTORE_DECL; - /* ------------------------------- utf8.h ------------------------------- */ /* |