add pic->feature

This commit is contained in:
Yuichi Nishiwaki
2014-09-10 01:41:10 +09:00
parent a0687e29e0
commit d0abe2d193
4 changed files with 19 additions and 1 deletions
+4 -1
View File
@@ -87,6 +87,8 @@ typedef struct {
struct pic_lib *PICRIN_BASE;
struct pic_lib *PICRIN_USER;
pic_value features;
xhash syms; /* name to symbol */
xhash sym_names; /* symbol to name */
int sym_cnt;
@@ -137,10 +139,11 @@ void pic_gc_arena_restore(pic_state *, size_t);
pic_state *pic_open(int argc, char *argv[], char **envp);
void pic_close(pic_state *);
void pic_add_feature(pic_state *, const char *);
void pic_define(pic_state *, const char *, pic_value); /* automatic export */
pic_value pic_ref(pic_state *, struct pic_lib *, const char *);
void pic_set(pic_state *, struct pic_lib *, const char *, pic_value);
pic_value pic_funcall(pic_state *pic, const char *name, pic_list args);
struct pic_proc *pic_get_proc(pic_state *);