remove pic_defined_p

This commit is contained in:
Yuichi Nishiwaki 2014-09-16 00:17:04 +09:00
parent 9c4d815864
commit 597e000000
2 changed files with 0 additions and 7 deletions

View File

@ -143,7 +143,6 @@ void pic_close(pic_state *);
void pic_add_feature(pic_state *, const char *); void pic_add_feature(pic_state *, const char *);
bool pic_defined_p(pic_state *, struct pic_lib *, const char *);
void pic_define(pic_state *, const char *, pic_value); /* automatic export */ void pic_define(pic_state *, const char *, pic_value); /* automatic export */
void pic_defun(pic_state *, const char *, pic_func_t); void pic_defun(pic_state *, const char *, pic_func_t);
void pic_defvar(pic_state *, const char *, pic_value, struct pic_proc *); void pic_defvar(pic_state *, const char *, pic_value, struct pic_proc *);

6
vm.c
View File

@ -424,12 +424,6 @@ pic_define(pic_state *pic, const char *name, pic_value val)
pic_export(pic, sym); pic_export(pic, sym);
} }
bool
pic_defined_p(pic_state *pic, struct pic_lib *lib, const char *name)
{
return pic_find_rename(pic, lib->env, pic_intern_cstr(pic, name), NULL);
}
pic_value pic_value
pic_ref(pic_state *pic, struct pic_lib *lib, const char *name) pic_ref(pic_state *pic, struct pic_lib *lib, const char *name)
{ {