lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 5cecf0ea9f14d9ea5363654c429c3fd7d2c0e1a7
parent 3bc925138ebcb534f863b3fb32b21eb8d52aa915
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 22 Feb 2000 15:53:54 -0200

it is better to control stack space where it is needed.

Diffstat:
Mlapi.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lapi.c b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 1.70 2000/01/24 20:14:07 roberto Exp roberto $ +** $Id: lapi.c,v 1.71 2000/02/08 16:34:31 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -142,7 +142,6 @@ lua_Object lua_rawgettable (lua_State *L) { void lua_settable (lua_State *L) { StkId top; luaA_checkCparams(L, 3); - luaD_checkstack(L, 3); /* may need that to call a tag method */ top = L->top; luaV_settable(L, top-3, top); L->top = top-3; /* pop table, index, and value */ @@ -165,7 +164,6 @@ lua_Object lua_createtable (lua_State *L) { lua_Object lua_getglobal (lua_State *L, const char *name) { - luaD_checkstack(L, 3); /* may need that to call a tag method */ luaV_getglobal(L, luaS_assertglobalbyname(L, name), L->top++); return luaA_putObjectOnTop(L); } @@ -179,7 +177,6 @@ lua_Object lua_rawgetglobal (lua_State *L, const char *name) { void lua_setglobal (lua_State *L, const char *name) { luaA_checkCparams(L, 1); - luaD_checkstack(L, 3); /* may need that to call a tag method */ luaV_setglobal(L, luaS_assertglobalbyname(L, name), L->top--); }