manage converter in var

This commit is contained in:
Yuichi Nishiwaki
2014-07-23 09:11:31 +09:00
parent e3887691d2
commit 424216ca23
3 changed files with 16 additions and 4 deletions
+2 -1
View File
@@ -12,12 +12,13 @@ extern "C" {
struct pic_var {
PIC_OBJECT_HEADER
pic_value stack;
struct pic_proc *conv;
};
#define pic_var_p(o) (pic_type(o) == PIC_TT_VAR)
#define pic_var_ptr(o) ((struct pic_var *)pic_ptr(o))
struct pic_var *pic_var_new(pic_state *, pic_value);
struct pic_var *pic_var_new(pic_state *, pic_value, struct pic_proc * /* = NULL */);
pic_value pic_var_ref(pic_state *, struct pic_var *);
void pic_var_set(pic_state *, struct pic_var *, pic_value);