aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lapi.c b/lapi.c
index bb436ebd..7a1a72d3 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.7 2004/04/30 20:13:38 roberto Exp roberto $ 2** $Id: lapi.c,v 2.8 2004/05/11 16:52:08 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -488,7 +488,7 @@ LUA_API void lua_gettable (lua_State *L, int idx) {
488 lua_lock(L); 488 lua_lock(L);
489 t = luaA_index(L, idx); 489 t = luaA_index(L, idx);
490 api_checkvalidindex(L, t); 490 api_checkvalidindex(L, t);
491 luaV_gettable(L, t, L->top - 1, L->top - 1); 491 luaV_gettable(L, t, L->top - 1, L->top - 1, NULL);
492 lua_unlock(L); 492 lua_unlock(L);
493} 493}
494 494
@@ -500,7 +500,7 @@ LUA_API void lua_getfield (lua_State *L, int idx, const char *k) {
500 t = luaA_index(L, idx); 500 t = luaA_index(L, idx);
501 api_checkvalidindex(L, t); 501 api_checkvalidindex(L, t);
502 setsvalue(L, &key, luaS_new(L, k)); 502 setsvalue(L, &key, luaS_new(L, k));
503 luaV_gettable(L, t, &key, L->top); 503 luaV_gettable(L, t, &key, L->top, NULL);
504 api_incr_top(L); 504 api_incr_top(L);
505 lua_unlock(L); 505 lua_unlock(L);
506} 506}
@@ -584,7 +584,7 @@ LUA_API void lua_settable (lua_State *L, int idx) {
584 api_checknelems(L, 2); 584 api_checknelems(L, 2);
585 t = luaA_index(L, idx); 585 t = luaA_index(L, idx);
586 api_checkvalidindex(L, t); 586 api_checkvalidindex(L, t);
587 luaV_settable(L, t, L->top - 2, L->top - 1); 587 luaV_settable(L, t, L->top - 2, L->top - 1, NULL);
588 L->top -= 2; /* pop index and value */ 588 L->top -= 2; /* pop index and value */
589 lua_unlock(L); 589 lua_unlock(L);
590} 590}
@@ -598,7 +598,7 @@ LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
598 t = luaA_index(L, idx); 598 t = luaA_index(L, idx);
599 api_checkvalidindex(L, t); 599 api_checkvalidindex(L, t);
600 setsvalue(L, &key, luaS_new(L, k)); 600 setsvalue(L, &key, luaS_new(L, k));
601 luaV_settable(L, t, &key, L->top - 1); 601 luaV_settable(L, t, &key, L->top - 1, NULL);
602 L->top--; /* pop value */ 602 L->top--; /* pop value */
603 lua_unlock(L); 603 lua_unlock(L);
604} 604}