diff --git a/cont.c b/cont.c index 8ee36b33..496503cc 100644 --- a/cont.c +++ b/cont.c @@ -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) { diff --git a/include/picrin/cont.h b/include/picrin/cont.h index c0868f79..f49d6595 100644 --- a/include/picrin/cont.h +++ b/include/picrin/cont.h @@ -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 *);