remove undefined? procedure
This commit is contained in:
parent
3739387160
commit
18965f9ce7
|
@ -18,7 +18,6 @@ pic_add_feature(pic_state *pic, const char *feature)
|
|||
pic_push(pic, pic_obj_value(pic_intern(pic, feature)), pic->features);
|
||||
}
|
||||
|
||||
void pic_init_undef(pic_state *);
|
||||
void pic_init_bool(pic_state *);
|
||||
void pic_init_pair(pic_state *);
|
||||
void pic_init_port(pic_state *);
|
||||
|
@ -162,7 +161,6 @@ pic_init_core(pic_state *pic)
|
|||
VM(pic->uGT, ">");
|
||||
VM(pic->uGE, ">=");
|
||||
|
||||
pic_init_undef(pic); DONE;
|
||||
pic_init_bool(pic); DONE;
|
||||
pic_init_pair(pic); DONE;
|
||||
pic_init_port(pic); DONE;
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
/**
|
||||
* See Copyright Notice in picrin.h
|
||||
*/
|
||||
|
||||
#include "picrin.h"
|
||||
|
||||
static pic_value
|
||||
pic_undef_undefined_p(pic_state *pic)
|
||||
{
|
||||
pic_value v;
|
||||
|
||||
pic_get_args(pic, "o", &v);
|
||||
|
||||
return pic_undef_p(v) ? pic_true_value() : pic_false_value();
|
||||
}
|
||||
|
||||
void
|
||||
pic_init_undef(pic_state *pic)
|
||||
{
|
||||
pic_defun(pic, "undefined?", pic_undef_undefined_p);
|
||||
}
|
Loading…
Reference in New Issue