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:
6d2e5d2
)
Fixed a bug in the translation of lists to GLists
author
espen
<espen>
Tue, 15 Aug 2000 23:25:18 +0000
(23:25 +0000)
committer
espen
<espen>
Tue, 15 Aug 2000 23:25:18 +0000
(23:25 +0000)
glib/glib.lisp
patch
|
blob
|
blame
|
history
diff --git
a/glib/glib.lisp
b/glib/glib.lisp
index fb6264930cf12a72ee8e6ddf84a9fc2668c98adb..0f8fceb7fff68d13f1acc0f12933713ac9ac3183 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.
1 2000/08/14 16:44:31
espen Exp $
+;; $Id: glib.lisp,v 1.
2 2000/08/15 23:25:18
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-83,7
+83,7
@@
(deftype-method translate-to-alien double-list (type-spec list &optional copy)
(to-alien (translate-to-alien element-type-spec 'element t)))
`(let ((glist (make-pointer 0)))
(dolist (element ,list glist)
(to-alien (translate-to-alien element-type-spec 'element t)))
`(let ((glist (make-pointer 0)))
(dolist (element ,list glist)
- (setq glist (glist-append glist ,to-alien element-type-spec))))))
+ (setq glist (glist-append glist ,to-alien
,
element-type-spec))))))
(deftype-method
translate-from-alien
(deftype-method
translate-from-alien
@@
-110,7
+110,8
@@
(deftype-method cleanup-alien double-list (type-spec glist &optional copied)
,(when (eq alien-type-spec 'system-area-pointer)
`(do ((tmp glist (glist-next tmp)))
((null-pointer-p tmp))
,(when (eq alien-type-spec 'system-area-pointer)
`(do ((tmp glist (glist-next tmp)))
((null-pointer-p tmp))
- ,(cleanup-alien element-type-spec '(glist-data tmp) t)))
+ ,(cleanup-alien
+ element-type-spec `(glist-data tmp ,element-type-spec) t)))
(glist-free glist)))))
(glist-free glist)))))