no more compatibility code

This commit is contained in:
Roberto Ierusalimschy
2003-05-14 18:06:56 -03:00
parent 9eb0f25a29
commit dae99205cf
2 changed files with 2 additions and 21 deletions

19
lapi.c
View File

@@ -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;