summaryrefslogtreecommitdiff
path: root/alien.lisp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2023-07-24 00:09:53 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2023-07-24 00:09:53 -0300
commitbb4b2bc484ed1d827d707a5a50b234d6994af90c (patch)
tree832ec90bf0f34252447c3fd49311d3af3e319d56 /alien.lisp
parent3d6e80b447ef96cdac3aada1f2ca08073648294f (diff)
downloadutils-bb4b2bc484ed1d827d707a5a50b234d6994af90c.tar.gz
utils-bb4b2bc484ed1d827d707a5a50b234d6994af90c.zip
Add char, color and name transformersHEADmain
Diffstat (limited to 'alien.lisp')
-rw-r--r--alien.lisp8
1 files changed, 4 insertions, 4 deletions
diff --git a/alien.lisp b/alien.lisp
index 3451dc9..5e870ec 100644
--- a/alien.lisp
+++ b/alien.lisp
@@ -3,10 +3,10 @@
(defmacro call (fname rtype &rest types-n-values)
(let ((tlist (queue:new))
(vlist (queue:new)))
- (dolist (item types-n-values)
- (queue:add tlist (first item))
- (queue:add vlist (second item)))
+ (do () ((null types-n-values) nil)
+ (queue:add tlist (pop types-n-values))
+ (queue:add vlist (pop types-n-values)))
`(alien-funcall (extern-alien ,fname
- (function ,rtype
+ (sb-alien:function ,rtype
,@(queue:to-list tlist)))
,@(queue:to-list vlist))))