chiark
/
gitweb
/
~mdw
/
clg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added alien type specifier OPTIMIZED-DOUBLE-FLOAT
[clg]
/
gffi
/
basic-types.lisp
diff --git
a/gffi/basic-types.lisp
b/gffi/basic-types.lisp
index b21fbd3adf99e01058fb8cf2f85138c22507c8d5..9b3695e0f41d6a117e681940dbfcc13ef39e0243 100644
(file)
--- a/
gffi/basic-types.lisp
+++ b/
gffi/basic-types.lisp
@@
-20,7
+20,7
@@
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: basic-types.lisp,v 1.
4 2006-09-06 10:15:34
espen Exp $
+;; $Id: basic-types.lisp,v 1.
5 2007-01-02 15:20:32
espen Exp $
(in-package "GFFI")
(in-package "GFFI")
@@
-514,6
+514,12
@@
(define-type-method reader-function ((type double-float) &key ref (inlined t))
#+(or cmu sbcl)(sap-ref-double location offset)
#+clisp(ffi:memory-as location 'double-float offset)))
#+(or cmu sbcl)(sap-ref-double location offset)
#+clisp(ffi:memory-as location 'double-float offset)))
+(deftype optimized-double-float () 'double-float)
+
+(define-type-method to-alien-form ((type optimized-double-float) form &optional copy-p)
+ (declare (ignore type copy-p))
+ form)
+
;;; Character
;;; Character