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:
31fd088
)
Fixed MKBINDING-LATE so it actually works
author
espen
<espen>
Sun, 21 Oct 2001 21:33:57 +0000
(21:33 +0000)
committer
espen
<espen>
Sun, 21 Oct 2001 21:33:57 +0000
(21:33 +0000)
glib/gforeign.lisp
patch
|
blob
|
blame
|
history
diff --git
a/glib/gforeign.lisp
b/glib/gforeign.lisp
index 23301951a863207afe59795f89ed1166134e1484..bf636e6985fd6a813b5e07e884e1d8ed4d74a1e1 100644
(file)
--- a/
glib/gforeign.lisp
+++ b/
glib/gforeign.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: gforeign.lisp,v 1.1
1 2001/10/21 16:50:43
espen Exp $
+;; $Id: gforeign.lisp,v 1.1
2 2001/10/21 21:33:57
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-395,19
+395,17
@@
(defun every-type-translateable-p (type-specs)
(defun mkbinding-late (name return-type &rest arg-types)
(if (every-type-translateable-p (cons return-type arg-types))
(apply #'mkbinding name return-type arg-types)
(defun mkbinding-late (name return-type &rest arg-types)
(if (every-type-translateable-p (cons return-type arg-types))
(apply #'mkbinding name return-type arg-types)
- (let* ((binding
- #'(lambda (&rest args)
- (cond
- ((every-type-translateable-p (cons return-type arg-types))
- (setq binding (apply #'mkbinding name return-type arg-types))
- (apply binding args))
- (t
- (dolist (type-spec (cons return-type arg-types))
- (unless (type-translateable-p type-spec)
- (error "Can't translate type ~A" type-spec))))))))
+ (let ((binding nil))
#'(lambda (&rest args)
#'(lambda (&rest args)
- (apply binding args)))))
-
+ (cond
+ (binding (apply binding args))
+ ((every-type-translateable-p (cons return-type arg-types))
+ (setq binding (apply #'mkbinding name return-type arg-types))
+ (apply binding args))
+ (t
+ (dolist (type-spec (cons return-type arg-types))
+ (unless (type-translateable-p type-spec)
+ (error "Can't translate type ~A" type-spec)))))))))