aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-30 10:58:57 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-30 10:58:57 -0200
commit7bcb2462e414dbf4318edf376852fc97d6e45b33 (patch)
treef8c36e0f611c8696ece0b8ad476409ac05c30fbe /lapi.c
parent0bd99b327b2b485bd90116b78ddec82352fad046 (diff)
downloadlua-7bcb2462e414dbf4318edf376852fc97d6e45b33.tar.gz
lua-7bcb2462e414dbf4318edf376852fc97d6e45b33.tar.bz2
lua-7bcb2462e414dbf4318edf376852fc97d6e45b33.zip
comments
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lapi.c b/lapi.c
index acc991c3..924a9124 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.157 2011/11/16 18:51:36 roberto Exp roberto $ 2** $Id: lapi.c,v 2.158 2011/11/29 15:55: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*/
@@ -1209,7 +1209,7 @@ static const char *aux_upvalue (StkId fi, int n, TValue **val,
1209 1209
1210LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) { 1210LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
1211 const char *name; 1211 const char *name;
1212 TValue *val = NULL; /* initialized to avoid warnings */ 1212 TValue *val = NULL; /* to avoid warnings */
1213 lua_lock(L); 1213 lua_lock(L);
1214 name = aux_upvalue(index2addr(L, funcindex), n, &val, NULL); 1214 name = aux_upvalue(index2addr(L, funcindex), n, &val, NULL);
1215 if (name) { 1215 if (name) {
@@ -1223,8 +1223,8 @@ LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
1223 1223
1224LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) { 1224LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) {
1225 const char *name; 1225 const char *name;
1226 TValue *val = NULL; /* initialized to avoid warnings */ 1226 TValue *val = NULL; /* to avoid warnings */
1227 GCObject *owner = NULL; /* initialized to avoid warnings */ 1227 GCObject *owner = NULL; /* to avoid warnings */
1228 StkId fi; 1228 StkId fi;
1229 lua_lock(L); 1229 lua_lock(L);
1230 fi = index2addr(L, funcindex); 1230 fi = index2addr(L, funcindex);