(C-callback (lambda (window event) @dots{}))
@myresult{} 13 @r{; A fixnum registration ID.}
@end group
-
@end example
@comment The C-array-loc! example assumes 2 GdkColors are 6 words, #x18bytes.
@comment 0x081afc78 - 0x081afc60 = 0x18
The @file{-types.bin} and @file{-const.bin} files together provide
the information needed to expand @code{C-...} syntax, and are only
needed at syntax time. The compiled @file{-shim.so} file is used at
-run time, dynamically loaded into the Scheme machine. @ref{Compiling
+run time, dynamically loaded into the Scheme machine. @xref{Compiling
and Linking}, which describes these files in more detail, and shows
how they might be built and installed.
The @strong{@code{C-include}} syntax loads the @file{-types.bin} and
@file{-const.bin} files @emph{at syntax time}. It should appear
at the top level of any file containing @code{C-...} syntax, or be
-evaluated in the syntax environment of such code.
+syntaxed in the syntax environment of such code.
The @strong{@code{C-call}} syntax arranges to invoke a callout
trampoline. Arguments to the trampoline can be integers, floats,
@expansion{}
(#[primitive c-peek-int] alien 4)
@end group
+@c (param:pp-primitives-by-name? #f) to display primitives thuswise.
@group
(C->= alien "GdkRectangle width" 0)
@end smallexample
The above syntax is understood to say ``The data at this @code{alien}
-address is a GtkWidget. Load its @code{style} member (an alien
-address), into @code{alien} (clobbering @code{alien}'s old address).''
+address is a GtkWidget. Load its @code{style} member into
+@code{alien} (clobbering @code{alien}'s old address).''
The @strong{@code{C-enum}}, @strong{@code{C-sizeof}} and
@strong{@code{C-offset}} syntaxes all
@expansion{}
8
@end group
-
@end smallexample
The two element form of the @code{C-enum} syntax can be used to find
recommend releasing these examples in parallel under your choice of
free software license, such as the GNU General Public License,
to permit their use in free software.
-
@bye