diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.161 2002/03/07 18:14:29 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.162 2002/03/08 19:11:03 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -124,7 +124,7 @@ void luaD_lineHook (lua_State *L, int line, lua_Hook linehook) { | |||
124 | if (L->allowhooks) { | 124 | if (L->allowhooks) { |
125 | lua_Debug ar; | 125 | lua_Debug ar; |
126 | ar.event = "line"; | 126 | ar.event = "line"; |
127 | ar._ci = L->ci - L->base_ci; | 127 | ar.i_ci = L->ci - L->base_ci; |
128 | ar.currentline = line; | 128 | ar.currentline = line; |
129 | dohook(L, &ar, linehook); | 129 | dohook(L, &ar, linehook); |
130 | } | 130 | } |
@@ -135,7 +135,7 @@ static void luaD_callHook (lua_State *L, lua_Hook callhook, const char *event) { | |||
135 | if (L->allowhooks) { | 135 | if (L->allowhooks) { |
136 | lua_Debug ar; | 136 | lua_Debug ar; |
137 | ar.event = event; | 137 | ar.event = event; |
138 | ar._ci = L->ci - L->base_ci; | 138 | ar.i_ci = L->ci - L->base_ci; |
139 | L->ci->pc = NULL; /* function is not active */ | 139 | L->ci->pc = NULL; /* function is not active */ |
140 | dohook(L, &ar, callhook); | 140 | dohook(L, &ar, callhook); |
141 | } | 141 | } |