refactor var. c api no longer supports converters.

This commit is contained in:
Yuichi Nishiwaki
2014-07-13 11:07:42 +09:00
parent c3106a9608
commit 7ffcbb7a7d
4 changed files with 75 additions and 112 deletions
+3 -4
View File
@@ -12,16 +12,15 @@ extern "C" {
struct pic_var {
PIC_OBJECT_HEADER
pic_value value;
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_proc *);
struct pic_var *pic_var_new(pic_state *, pic_value);
struct pic_proc *pic_wrap_var(pic_state *, struct pic_var *);
struct pic_var *pic_unwrap_var(pic_state *, struct pic_proc *);
pic_value pic_var_ref(pic_state *, const char *);
void pic_var_set(pic_state *, const char *, pic_value);
#if defined(__cplusplus)
}