aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-09-22 09:37:52 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-09-22 09:37:52 -0300
commit8b5bb6056ba944bfbb4489492a5698a2285fa81a (patch)
tree8ae691152fc95bc7216ddcbf69171e10adbacb09 /ldo.c
parent4973682294a32b9c4286864179685d11ad4a6819 (diff)
downloadlua-8b5bb6056ba944bfbb4489492a5698a2285fa81a.tar.gz
lua-8b5bb6056ba944bfbb4489492a5698a2285fa81a.tar.bz2
lua-8b5bb6056ba944bfbb4489492a5698a2285fa81a.zip
removal of unused variable
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ldo.c b/ldo.c
index a016f71a..7f0bbedb 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.9 2004/09/08 14:23:09 roberto Exp roberto $ 2** $Id: ldo.c,v 2.10 2004/09/15 20:39:42 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*/
@@ -391,7 +391,6 @@ static int resume_error (lua_State *L, const char *msg) {
391 391
392LUA_API int lua_resume (lua_State *L, int nargs) { 392LUA_API int lua_resume (lua_State *L, int nargs) {
393 int status; 393 int status;
394 lu_byte old_allowhooks;
395 lua_lock(L); 394 lua_lock(L);
396 lua_assert(L->errfunc == 0 && L->nCcalls == 0); 395 lua_assert(L->errfunc == 0 && L->nCcalls == 0);
397 if (L->status != LUA_YIELD) { 396 if (L->status != LUA_YIELD) {
@@ -400,7 +399,6 @@ LUA_API int lua_resume (lua_State *L, int nargs) {
400 else if (L->ci != L->base_ci) 399 else if (L->ci != L->base_ci)
401 return resume_error(L, "cannot resume non-suspended coroutine"); 400 return resume_error(L, "cannot resume non-suspended coroutine");
402 } 401 }
403 old_allowhooks = L->allowhook;
404 status = luaD_rawrunprotected(L, resume, &nargs); 402 status = luaD_rawrunprotected(L, resume, &nargs);
405 if (status != 0) { /* error? */ 403 if (status != 0) { /* error? */
406 L->status = status; /* mark thread as `dead' */ 404 L->status = status; /* mark thread as `dead' */