A few details in the makefile and in the manual. (In particular,
it updates the dependency lists in the makefile.)
This commit is contained in:
Roberto Ierusalimschy
2018-12-17 13:56:22 -02:00
parent 2258f3133b
commit af6d9f3116
3 changed files with 22 additions and 20 deletions

View File

@@ -156,7 +156,8 @@ void *debug_realloc (void *ud, void *b, size_t oldsize, size_t size) {
size_t realsize = sizeof(Header) + size + MARKSIZE;
if (realsize < size) return NULL; /* arithmetic overflow! */
newblock = cast(Header *, malloc(realsize)); /* alloc a new block */
if (newblock == NULL) return NULL; /* really out of memory? */
if (newblock == NULL)
return NULL; /* really out of memory? */
if (block) {
memcpy(newblock + 1, block + 1, commonsize); /* copy old contents */
freeblock(mc, block); /* erase (and check) old copy */