Function | Package: ff | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## compile-foreign-type

Arguments: body &optional keys errorp

This function takes a foreign type specification (in the body argument) and converts it to an internal representation. It is not normally necessary to call this function since most foreign type functions pre-internalize the foreign type specifications which they accept. errorp defaults to `t`. If `nil`, `nil` is returned but no error is signaled if body specified an invalid type. keys is a list of attributes and defaults to `nil`. See def-foreign-type where acceptable attributes are listed.

    user(10): (setq ftype (compile-foreign-type '(:struct (x :int) (y :int))))
    #S(foreign-functions::iforeign-type :attributes nil
                                        :sftype
                                        #S(foreign-functions::sized-ftype-struct
                                        :kind :struct
                                        :width 8
                                        :offset 0
                                        :pad 0
                                        :align 4
                                        :canon (:struct # #)
                                        :slots (# #)))

See ftype.htm for information on foreign types in Allegro CL and foreign-functions.htm for general information on foreign functions in Allegro CL.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version