diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-07 17:53:32 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-07 17:53:32 -0200 |
commit | 071b2ae0e1aba719cb3f909d2b02c79f5873ff36 (patch) | |
tree | 5f3a9bcf60bf4da013ab4a0022dfbac57390917d /lbaselib.c | |
parent | e2498e079e4636217e89f0b28844c4b5df4f8793 (diff) | |
download | lua-071b2ae0e1aba719cb3f909d2b02c79f5873ff36.tar.gz lua-071b2ae0e1aba719cb3f909d2b02c79f5873ff36.tar.bz2 lua-071b2ae0e1aba719cb3f909d2b02c79f5873ff36.zip |
details
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.162 2004/12/07 18:31:34 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.163 2004/12/13 12:15:11 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -469,7 +469,7 @@ static int auxresume (lua_State *L, lua_State *co, int narg) { | |||
469 | int status; | 469 | int status; |
470 | if (!lua_checkstack(co, narg)) | 470 | if (!lua_checkstack(co, narg)) |
471 | luaL_error(L, "too many arguments to resume"); | 471 | luaL_error(L, "too many arguments to resume"); |
472 | if (lua_threadstatus(co) == 0 && lua_gettop(co) == 0) { | 472 | if (lua_status(co) == 0 && lua_gettop(co) == 0) { |
473 | lua_pushliteral(L, "cannot resume dead coroutine"); | 473 | lua_pushliteral(L, "cannot resume dead coroutine"); |
474 | return -1; /* error flag */ | 474 | return -1; /* error flag */ |
475 | } | 475 | } |
@@ -549,7 +549,7 @@ static int luaB_costatus (lua_State *L) { | |||
549 | luaL_argcheck(L, co, 1, "coroutine expected"); | 549 | luaL_argcheck(L, co, 1, "coroutine expected"); |
550 | if (L == co) lua_pushliteral(L, "running"); | 550 | if (L == co) lua_pushliteral(L, "running"); |
551 | else { | 551 | else { |
552 | switch (lua_threadstatus(co)) { | 552 | switch (lua_status(co)) { |
553 | case LUA_YIELD: | 553 | case LUA_YIELD: |
554 | lua_pushliteral(L, "suspended"); | 554 | lua_pushliteral(L, "suspended"); |
555 | break; | 555 | break; |