4.1.7 Passing foreign and Lisp data types
4.1.7.5 Passing Lisp data to FORTRAN functions
Use Table 4.7 to find out about passing Lisp data as arguments to a FORTRAN function.
Passing Lisp data to FORTRAN functions Lisp Type | FORTRAN Data Type | Call Discipline | (signed-byte 32) | :signed-32bit | :value |
(signed-byte 16) | :signed-64bit | :value |
fixnum | :fixnum | :value |
float | :single-float | :value |
float | :double-float | :value |
foreign-pointer | :pointer | :reference |
foreign-pointer | (:pointer foreign-type) | :reference |
coercible-to-foreign-array | :array | :reference |
(simple-array (not string-char) 1) | :simple-vector-type | :reference |
simple-string | :simple-string | :reference |
fortran-string-type | :string | :reference |
character | :character | :value |
t | :lisp | :value |
(or fixnum float integer character foreign-pointer fortran-string-type coercible-to-foreign-array) | :arbitrary | nil |
The Advanced User's Guide - 9 SEP 1996 Generated with Harlequin WebMaker