summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-02-04 15:32:51 -0800
committerKaz Kylheku <kaz@kylheku.com>2017-02-04 15:32:51 -0800
commitfe8e6304b47018a3058dae94afe7af9c68a34bfb (patch)
tree0803cdd4ef7dbd1968efd6aaffa6ed644d0167b3
parent7c7540fad17cf21163346ddae00c30227534531a (diff)
downloadtxr-fe8e6304b47018a3058dae94afe7af9c68a34bfb.tar.gz
txr-fe8e6304b47018a3058dae94afe7af9c68a34bfb.tar.bz2
txr-fe8e6304b47018a3058dae94afe7af9c68a34bfb.zip
bugfix: rehome_sym not removing from hidden list.
* lib.c (rehome_sym): Remove a symbol of the same name as sym from the target package's hidden symbol list. The documentation says that this is done. Basically, rehome_sym permanently brings in a symbol, so that a same-named symbol is kicked out.
-rw-r--r--lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 50a79b83..9c3a700c 100644
--- a/lib.c
+++ b/lib.c
@@ -5137,6 +5137,7 @@ val rehome_sym(val sym, val package_in)
}
set(mkloc(sym->s.package, sym), package);
sethash(package->pk.symhash, name, sym);
+ remhash(package->pk.hidhash, name);
return sym;
}