pic_list_p don't need to take pic_state *.
This commit is contained in:
parent
27d4853aef
commit
8598042deb
|
@ -22,7 +22,7 @@ pic_value pic_cons(pic_state *, pic_value, pic_value);
|
|||
pic_value pic_car(pic_state *, pic_value);
|
||||
pic_value pic_cdr(pic_state *, pic_value);
|
||||
|
||||
bool pic_list_p(pic_state *, pic_value);
|
||||
bool pic_list_p(pic_value);
|
||||
pic_value pic_list1(pic_state *, pic_value);
|
||||
pic_value pic_list2(pic_state *, pic_value, pic_value);
|
||||
pic_value pic_list3(pic_state *, pic_value, pic_value, pic_value);
|
||||
|
|
|
@ -303,7 +303,7 @@ analyze_node(analyze_state *state, pic_value obj, bool tailpos)
|
|||
case PIC_TT_PAIR: {
|
||||
pic_value proc;
|
||||
|
||||
if (! pic_list_p(pic, obj)) {
|
||||
if (! pic_list_p(obj)) {
|
||||
pic_errorf(pic, "invalid expression given: ~s", obj);
|
||||
}
|
||||
|
||||
|
|
|
@ -46,13 +46,11 @@ pic_cdr(pic_state *pic, pic_value obj)
|
|||
}
|
||||
|
||||
bool
|
||||
pic_list_p(pic_state *pic, pic_value obj)
|
||||
pic_list_p(pic_value obj)
|
||||
{
|
||||
pic_value local, rapid;
|
||||
int i;
|
||||
|
||||
UNUSED(pic);
|
||||
|
||||
/* Floyd's cycle-finding algorithm. */
|
||||
|
||||
local = rapid = obj;
|
||||
|
@ -443,7 +441,7 @@ pic_pair_list_p(pic_state *pic)
|
|||
|
||||
pic_get_args(pic, "o", &v);
|
||||
|
||||
return pic_bool_value(pic_list_p(pic, v));
|
||||
return pic_bool_value(pic_list_p(v));
|
||||
}
|
||||
|
||||
static pic_value
|
||||
|
|
Loading…
Reference in New Issue