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:
0d07716
)
Fixed a bug preventing proper initializing of alien classes
author
espen
<espen>
Tue, 15 Aug 2000 14:42:34 +0000
(14:42 +0000)
committer
espen
<espen>
Tue, 15 Aug 2000 14:42:34 +0000
(14:42 +0000)
glib/gtype.lisp
patch
|
blob
|
blame
|
history
diff --git
a/glib/gtype.lisp
b/glib/gtype.lisp
index 5cb1a7c1e91460c43dfbe6cefbc5244cd7936248..45514af67c82534abca99e81e532d34dbdbfd936 100644
(file)
--- a/
glib/gtype.lisp
+++ b/
glib/gtype.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: gtype.lisp,v 1.
1 2000/08/14 16:44
:34 espen Exp $
+;; $Id: gtype.lisp,v 1.
2 2000/08/15 14:42
:34 espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-273,11
+273,6
@@
(defmethod shared-initialize ((class alien-class) names
(declare (ignore initargs))
(call-next-method)
(declare (ignore initargs))
(call-next-method)
- ;; For some reason I can't figure out, accessors for only the
- ;; first direct slot in an alien class gets defined by
- ;; PCL. Therefore it has to be done here.
- (pcl::fix-slot-accessors class (class-direct-slots class) 'pcl::add)
-
(when alien-name
(setf (alien-type-name (or name (class-name class))) (first alien-name)))
(when size
(when alien-name
(setf (alien-type-name (or name (class-name class))) (first alien-name)))
(when size
@@
-397,7
+392,11
@@
(defmethod compute-slots ((class alien-class))
;; Reverse the direct slot definitions so the effective slots
;; will be in correct order.
;; Reverse the direct slot definitions so the effective slots
;; will be in correct order.
- (setf direct-slots (nreverse direct-slots)))
+ (setf direct-slots (reverse direct-slots))
+ ;; This nreverse caused me so much frustration that I leave it
+ ;; here just as a reminder of what not to do.
+; (setf direct-slots (nreverse direct-slots))
+ )
(call-next-method))
(call-next-method))