From 04905aaeffba2bc77866a4056dc3f2020a86bb26 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 8 Mar 2017 09:39:11 +0000 Subject: Update documentation for the types change, with some extra fixes Also remove --enable-replace-libc from configure --- doc/libstddjb/alloc.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/libstddjb/alloc.html') diff --git a/doc/libstddjb/alloc.html b/doc/libstddjb/alloc.html index 083b5de..615e67d 100644 --- a/doc/libstddjb/alloc.html +++ b/doc/libstddjb/alloc.html @@ -65,7 +65,7 @@ should favor them over basic interfaces like malloc().

Functions

- char *alloc (unsigned int len)
+ char *alloc (size_t len)
Allocates a block of len bytes in the heap and returns a pointer to the start of the block (or NULL if it failed). Though the pointer type is char *, the block of memory is correctly aligned for any type @@ -80,7 +80,7 @@ Frees the block of heap memory pointed to by p.

- int alloc_realloc (char **p, unsigned int newlen)
+ int alloc_realloc (char **p, size_t newlen)
Redimension the block of heap memory pointed to by *p to newlen bytes. The block may have to be moved, in which case *p will be modified. Normally returns 1; if an error occurred, @@ -89,7 +89,7 @@ modified.

- int alloc_re (char **p, unsigned int oldlen, unsigned int newlen)
+ int alloc_re (char **p, size_t oldlen, size_t newlen)
Legacy interface for reallocation. It works like alloc_realloc, except that the original block length must be provided as the oldlen argument. -- cgit v1.3.1