Next Previous Up Top Contents Index

6 Type Reference

:boolean

FLI type descriptor

Summary

Converts between a Lisp boolean value and a C representation of a boolean value.
Package

fli

Syntax

:boolean &optional encapsulates

Arguments

encapsulates

An integral type.

Description

The FLI:boolean type converts between a Lisp boolean value and a C representation of a boolean value. The encapsulates option is used to specify the size of the value from which the boolean value is obtained. For example, if abyte is used in C to represent a boolean, the size to map across for the FLI will be one byte, but if anint is used, then the size will be four bytes.
A value of0 in C represents anil boolean value in Lisp, and a non-zero value in C represents at boolean value in Lisp.
Example

In the following three examples, the size of a:boolean, a(:boolean :int) and a(:boolean :byte) are returned.
(fli:size-of :boolean)

(fli:size-of '(:boolean :int))

(fli:size-of '(:boolean :byte))

See Also

size-of

LispWorks Foreign Language Interface - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker