From a93c3caabfa05752e46713a3d06bd36954e5c5ae Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 15 Oct 2013 21:53:45 +0900 Subject: [PATCH] move pic_env to proc.h --- include/picrin.h | 5 ----- include/picrin/proc.h | 5 +++++ src/state.c | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/picrin.h b/include/picrin.h index c45edc10..792c8a04 100644 --- a/include/picrin.h +++ b/include/picrin.h @@ -7,11 +7,6 @@ #include "picconf.h" #include "picrin/value.h" -struct pic_env { - pic_value assoc; - struct pic_env *parent; -}; - typedef struct { pic_value *sp; pic_value *stbase, *stend; diff --git a/include/picrin/proc.h b/include/picrin/proc.h index 629a28c0..8d38d974 100644 --- a/include/picrin/proc.h +++ b/include/picrin/proc.h @@ -1,6 +1,11 @@ #ifndef PROC_H__ #define PROC_H__ +struct pic_env { + pic_value assoc; + struct pic_env *parent; +}; + struct pic_proc { PIC_OBJECT_HEADER bool cfunc_p; diff --git a/src/state.c b/src/state.c index 69f4fa9c..9b8bcd04 100644 --- a/src/state.c +++ b/src/state.c @@ -2,6 +2,7 @@ #include "picrin.h" #include "picrin/gc.h" +#include "picrin/proc.h" static struct pic_env * pic_new_empty_env()