… | |
… | |
46 | # endif |
46 | # endif |
47 | #endif |
47 | #endif |
48 | |
48 | |
49 | #if CORO_SJLJ || CORO_LOSER || CORO_LINUX || CORO_IRIX |
49 | #if CORO_SJLJ || CORO_LOSER || CORO_LINUX || CORO_IRIX |
50 | |
50 | |
|
|
51 | #include <stdlib.h> |
|
|
52 | |
51 | #if CORO_SJLJ |
53 | #if CORO_SJLJ |
52 | # include <stdio.h> |
54 | # include <stdio.h> |
53 | # include <signal.h> |
55 | # include <signal.h> |
|
|
56 | # include <unistd.h> |
54 | #endif |
57 | #endif |
55 | |
58 | |
56 | static volatile coro_func coro_init_func; |
59 | static volatile coro_func coro_init_func; |
57 | static volatile void *coro_init_arg; |
60 | static volatile void *coro_init_arg; |
58 | static volatile coro_context *new_coro, *create_coro; |
61 | static volatile coro_context *new_coro, *create_coro; |