summaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-28 18:13:13 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-28 18:13:13 -0200
commit72659a06050632da1a9b4c492302be46ac283f6b (patch)
treebac06b4ea523ba5443564d0869e392180d4b7b77 /lmem.c
parentdfaf8c5291fa8aef5bedbfa375853475364ac76e (diff)
downloadlua-github-72659a06050632da1a9b4c492302be46ac283f6b.tar.gz
no more explicit support for wide-chars; too much troble...
Diffstat (limited to 'lmem.c')
-rw-r--r--lmem.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lmem.c b/lmem.c
index 32318815..33181016 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
/*
-** $Id: lmem.c,v 1.50 2001/08/31 19:46:07 roberto Exp $
+** $Id: lmem.c,v 1.51 2001/10/25 19:13:33 roberto Exp $
** Interface to Memory Manager
** See Copyright Notice in lua.h
*/
@@ -7,7 +7,6 @@
#include <stdlib.h>
-#define LUA_PRIVATE
#include "lua.h"
#include "ldo.h"
@@ -27,7 +26,7 @@
void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems,
- int limit, const l_char *errormsg) {
+ int limit, const char *errormsg) {
void *newblock;
int newsize = (*size)*2;
if (newsize < MINSIZEARRAY)
@@ -54,7 +53,7 @@ void *luaM_realloc (lua_State *L, void *block, lu_mem oldsize, lu_mem size) {
block = NULL;
}
else if (size >= MAX_SIZET)
- luaD_error(L, l_s("memory allocation error: block too big"));
+ luaD_error(L, "memory allocation error: block too big");
else {
block = l_realloc(block, oldsize, size);
if (block == NULL) {