From dcabf721f85fae54954b7b3d18926ace21958964 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 28 Feb 2005 14:24:41 -0300 Subject: "coroutine.current" -> "running" (compatible with "running" status) --- lbaselib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index 908bd71e..3936c5c7 100644 --- 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} }; -- cgit v1.2.3-55-g6feb