chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a66b42
)
Fixed a design flaw in quark-from-object
author
espen
<espen>
Wed, 23 Aug 2000 21:36:44 +0000
(21:36 +0000)
committer
espen
<espen>
Wed, 23 Aug 2000 21:36:44 +0000
(21:36 +0000)
glib/glib.lisp
patch
|
blob
|
blame
|
history
diff --git
a/glib/glib.lisp
b/glib/glib.lisp
index dead212f9219325ec2d9e4ba1df64f70ed3026e3..b17c3c37200e402d32cef9e8749a3c35c9b5a167 100644
(file)
--- a/
glib/glib.lisp
+++ b/
glib/glib.lisp
@@
-15,7
+15,7
@@
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-;; $Id: glib.lisp,v 1.
4 2000/08/23 14:27:41
espen Exp $
+;; $Id: glib.lisp,v 1.
5 2000/08/23 21:36:44
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-54,7
+54,11
@@
(defun quark-from-object (object &key (test #'eq))
(or
(assoc-ref object (gethash hash-code *quark-from-object*) :test test)
(let ((quark (%quark-get-reserved)))
(or
(assoc-ref object (gethash hash-code *quark-from-object*) :test test)
(let ((quark (%quark-get-reserved)))
- (push (cons object quark) (gethash hash-code *quark-from-object*))
+ (setf
+ (gethash hash-code *quark-from-object*)
+ (append
+ (gethash hash-code *quark-from-object*)
+ (list (cons object quark))))
(setf (gethash quark *quark-to-object*) object)
quark))))
(setf (gethash quark *quark-to-object*) object)
quark))))