summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embed.fnc6
-rw-r--r--malloc.c9
2 files changed, 12 insertions, 3 deletions
diff --git a/embed.fnc b/embed.fnc
index ed7f4b4591..e83b61009a 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -321,9 +321,9 @@ ATo |PerlInterpreter*|perl_clone_using \
# endif
#endif
-AaTop |Malloc_t|malloc |MEM_SIZE nbytes
-AaTop |Malloc_t|calloc |MEM_SIZE elements|MEM_SIZE size
-ARTop |Malloc_t|realloc |Malloc_t where|MEM_SIZE nbytes
+AaTophd |Malloc_t|malloc |MEM_SIZE nbytes
+AaTophd |Malloc_t|calloc |MEM_SIZE elements|MEM_SIZE size
+ARTophd |Malloc_t|realloc |Malloc_t where|MEM_SIZE nbytes
ATop |Free_t |mfree |Malloc_t where
#if defined(MYMALLOC)
TpR |MEM_SIZE|malloced_size |NN void *p
diff --git a/malloc.c b/malloc.c
index 0c80a0856f..ded9868af8 100644
--- a/malloc.c
+++ b/malloc.c
@@ -1223,6 +1223,15 @@ S_adjust_size_and_find_bucket(size_t *nbytes_p)
return bucket;
}
+/*
+These have the same interfaces as the C lib ones, so are considered documented
+
+=for apidoc malloc
+=for apidoc calloc
+=for apidoc realloc
+=cut
+*/
+
Malloc_t
Perl_malloc(size_t nbytes)
{