don't rename unbound symbols
This commit is contained in:
parent
f776907550
commit
f8b3f5f1fd
|
@ -167,7 +167,6 @@ static pic_sym
|
||||||
symbol_rename(pic_state *pic, pic_sym sym, struct pic_senv *senv)
|
symbol_rename(pic_state *pic, pic_sym sym, struct pic_senv *senv)
|
||||||
{
|
{
|
||||||
xh_entry *e;
|
xh_entry *e;
|
||||||
pic_sym uniq;
|
|
||||||
|
|
||||||
if (! pic_interned_p(pic, sym)) {
|
if (! pic_interned_p(pic, sym)) {
|
||||||
return sym;
|
return sym;
|
||||||
|
@ -180,9 +179,7 @@ symbol_rename(pic_state *pic, pic_sym sym, struct pic_senv *senv)
|
||||||
break;
|
break;
|
||||||
senv = senv->up;
|
senv = senv->up;
|
||||||
}
|
}
|
||||||
uniq = pic_gensym(pic, sym);
|
return sym;
|
||||||
xh_put_int(senv->name, sym, uniq);
|
|
||||||
return uniq;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static pic_value
|
static pic_value
|
||||||
|
|
Loading…
Reference in New Issue