defun-c-callable

$Revision: 5.0.2.3 $

Macro

Package: FOREIGN-FUNCTIONS

Arguments: (name arglist &rest body)

This macro is obsolete and has been replaced by defun-foreign-callable. Please use that macro in all new code. This macro is maintained for backward compatibility only.

lisp-function-name ({arg | (arg type)}*) body-form+

arglist is a list of arguments each of which is either a symbol (as in the usual function definition), or it is a list of length two, a symbol and its type. If a symbol only is present, then it has the default type (:signed-long). Each is an argument which C passes to Lisp. This macro does not allow &rest or &optional arguments in the argument list. The type corresponds to the type of a C argument and is limited to be one of the following:

:signed-byte 8 bits
:unsigned-byte 8 bits
:signed-word 16 bits
:unsigned-word 16 bits
:fixnum 30 bits
:signed-long 32 bits (the default)
:unsigned-long 32 bits
:single-float 32 bits
:double-float 64 bits
:lisp
(Assumes that C passes an actual Lisp value)

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

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

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