bugfix: move env related macros from port.h to proc.h

This commit is contained in:
Yuichi Nishiwaki 2013-10-29 16:47:29 +09:00
parent 073f45666a
commit 759c9eb55c
2 changed files with 2 additions and 3 deletions

View File

@ -23,9 +23,6 @@ struct pic_port {
};
#define pic_port_p(v) (pic_type(v) == PIC_TT_PORT)
#define pic_env_p(v) (pic_type(v) == PIC_TT_ENV)
#define pic_port_ptr(v) ((struct pic_port *)(v).u.data)
#define pic_env_ptr(v) ((struct pic_env *)(v).u.data)
#endif

View File

@ -19,8 +19,10 @@ struct pic_proc {
};
#define pic_proc_p(o) (pic_type(o) == PIC_TT_PROC)
#define pic_env_p(o) (pic_type(o) == PIC_TT_ENV)
#define pic_proc_ptr(o) ((struct pic_proc *)(o).u.data)
#define pic_env_ptr(o) ((struct pic_env *)(o).u.data)
#define pic_proc_cfunc_p(o) (pic_proc_ptr(o)->cfunc_p)