native support for dynamic-wind

This commit is contained in:
Yuichi Nishiwaki
2013-11-11 18:04:21 +09:00
parent 47ae37f3ba
commit d6c377a33b
5 changed files with 83 additions and 36 deletions
+8
View File
@@ -18,10 +18,18 @@ typedef struct {
struct pic_env *env;
} pic_callinfo;
struct pic_block {
struct pic_block *prev;
int depth;
struct pic_proc *in, *out;
};
typedef struct {
int argc;
char **argv, **envp;
struct pic_block *blk;
pic_value *sp;
pic_value *stbase, *stend;
+2
View File
@@ -5,6 +5,8 @@ struct pic_cont {
PIC_OBJECT_HEADER
jmp_buf jmp;
struct pic_block *blk;
size_t stk_len;
pic_value *stk_pos, *stk_ptr;