diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-03 13:11:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-03 13:11:20 -0300 |
commit | 514d94274853e6f0dfd6bb2ffa2e1fc64db926dd (patch) | |
tree | e024ebca966e8a84a7997c3908b74bb941dcbd50 /lcorolib.c | |
parent | 4a3fd8488d617aa633f6b8be85e662653b100a59 (diff) | |
download | lua-514d94274853e6f0dfd6bb2ffa2e1fc64db926dd.tar.gz lua-514d94274853e6f0dfd6bb2ffa2e1fc64db926dd.tar.bz2 lua-514d94274853e6f0dfd6bb2ffa2e1fc64db926dd.zip |
'coroutine.kill' renamed 'coroutine.close'
Diffstat (limited to 'lcorolib.c')
-rw-r--r-- | lcorolib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -165,7 +165,7 @@ static int luaB_corunning (lua_State *L) { | |||
165 | } | 165 | } |
166 | 166 | ||
167 | 167 | ||
168 | static int luaB_kill (lua_State *L) { | 168 | static 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 | ||