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:
86d9d6a
)
Made size-of a type method
author
espen
<espen>
Mon, 4 Sep 2000 22:04:24 +0000
(22:04 +0000)
committer
espen
<espen>
Mon, 4 Sep 2000 22:04:24 +0000
(22:04 +0000)
glib/gtype.lisp
patch
|
blob
|
blame
|
history
diff --git
a/glib/gtype.lisp
b/glib/gtype.lisp
index 192e1218009f202f67f0ebf9f073f717b268bb38..04a23ceb18570b3facda955bd9b119ddc4ac695a 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.
3 2000-08-23 14:27:41
espen Exp $
+;; $Id: gtype.lisp,v 1.
4 2000-09-04 22:04:24
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-234,7
+234,11
@@
(defmethod from-alien-initialize-instance ((instance alien-instance)
(deftype-method translate-type-spec alien-instance (type-spec)
(declare (ignore type-spec))
(deftype-method translate-type-spec alien-instance (type-spec)
(declare (ignore type-spec))
- 'system-area-pointer)
+ (translate-type-spec 'pointer))
+
+(deftype-method size-of alien-instance (type-spec)
+ (declare (ignore type-spec))
+ (size-of 'pointer))
@@
-360,7
+364,7
@@
(defmethod compute-virtual-slot-location
(alien::make-heap-alien-info
:type (alien::parse-alien-type
`(function
(alien::make-heap-alien-info
:type (alien::parse-alien-type
`(function
- void
,alien-type system-area-pointer
))
+ void
system-area-pointer ,alien-type
))
:sap-form (system:foreign-symbol-address writer))))
(to-alien (get-to-alien-function type))
(cleanup (get-cleanup-function type)))
:sap-form (system:foreign-symbol-address writer))))
(to-alien (get-to-alien-function type))
(cleanup (get-cleanup-function type)))