macroexpand_list supports improper list
This commit is contained in:
parent
43d449d2aa
commit
2dee30a0b5
|
@ -242,8 +242,8 @@ macroexpand_list(pic_state *pic, pic_value list, struct pic_senv *senv)
|
||||||
{
|
{
|
||||||
pic_value v;
|
pic_value v;
|
||||||
|
|
||||||
if (pic_nil_p(list))
|
if (! pic_pair_p(list))
|
||||||
return list;
|
return macroexpand(pic, list, senv);
|
||||||
|
|
||||||
v = macroexpand(pic, pic_car(pic, list), senv);
|
v = macroexpand(pic, pic_car(pic, list), senv);
|
||||||
return pic_cons(pic, v, macroexpand_list(pic, pic_cdr(pic, list), senv));
|
return pic_cons(pic, v, macroexpand_list(pic, pic_cdr(pic, list), senv));
|
||||||
|
|
Loading…
Reference in New Issue