diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-25 09:50:46 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-25 09:50:46 -0200 |
| commit | bdf566a8a32450c2eb6273c8c1a92e2181b6846e (patch) | |
| tree | b301da541fbad81034216a6e0465cc381082431e /lmem.c | |
| parent | c3c78030f79fdbbb06265d50645e408d60e7798e (diff) | |
| download | lua-bdf566a8a32450c2eb6273c8c1a92e2181b6846e.tar.gz lua-bdf566a8a32450c2eb6273c8c1a92e2181b6846e.tar.bz2 lua-bdf566a8a32450c2eb6273c8c1a92e2181b6846e.zip | |
`name' in comments changed to 'name'
Diffstat (limited to 'lmem.c')
| -rw-r--r-- | lmem.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -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) |
