--- Coro/Coro/CoroAPI.h 2001/08/25 15:14:03 1.1 +++ Coro/Coro/CoroAPI.h 2001/11/25 20:04:05 1.2 @@ -33,7 +33,8 @@ void (*transfer)(pTHX_ SV *prev, SV *next, int flags); /* public, coro */ - void (*schedule)(int cede); + void (*schedule)(void); + void (*cede)(void); void (*ready)(SV *sv); int *nready; GV *current; @@ -42,11 +43,11 @@ static struct CoroAPI *GCoroAPI; #define CORO_TRANSFER(prev,next) GCoroAPI->transfer(aTHX_ (prev),(next)) -#define CORO_SCHEDULE GCoroAPI->schedule(0) -#define CORO_CEDE GCoroAPI->schedule(1) +#define CORO_SCHEDULE GCoroAPI->schedule() +#define CORO_CEDE GCoroAPI->cede() #define CORO_READY(coro) GCoroAPI->ready(coro) #define CORO_NREADY (*GCoroAPI->nready) -#define CORO_CURRENT GvSV(GCoroAPI->current) +#define CORO_CURRENT SvRV(GvSV(GCoroAPI->current)) #define I_CORO_API(YourName) \ STMT_START { \