C APIs to modify global varaibles

This commit is contained in:
Yuichi Nishiwaki 2014-01-12 16:06:57 +09:00
parent 133e4c00bd
commit fadcad2d7f
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ void pic_gc_arena_restore(pic_state *, int);
pic_state *pic_open(int argc, char *argv[], char **envp);
void pic_close(pic_state *);
void pic_define(pic_state *, struct pic_lib *, const char *, pic_value); /* symbol is automatically exported */
pic_value pic_ref(pic_state *, struct pic_lib *, const char *);
pic_value pic_set(pic_state *, struct pic_lib *, const char *, pic_value);
struct pic_proc *pic_get_proc(pic_state *);
int pic_get_args(pic_state *, const char *, ...);
void pic_defun(pic_state *, const char *, pic_func_t);