diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.100 2002/02/05 22:39:12 roberto Exp $ | 2 | ** $Id: ldebug.c,v 1.101 2002/03/08 19:10:32 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -59,7 +59,7 @@ LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar) { | |||
59 | lua_lock(L); | 59 | lua_lock(L); |
60 | if (L->ci - L->base_ci <= level) status = 0; /* there is no such level */ | 60 | if (L->ci - L->base_ci <= level) status = 0; /* there is no such level */ |
61 | else { | 61 | else { |
62 | ar->_ci = (L->ci - L->base_ci) - level; | 62 | ar->i_ci = (L->ci - L->base_ci) - level; |
63 | status = 1; | 63 | status = 1; |
64 | } | 64 | } |
65 | lua_unlock(L); | 65 | lua_unlock(L); |
@@ -129,7 +129,7 @@ LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) { | |||
129 | Proto *fp; | 129 | Proto *fp; |
130 | lua_lock(L); | 130 | lua_lock(L); |
131 | name = NULL; | 131 | name = NULL; |
132 | ci = L->base_ci + ar->_ci; | 132 | ci = L->base_ci + ar->i_ci; |
133 | fp = getluaproto(ci); | 133 | fp = getluaproto(ci); |
134 | if (fp) { /* is a Lua function? */ | 134 | if (fp) { /* is a Lua function? */ |
135 | name = luaF_getlocalname(fp, n, currentpc(L, ci)); | 135 | name = luaF_getlocalname(fp, n, currentpc(L, ci)); |
@@ -147,7 +147,7 @@ LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) { | |||
147 | Proto *fp; | 147 | Proto *fp; |
148 | lua_lock(L); | 148 | lua_lock(L); |
149 | name = NULL; | 149 | name = NULL; |
150 | ci = L->base_ci + ar->_ci; | 150 | ci = L->base_ci + ar->i_ci; |
151 | fp = getluaproto(ci); | 151 | fp = getluaproto(ci); |
152 | L->top--; /* pop new value */ | 152 | L->top--; /* pop new value */ |
153 | if (fp) { /* is a Lua function? */ | 153 | if (fp) { /* is a Lua function? */ |
@@ -216,7 +216,7 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { | |||
216 | int status = 1; | 216 | int status = 1; |
217 | lua_lock(L); | 217 | lua_lock(L); |
218 | if (*what != '>') { /* function is active? */ | 218 | if (*what != '>') { /* function is active? */ |
219 | ci = L->base_ci + ar->_ci; | 219 | ci = L->base_ci + ar->i_ci; |
220 | f = ci->base - 1; | 220 | f = ci->base - 1; |
221 | } | 221 | } |
222 | else { | 222 | else { |