aboutsummaryrefslogtreecommitdiff
path: root/lcorolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-03 13:11:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-03 13:11:20 -0300
commit514d94274853e6f0dfd6bb2ffa2e1fc64db926dd (patch)
treee024ebca966e8a84a7997c3908b74bb941dcbd50 /lcorolib.c
parent4a3fd8488d617aa633f6b8be85e662653b100a59 (diff)
downloadlua-514d94274853e6f0dfd6bb2ffa2e1fc64db926dd.tar.gz
lua-514d94274853e6f0dfd6bb2ffa2e1fc64db926dd.tar.bz2
lua-514d94274853e6f0dfd6bb2ffa2e1fc64db926dd.zip
'coroutine.kill' renamed 'coroutine.close'
Diffstat (limited to 'lcorolib.c')
-rw-r--r--lcorolib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcorolib.c b/lcorolib.c
index 3fc9fb1c..156839e6 100644
--- a/lcorolib.c
+++ b/lcorolib.c
@@ -165,7 +165,7 @@ static int luaB_corunning (lua_State *L) {
165} 165}
166 166
167 167
168static int luaB_kill (lua_State *L) { 168static int luaB_close (lua_State *L) {
169 lua_State *co = getco(L); 169 lua_State *co = getco(L);
170 int status = auxstatus(L, co); 170 int status = auxstatus(L, co);
171 switch (status) { 171 switch (status) {
@@ -182,7 +182,7 @@ static int luaB_kill (lua_State *L) {
182 } 182 }
183 } 183 }
184 default: /* normal or running coroutine */ 184 default: /* normal or running coroutine */
185 return luaL_error(L, "cannot kill a %s coroutine", statname[status]); 185 return luaL_error(L, "cannot close a %s coroutine", statname[status]);
186 } 186 }
187} 187}
188 188
@@ -195,7 +195,7 @@ static const luaL_Reg co_funcs[] = {
195 {"wrap", luaB_cowrap}, 195 {"wrap", luaB_cowrap},
196 {"yield", luaB_yield}, 196 {"yield", luaB_yield},
197 {"isyieldable", luaB_yieldable}, 197 {"isyieldable", luaB_yieldable},
198 {"kill", luaB_kill}, 198 {"close", luaB_close},
199 {NULL, NULL} 199 {NULL, NULL}
200}; 200};
201 201