diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
commit | 39b79783297bee79db9853b63d199e120a009a8f (patch) | |
tree | c738c621c4c28d8822c2f785400786301985273b /lmem.c | |
parent | d164e2294f73d8e69f00d95a66014514b2dd0ec0 (diff) | |
download | lua-39b79783297bee79db9853b63d199e120a009a8f.tar.gz lua-39b79783297bee79db9853b63d199e120a009a8f.tar.bz2 lua-39b79783297bee79db9853b63d199e120a009a8f.zip |
first (big) step to support wide chars
Diffstat (limited to 'lmem.c')
-rw-r--r-- | lmem.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.c,v 1.46 2001/02/06 16:01:29 roberto Exp roberto $ | 2 | ** $Id: lmem.c,v 1.47 2001/02/20 18:15:33 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 | */ |
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | 24 | ||
25 | void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems, | 25 | void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems, |
26 | int limit, const char *errormsg) { | 26 | int limit, const l_char *errormsg) { |
27 | void *newblock; | 27 | void *newblock; |
28 | int newsize = (*size)*2; | 28 | int newsize = (*size)*2; |
29 | if (newsize < MINPOWER2) | 29 | if (newsize < MINPOWER2) |
@@ -49,7 +49,7 @@ void *luaM_realloc (lua_State *L, void *block, lu_mem oldsize, lu_mem size) { | |||
49 | block = NULL; | 49 | block = NULL; |
50 | } | 50 | } |
51 | else if (size >= MAX_SIZET) | 51 | else if (size >= MAX_SIZET) |
52 | luaD_error(L, "memory allocation error: block too big"); | 52 | luaD_error(L, l_s("memory allocation error: block too big")); |
53 | else { | 53 | else { |
54 | block = l_realloc(block, oldsize, size); | 54 | block = l_realloc(block, oldsize, size); |
55 | if (block == NULL) { | 55 | if (block == NULL) { |