All Manuals > Foreign Language Interface User Guide and Reference Manual > 8 Type Reference

:signed FLI Type Descriptor

Summary

Converts between a Lisp integer and a foreign signed integer.

Package

keyword

Syntax

:signed &optional integer-type

integer-type ::= :byte | :char | :short | :int | :long | :long :int | :short :int

Arguments
integer-type
The type of the signed integer.
Description

The FLI type :signed converts between a Lisp integer and a foreign signed integer. The optional integer-type argument specifies other kinds of signed integer types. See Table A comparison of Lisp and C signed types for a comparison between Lisp and C signed types.

A comparison of Lisp and C signed types
Lisp typeFLI typeC type

integer

:signed

signed int

fixnum

:signed :byte

signed char

fixnum

:signed :char

signed char

fixnum

:signed :short

signed short

integer

:signed :int

signed int

integer

:signed :long

signed long

fixnum

:signed :short :int

signed short

integer

:signed :long :int

signed long

See also

cast-integer
:unsigned
2.1.1 Integral types


Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:59