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

NextPrevUpTopContentsIndex

:signed

FLI type descriptor
Summary

Converts between a Lisp integer and a foreign signed integer.

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 :signed type converts between a Lisp integer and a foreign signed integer. The optional integer-type argument specifies other kinds of signed integer types. See Table 8.2 for a comparison between Lisp and C signed types.

A comparison of Lisp and C signed types

Lisp type

FLI type

C 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
Integral types


LispWorks Foreign Language Interface User Guide and Reference Manual - 29 Sep 2017

NextPrevUpTopContentsIndex