… | |
… | |
14 | |
14 | |
15 | /* perl-related */ |
15 | /* perl-related */ |
16 | #define TRANSFER_SAVE_DEFAV 0x00000001 /* @_ */ |
16 | #define TRANSFER_SAVE_DEFAV 0x00000001 /* @_ */ |
17 | #define TRANSFER_SAVE_DEFSV 0x00000002 /* $_ */ |
17 | #define TRANSFER_SAVE_DEFSV 0x00000002 /* $_ */ |
18 | #define TRANSFER_SAVE_ERRSV 0x00000004 /* $@ */ |
18 | #define TRANSFER_SAVE_ERRSV 0x00000004 /* $@ */ |
19 | /* c-related */ |
|
|
20 | #define TRANSFER_SAVE_CCTXT 0x00000100 |
|
|
21 | #ifdef CORO_LAZY_STACK |
|
|
22 | # define TRANSFER_LAZY_STACK 0x00000200 |
|
|
23 | #else |
|
|
24 | # define TRANSFER_LAZY_STACK 0x00000000 |
|
|
25 | #endif |
|
|
26 | |
19 | |
27 | #define TRANSFER_SAVE_ALL (TRANSFER_SAVE_DEFAV|TRANSFER_SAVE_DEFSV \ |
20 | #define TRANSFER_SAVE_ALL ( TRANSFER_SAVE_DEFAV \ |
|
|
21 | | TRANSFER_SAVE_DEFSV \ |
28 | |TRANSFER_SAVE_ERRSV|TRANSFER_SAVE_CCTXT) |
22 | | TRANSFER_SAVE_ERRSV ) |
29 | |
23 | |
30 | struct coro; /* opaque */ |
24 | struct coro; /* opaque */ |
31 | |
25 | |
32 | struct CoroAPI { |
26 | struct CoroAPI { |
33 | I32 ver; |
27 | I32 ver; |