def-c-typedef

$Revision: 5.0.2.4 $

Macro

Package: FOREIGN-FUNCTIONS

Arguments: (name &rest slots)

This macro is obsolete and kept for backward compatibility only. Please use def-foreign-type.

This macro returns name if name is a symbol or (car name) if name is a list but this macro is used for its side effects. The side effect is to define a C type to Lisp. (The list of allowable types is the same as given in the definition of ff:def-c-type above. It includes structures and unions as well as ordinary types.) However, unlike the related macro ff:def-c-type, no accessor functions and no constructor functions are defined. You cannot even use ff:make-cstruct to create an object of the defined type. The purpose of ff:def-c-typedef is to provide building blocks which will be used by ff:def-c-type (which does create accessors and a constructor as side effects) without paying the overhead of defining the additional functions. ff:def-c-typedef takes the same arguments as ff:def-c-type. (If the name argument is a list, only the first element, which must be a symbol, is used. A list is accepted for compatibility with ff:def-c-type.)

See the discussion of the allowable values for data-type in the definition of ff:def-c-type for the allowable values.

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

The general documentation description is in introduction.htm. The index is in index.htm.

Copyright (C) 1998-1999, Franz Inc., Berkeley, CA. All Rights Reserved.