aboutsummaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'lmem.c')
-rw-r--r--lmem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lmem.c b/lmem.c
index a58951e2..83f1d2c8 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.85 2014/06/26 18:29:05 roberto Exp roberto $ 2** $Id: lmem.c,v 1.86 2014/07/15 21:26:50 roberto Exp roberto $
3** Interface to Memory Manager 3** Interface to Memory Manager
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -24,12 +24,12 @@
24/* 24/*
25** About the realloc function: 25** About the realloc function:
26** void * frealloc (void *ud, void *ptr, size_t osize, size_t nsize); 26** void * frealloc (void *ud, void *ptr, size_t osize, size_t nsize);
27** (`osize' is the old size, `nsize' is the new size) 27** ('osize' is the old size, 'nsize' is the new size)
28** 28**
29** * frealloc(ud, NULL, x, s) creates a new block of size `s' (no 29** * frealloc(ud, NULL, x, s) creates a new block of size 's' (no
30** matter 'x'). 30** matter 'x').
31** 31**
32** * frealloc(ud, p, x, 0) frees the block `p' 32** * frealloc(ud, p, x, 0) frees the block 'p'
33** (in this specific case, frealloc must return NULL); 33** (in this specific case, frealloc must return NULL);
34** particularly, frealloc(ud, NULL, 0, 0) does nothing 34** particularly, frealloc(ud, NULL, 0, 0) does nothing
35** (which is equivalent to free(NULL) in ANSI C) 35** (which is equivalent to free(NULL) in ANSI C)