… | |
… | |
30 | * go to Ralf S. Engelschall <rse@engelschall.com>. |
30 | * go to Ralf S. Engelschall <rse@engelschall.com>. |
31 | */ |
31 | */ |
32 | |
32 | |
33 | #include "coro.h" |
33 | #include "coro.h" |
34 | |
34 | |
35 | #if CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX |
|
|
36 | |
|
|
37 | /* IRIX is decidedly NON-unix */ |
35 | /* IRIX is decidedly NON-unix */ |
38 | #if __sgi |
36 | #if __sgi |
39 | # define STACK_ADJUST(sp,ss) ((ss) - 8 + (char *)(sp)) |
37 | # define STACK_ADJUST(sp,ss) ((char *)(sp) + (ss) - 8) |
40 | #else |
38 | #else |
41 | # define STACK_ADJUST(sp,ss) (ss) |
39 | # define STACK_ADJUST(sp,ss) (sp) |
42 | #endif |
40 | #endif |
|
|
41 | |
|
|
42 | #if CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX |
43 | |
43 | |
44 | #include <signal.h> |
44 | #include <signal.h> |
45 | |
45 | |
46 | static volatile coro_func coro_init_func; |
46 | static volatile coro_func coro_init_func; |
47 | static volatile void *coro_init_arg; |
47 | static volatile void *coro_init_arg; |