summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2012-11-12 06:19:10 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-11-12 08:32:50 -0800
commit4cbe3a7d4e9196aab2ca064651827e69cfa50f74 (patch)
tree11adea255a75691aac2e61ba2162d24ca40f9a59 /embed.fnc
parent0e578cb525681b03d8893587039eba95f1e2e0ab (diff)
downloadperl-4cbe3a7d4e9196aab2ca064651827e69cfa50f74.tar.gz
clean up the users of PL_no_mem
This commit eliminates a couple strlen()s of a literal. "Out of memory!\n" and PL_no_mem did not string pool on Visual C, so PL_no_mem was given a length. This commit removes S_write_no_mem and replaces it with nonstatic. Perl_croak_no_mem was made nocontext to save instructions in it's callers. NORETURN_FUNCTION_END caused a syntax error on Visual C C++ mode and therefore was removed.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index cb5d827bd6..3eb0084543 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -249,6 +249,7 @@ Aprd |void |vcroak |NULLOK const char* pat|NULLOK va_list* args
Anprd |void |croak_no_modify
Anprd |void |croak_xs_usage |NN const CV *const cv \
|NN const char *const params
+npr |void |croak_no_mem
#if defined(WIN32)
norx |void |win32_croak_not_implemented|NN const char * fname
#endif
@@ -2198,7 +2199,6 @@ s |const COP*|closest_cop |NN const COP *cop|NULLOK const OP *o
s |SV* |mess_alloc
s |SV *|with_queued_errors|NN SV *ex
s |bool |invoke_exception_hook|NULLOK SV *ex|bool warn
-sr |char * |write_no_mem
#if defined(PERL_MEM_LOG) && !defined(PERL_MEM_LOG_NOIMPL)
sn |void |mem_log_common |enum mem_log_type mlt|const UV n|const UV typesize \
|NN const char *type_name|NULLOK const SV *sv \