4.1.7 Passing foreign and Lisp data types
4.1.7.1 Passing C data to Lisp functions
Use Table 4.3 to find out about passing C data to a Lisp function or returning data from a C function to Lisp.
Passing C data to Lisp functions C Data Type | Lisp Type | Call Discipline | :unsigned-32bit | (unsigned-byte 32) | :value |
:signed-32bit | (signed-byte 32) | :value |
:unsigned-64bit | (unsigned-byte 64) | :value |
:signed-64bit | (signed-byte 64) | :value |
:fixnum | fixnum | :value |
:single-float | float | :value |
:double-float | float | :value |
:pointer | foreign-pointer | :reference |
(:pointer foreign-type) | foreign-pointer | :reference |
:simple-string | simple-string | :reference |
:character | character | :value |
:boolean | t | :value |
:lisp | t | :value |
:null | nil | nil |
The Advanced User's Guide - 9 SEP 1996 Generated with Harlequin WebMaker