commit dae99205cfd6f642ffc107bdb949f6a8937992bc
parent 9eb0f25a296c355dc199647a3084de73da726ab2
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Wed, 14 May 2003 18:06:34 -0300
no more compatibility code
Diffstat:
2 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/lapi.c b/lapi.c
@@ -1,5 +1,5 @@
/*
-** $Id: lapi.c,v 1.237 2003/05/05 18:39:57 roberto Exp roberto $
+** $Id: lapi.c,v 1.238 2003/05/09 20:16:54 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -843,23 +843,6 @@ LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
}
-LUA_API int lua_pushupvalues (lua_State *L) {
- Closure *func;
- int n, i;
- lua_lock(L);
- api_check(L, iscfunction(L->base - 1));
- func = clvalue(L->base - 1);
- n = func->c.nupvalues;
- luaD_checkstack(L, n + LUA_MINSTACK);
- for (i=0; i<n; i++) {
- setobj2s(L->top, &func->c.upvalue[i]);
- L->top++;
- }
- lua_unlock(L);
- return n;
-}
-
-
static const char *aux_upvalue (lua_State *L, int funcindex, int n,
TObject **val) {
Closure *f;
diff --git a/lua.h b/lua.h
@@ -1,5 +1,5 @@
/*
-** $Id: lua.h,v 1.174 2003/02/27 11:52:30 roberto Exp roberto $
+** $Id: lua.h,v 1.175 2003/03/18 12:31:39 roberto Exp roberto $
** Lua - An Extensible Extension Language
** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
** http://www.lua.org mailto:info@lua.org
@@ -259,8 +259,6 @@ LUA_API void lua_concat (lua_State *L, int n);
*/
-LUA_API int lua_pushupvalues (lua_State *L);
-
#define lua_getregistry(L) lua_pushvalue(L, LUA_REGISTRYINDEX)
#define lua_setglobal(L,s) \
(lua_pushstring(L, s), lua_insert(L, -2), lua_settable(L, LUA_GLOBALSINDEX))