X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2Fffi.texinfo;h=f8ffb73d5c69591a1e62b7db4f1561726d259d22;hb=daba25be05dd7b4089ed382368f9ff666d16c6fb;hp=ea1399572d271c3c4cea4e9f6143c5a915d5f445;hpb=7b5628003e3016985952908016219b872ed48811;p=sbcl.git diff --git a/doc/manual/ffi.texinfo b/doc/manual/ffi.texinfo index ea13995..f8ffb73 100644 --- a/doc/manual/ffi.texinfo +++ b/doc/manual/ffi.texinfo @@ -3,7 +3,7 @@ @chapter Foreign Function Interface This chapter describes SBCL's interface to C programs and -libraries (and, since C interfaces are a sort of @emph{ingua +libraries (and, since C interfaces are a sort of @emph{lingua franca} of the Unix world, to other programs and libraries in general.) @@ -196,8 +196,10 @@ variables. Dynamic arrays can only be allocated using The foreign type specifier @code{(sb-alien:struct @var{name} &rest @var{fields})} describes a structure type with the specified @var{name} and @var{fields}. Fields are allocated at the same offsets -used by the implementation's C compiler. If @var{name} is @code{nil} -then the structure is anonymous. +used by the implementation's C compiler, as guessed by the SBCL +internals. An optional @code{:alignment} keyword argument can be +specified for each field to explicitly control the alignment of a +field. If @var{name} is @code{nil} then the structure is anonymous. If a named foreign @code{struct} specifier is passed to @code{define-alien-type} or @code{with-alien}, then this defines, @@ -357,7 +359,7 @@ array type. @code{deref} can be set with @code{setf} to assign a new value. @end defun -@defun sb-alien:slot @var{struct-or-union} &rest @var{slot-names} +@defun sb-alien:slot @var{struct-or-union} @var{slot-name} @findex slot The @code{sb-alien:slot} function extracts the value of the slot named