publish struct pic_escape
This commit is contained in:
parent
669f9b28de
commit
951af56540
17
cont.c
17
cont.c
|
@ -57,23 +57,6 @@ pic_dynamic_wind(pic_state *pic, struct pic_proc *in, struct pic_proc *thunk, st
|
||||||
return val;
|
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
|
static int
|
||||||
save_point(pic_state *pic, struct pic_escape *escape)
|
save_point(pic_state *pic, struct pic_escape *escape)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,6 +9,23 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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 *);
|
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 *);
|
pic_value pic_dynamic_wind(pic_state *, struct pic_proc *, struct pic_proc *, struct pic_proc *);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue