summaryrefslogtreecommitdiff
path: root/embed.pl
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2001-07-05 00:52:57 +0000
committerGurusamy Sarathy <gsar@cpan.org>2001-07-05 00:52:57 +0000
commitcae6d0e5ad55f3d6c7902bf7cfc560481e827bb3 (patch)
tree215b3828567ca9dacc002b6bd8677ce13150a6db /embed.pl
parent50dd6e574ff39b609595ddb16b2fe9f625a26f8c (diff)
downloadperl-cae6d0e5ad55f3d6c7902bf7cfc560481e827bb3.tar.gz
fix the binary compatibility issue when building with/without
usemymalloc by exporting Perl_malloc() et al as simple wrappers around the system functions (this allows most extensions built using one mode to coexist with perls built in the other mode) XXX the Perl_mfree() wrapper might need to do return(free()) on platforms where Free_t isn't "void" p4raw-id: //depot/perl@11152
Diffstat (limited to 'embed.pl')
-rwxr-xr-xembed.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.pl b/embed.pl
index ca061f435d..e322ae258c 100755
--- a/embed.pl
+++ b/embed.pl
@@ -1359,11 +1359,11 @@ Ajno |PerlInterpreter*|perl_clone_using|PerlInterpreter *interp|UV flags \
# endif
#endif
-#if defined(MYMALLOC)
Ajnop |Malloc_t|malloc |MEM_SIZE nbytes
Ajnop |Malloc_t|calloc |MEM_SIZE elements|MEM_SIZE size
Ajnop |Malloc_t|realloc |Malloc_t where|MEM_SIZE nbytes
Ajnop |Free_t |mfree |Malloc_t where
+#if defined(MYMALLOC)
jnp |MEM_SIZE|malloced_size |void *p
#endif