common-lisp.net
/
projects/cffi/cffi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1b88e33
)
foreign-free, sbcl: add (optimize speed) declaration, which avoids
author
Stas Boukarev
<stassats@gmail.com>
Fri, 23 Nov 2012 14:24:15 +0000 (18:24 +0400)
committer
Stelian Ionescu
<sionescu@cddr.org>
Fri, 23 Nov 2012 23:17:02 +0000 (
00:17
+0100)
consing aliens.
src/cffi-sbcl.lisp
patch
|
blob
|
blame
|
history
diff --git
a/src/cffi-sbcl.lisp
b/src/cffi-sbcl.lisp
index
48fd0e3
..
63cdce5
100644
(file)
--- a/
src/cffi-sbcl.lisp
+++ b/
src/cffi-sbcl.lisp
@@
-134,7
+134,8
@@
(declaim (inline foreign-free))
(defun foreign-free (ptr)
"Free a PTR allocated by FOREIGN-ALLOC."
- (declare (type system-area-pointer ptr))
+ (declare (type system-area-pointer ptr)
+ (optimize speed))
(free-alien (sap-alien ptr (* (unsigned 8)))))
(defmacro with-foreign-pointer ((var size &optional size-var) &body body)