From 951af56540ce995cf8526bf1671c5964ba06116b Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 24 Sep 2014 14:53:09 +0900 Subject: [PATCH] publish struct pic_escape --- cont.c | 17 ----------------- include/picrin/cont.h | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) 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 *);