lua

A copy of the Lua development repository
Log | Files | Refs | README

commit dcabf721f85fae54954b7b3d18926ace21958964
parent 5eeff89f32df831c94cb3ee4ba79abf6f702110f
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 28 Feb 2005 14:24:19 -0300

"coroutine.current" -> "running" (compatible with "running" status)

Diffstat:
Mlbaselib.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lbaselib.c b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.167 2005/02/18 12:40:02 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.168 2005/02/23 17:30:22 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -576,7 +576,7 @@ static int luaB_costatus (lua_State *L) { } -static int luaB_cocurrent (lua_State *L) { +static int luaB_corunning (lua_State *L) { if (lua_pushthread(L)) return 0; /* main thread is not a coroutine */ else @@ -590,7 +590,7 @@ static const luaL_reg co_funcs[] = { {"resume", luaB_coresume}, {"yield", luaB_yield}, {"status", luaB_costatus}, - {"current", luaB_cocurrent}, + {"running", luaB_corunning}, {NULL, NULL} };