From 72659a06050632da1a9b4c492302be46ac283f6b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 28 Nov 2001 18:13:13 -0200 Subject: no more explicit support for wide-chars; too much troble... --- ltable.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 486b09a8..b9e42c18 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.87 2001/10/25 19:14:14 roberto Exp $ +** $Id: ltable.c,v 1.88 2001/11/16 16:29:51 roberto Exp $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -23,7 +23,6 @@ -#define LUA_PRIVATE #include "lua.h" #include "ldo.h" @@ -101,7 +100,7 @@ int luaH_index (lua_State *L, Table *t, const TObject *key) { else { const TObject *v = luaH_get(t, key); if (v == &luaO_nilobject) - luaD_error(L, l_s("invalid key for `next'")); + luaD_error(L, "invalid key for `next'"); i = cast(int, (cast(const lu_byte *, v) - cast(const lu_byte *, val(node(t, 0)))) / sizeof(Node)); return i + t->sizearray; /* hash elements are numbered after array ones */ @@ -193,7 +192,7 @@ static void numuse (const Table *t, int *narray, int *nhash) { static void setarrayvector (lua_State *L, Table *t, int size) { int i; if (size > twoto(MAXBITS)) - luaD_error(L, l_s("table overflow")); + luaD_error(L, "table overflow"); luaM_reallocvector(L, t->array, t->sizearray, size, TObject); for (i=t->sizearray; iarray[i]); @@ -206,7 +205,7 @@ static void setnodevector (lua_State *L, Table *t, int lsize) { int size; if (lsize < MINHASHSIZE) lsize = MINHASHSIZE; else if (lsize > MAXBITS) - luaD_error(L, l_s("table overflow")); + luaD_error(L, "table overflow"); size = twoto(lsize); t->node = luaM_newvector(L, size, Node); for (i=0; i