diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-28 18:13:13 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-28 18:13:13 -0200 |
commit | 72659a06050632da1a9b4c492302be46ac283f6b (patch) | |
tree | bac06b4ea523ba5443564d0869e392180d4b7b77 /lmem.c | |
parent | dfaf8c5291fa8aef5bedbfa375853475364ac76e (diff) | |
download | lua-72659a06050632da1a9b4c492302be46ac283f6b.tar.gz lua-72659a06050632da1a9b4c492302be46ac283f6b.tar.bz2 lua-72659a06050632da1a9b4c492302be46ac283f6b.zip |
no more explicit support for wide-chars; too much troble...
Diffstat (limited to 'lmem.c')
-rw-r--r-- | lmem.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.c,v 1.50 2001/08/31 19:46:07 roberto Exp $ | 2 | ** $Id: lmem.c,v 1.51 2001/10/25 19:13:33 roberto Exp $ |
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 | */ |
@@ -7,7 +7,6 @@ | |||
7 | 7 | ||
8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
9 | 9 | ||
10 | #define LUA_PRIVATE | ||
11 | #include "lua.h" | 10 | #include "lua.h" |
12 | 11 | ||
13 | #include "ldo.h" | 12 | #include "ldo.h" |
@@ -27,7 +26,7 @@ | |||
27 | 26 | ||
28 | 27 | ||
29 | void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems, | 28 | void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems, |
30 | int limit, const l_char *errormsg) { | 29 | int limit, const char *errormsg) { |
31 | void *newblock; | 30 | void *newblock; |
32 | int newsize = (*size)*2; | 31 | int newsize = (*size)*2; |
33 | if (newsize < MINSIZEARRAY) | 32 | if (newsize < MINSIZEARRAY) |
@@ -54,7 +53,7 @@ void *luaM_realloc (lua_State *L, void *block, lu_mem oldsize, lu_mem size) { | |||
54 | block = NULL; | 53 | block = NULL; |
55 | } | 54 | } |
56 | else if (size >= MAX_SIZET) | 55 | else if (size >= MAX_SIZET) |
57 | luaD_error(L, l_s("memory allocation error: block too big")); | 56 | luaD_error(L, "memory allocation error: block too big"); |
58 | else { | 57 | else { |
59 | block = l_realloc(block, oldsize, size); | 58 | block = l_realloc(block, oldsize, size); |
60 | if (block == NULL) { | 59 | if (block == NULL) { |