summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-08-30 14:09:48 -0600
committerKarl Williamson <khw@cpan.org>2019-09-02 21:52:11 -0600
commit7dfc378e24c21467deb8f13256031c2c6ff63efd (patch)
treedf777a80ad3ff3db41427fe431cd2039b07ae91e
parentffd7c33adae91db87322fdbc5a4b1e3713f638d3 (diff)
downloadperl-7dfc378e24c21467deb8f13256031c2c6ff63efd.tar.gz
Note that [cm]alloc, realloc are documented
As they are really Unix calls
-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)
{