diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-02-28 14:24:41 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-02-28 14:24:41 -0300 |
commit | dcabf721f85fae54954b7b3d18926ace21958964 (patch) | |
tree | f177355ce631a0531aad8736aaf08a8e34e5a1e3 /lbaselib.c | |
parent | 5eeff89f32df831c94cb3ee4ba79abf6f702110f (diff) | |
download | lua-dcabf721f85fae54954b7b3d18926ace21958964.tar.gz lua-dcabf721f85fae54954b7b3d18926ace21958964.tar.bz2 lua-dcabf721f85fae54954b7b3d18926ace21958964.zip |
"coroutine.current" -> "running" (compatible with "running" status)
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.167 2005/02/18 12:40:02 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.168 2005/02/23 17:30:22 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 | */ |
@@ -576,7 +576,7 @@ static int luaB_costatus (lua_State *L) { | |||
576 | } | 576 | } |
577 | 577 | ||
578 | 578 | ||
579 | static int luaB_cocurrent (lua_State *L) { | 579 | static int luaB_corunning (lua_State *L) { |
580 | if (lua_pushthread(L)) | 580 | if (lua_pushthread(L)) |
581 | return 0; /* main thread is not a coroutine */ | 581 | return 0; /* main thread is not a coroutine */ |
582 | else | 582 | else |
@@ -590,7 +590,7 @@ static const luaL_reg co_funcs[] = { | |||
590 | {"resume", luaB_coresume}, | 590 | {"resume", luaB_coresume}, |
591 | {"yield", luaB_yield}, | 591 | {"yield", luaB_yield}, |
592 | {"status", luaB_costatus}, | 592 | {"status", luaB_costatus}, |
593 | {"current", luaB_cocurrent}, | 593 | {"running", luaB_corunning}, |
594 | {NULL, NULL} | 594 | {NULL, NULL} |
595 | }; | 595 | }; |
596 | 596 | ||