… | |
… | |
7 | |
7 | |
8 | /* perl-related */ |
8 | /* perl-related */ |
9 | #define TRANSFER_SAVE_DEFAV 0x00000001 /* @_ */ |
9 | #define TRANSFER_SAVE_DEFAV 0x00000001 /* @_ */ |
10 | #define TRANSFER_SAVE_DEFSV 0x00000002 /* $_ */ |
10 | #define TRANSFER_SAVE_DEFSV 0x00000002 /* $_ */ |
11 | #define TRANSFER_SAVE_ERRSV 0x00000004 /* $@ */ |
11 | #define TRANSFER_SAVE_ERRSV 0x00000004 /* $@ */ |
12 | #define TRANSFER_SAVE_CURPM 0x00000008 /* regex results */ |
|
|
13 | /* c-related */ |
12 | /* c-related */ |
14 | #define TRANSFER_SAVE_CCTXT 0x00000100 |
13 | #define TRANSFER_SAVE_CCTXT 0x00000100 |
15 | #ifdef CORO_LAZY_STACK |
14 | #ifdef CORO_LAZY_STACK |
16 | # define TRANSFER_LAZY_STACK 0x00000200 |
15 | # define TRANSFER_LAZY_STACK 0x00000200 |
17 | #else |
16 | #else |
18 | # define TRANSFER_LAZY_STACK 0x00000000 |
17 | # define TRANSFER_LAZY_STACK 0x00000000 |
19 | #endif |
18 | #endif |
20 | |
19 | |
21 | #define TRANSFER_SAVE_ALL (TRANSFER_SAVE_DEFAV|TRANSFER_SAVE_DEFSV \ |
20 | #define TRANSFER_SAVE_ALL (TRANSFER_SAVE_DEFAV|TRANSFER_SAVE_DEFSV \ |
22 | |TRANSFER_SAVE_ERRSV|TRANSFER_SAVE_CURPM \ |
21 | |TRANSFER_SAVE_ERRSV|TRANSFER_SAVE_CCTXT) |
23 | |TRANSFER_SAVE_CCTXT) |
|
|
24 | |
22 | |
25 | struct coro; /* opaque */ |
23 | struct coro; /* opaque */ |
26 | |
24 | |
27 | struct CoroAPI { |
25 | struct CoroAPI { |
28 | I32 ver; |
26 | I32 ver; |