misc/liblua/lbaselib.c
changeset 10017 de822cd3df3a
parent 2812 0a24853de796
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
   477 ** {======================================================
   477 ** {======================================================
   478 ** Coroutine library
   478 ** Coroutine library
   479 ** =======================================================
   479 ** =======================================================
   480 */
   480 */
   481 
   481 
   482 #define CO_RUN	0	/* running */
   482 #define CO_RUN  0   /* running */
   483 #define CO_SUS	1	/* suspended */
   483 #define CO_SUS  1   /* suspended */
   484 #define CO_NOR	2	/* 'normal' (it resumed another coroutine) */
   484 #define CO_NOR  2   /* 'normal' (it resumed another coroutine) */
   485 #define CO_DEAD	3
   485 #define CO_DEAD 3
   486 
   486 
   487 static const char *const statnames[] =
   487 static const char *const statnames[] =
   488     {"running", "suspended", "normal", "dead"};
   488     {"running", "suspended", "normal", "dead"};
   489 
   489 
   490 static int costatus (lua_State *L, lua_State *co) {
   490 static int costatus (lua_State *L, lua_State *co) {