diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-30 10:58:57 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-30 10:58:57 -0200 |
commit | 7bcb2462e414dbf4318edf376852fc97d6e45b33 (patch) | |
tree | f8c36e0f611c8696ece0b8ad476409ac05c30fbe /lapi.c | |
parent | 0bd99b327b2b485bd90116b78ddec82352fad046 (diff) | |
download | lua-7bcb2462e414dbf4318edf376852fc97d6e45b33.tar.gz lua-7bcb2462e414dbf4318edf376852fc97d6e45b33.tar.bz2 lua-7bcb2462e414dbf4318edf376852fc97d6e45b33.zip |
comments
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 | ||
1210 | LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) { | 1210 | LUA_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 | ||
1224 | LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) { | 1224 | LUA_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); |