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:
977a550
)
Small change to %DEFBINDING
author
espen
<espen>
Mon, 3 Jan 2005 16:35:05 +0000
(16:35 +0000)
committer
espen
<espen>
Mon, 3 Jan 2005 16:35:05 +0000
(16:35 +0000)
glib/ffi.lisp
patch
|
blob
|
blame
|
history
diff --git
a/glib/ffi.lisp
b/glib/ffi.lisp
index 5133519b04ea32426f8329a32dc2fc66fbf752f3..bd68c1e78edbc6998f22800d833304c5dedc4621 100644
(file)
--- a/
glib/ffi.lisp
+++ b/
glib/ffi.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: ffi.lisp,v 1.1
1 2004-12-28 20:27:52
espen Exp $
+;; $Id: ffi.lisp,v 1.1
2 2005-01-03 16:35:05
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-103,11
+103,11
@@
(defmacro defbinding (name lambda-list return-type &rest docs/args)
(not supplied-lambda-list)
(namep expr) (member style '(:in :in-out :return)))
(push expr lambda-list))
(not supplied-lambda-list)
(namep expr) (member style '(:in :in-out :return)))
(push expr lambda-list))
- (push
- (list (if (namep expr)
-
(make-symbol (string expr
))
-
(gensym
))
- expr (mklist type) style) args)))))
+ (push
(list (cond
+ ((and (namep expr) (eq style :out)) expr)
+
((namep expr) (make-symbol (string expr)
))
+
((gensym)
))
+
expr (mklist type) style) args)))))
(%defbinding
c-name lisp-name (or supplied-lambda-list (nreverse lambda-list))
(%defbinding
c-name lisp-name (or supplied-lambda-list (nreverse lambda-list))