publish struct pic_escape

This commit is contained in:
Yuichi Nishiwaki 2014-09-24 14:53:09 +09:00
parent 669f9b28de
commit 951af56540
2 changed files with 17 additions and 17 deletions

17
cont.c
View File

@ -57,23 +57,6 @@ pic_dynamic_wind(pic_state *pic, struct pic_proc *in, struct pic_proc *thunk, st
return val;
}
struct pic_escape {
jmp_buf jmp;
bool valid;
struct pic_winder *wind;
ptrdiff_t sp_offset;
ptrdiff_t ci_offset;
ptrdiff_t xp_offset;
int arena_idx;
pic_code *ip;
pic_value results;
};
static int
save_point(pic_state *pic, struct pic_escape *escape)
{

View File

@ -9,6 +9,23 @@
extern "C" {
#endif
struct pic_escape {
jmp_buf jmp;
bool valid;
struct pic_winder *wind;
ptrdiff_t sp_offset;
ptrdiff_t ci_offset;
ptrdiff_t xp_offset;
int arena_idx;
pic_code *ip;
pic_value results;
};
void pic_wind(pic_state *, struct pic_winder *, struct pic_winder *);
pic_value pic_dynamic_wind(pic_state *, struct pic_proc *, struct pic_proc *, struct pic_proc *);