C FFI and Win 32 Reference
Contents
Contents
Copyright and Trademarks
1
- The C-FFI Library
1.1
- Introduction
1.2
- Overview
1.2.1
- C types in Dylan
1.2.2
- C functions in Dylan
1.2.3
- C variables in Dylan
1.3
- Terminology
1.4
- Basic options in C-FFI macros
1.5
- Designator classes
1.5.1
- Designator type properties
1.5.2
- Designator class basics
<C-value>
<C-void>
size-of
alignment-of
1.5.3
- Fundamental numeric type designator classes
<C-number>
<C-float>
<C-double>
1.5.4
- Pointer designator classes and related functions
<C-pointer>
pointer-address
pointer-cast
null-pointer
null-pointer?
<C-void*>
<C-statically-typed-pointer>
define C-pointer-type
referenced-type
c-type-cast
pointer-value
pointer-value-setter
pointer-value-address
element
element-setter
=
<
C-char-at
C-char-at-setter
C-signed-char-at
C-signed-char-at-setter
C-unsigned-char-at
C-unsigned-char-at-setter
C-unsigned-short-at
C-unsigned-short-at-setter
C-signed-short-at
C-signed-short-at-setter
C-short-at
C-short-at-setter
C-unsigned-long-at
C-unsigned-long-at-setter
C-signed-long-at
C-signed-long-at-setter
C-long-at
C-long-at-setter
C-unsigned-int-at
C-unsigned-int-at-setter
C-signed-int-at
C-signed-int-at-setter
C-int-at
C-int-at-setter
C-double-at
C-double-at-setter
C-float-at
C-float-at-setter
C-pointer-at
C-pointer-at-setter
1.5.5
- Structure types
<C-struct>
1.5.6
- Union types
<C-union>
1.5.7
- Notes on C type macros
1.6
- Defining types
1.6.1
- Defining specialized versions of designator classes
define C-subtype
1.6.2
- Defining specialized designator classes
define C-mapped-subtype
1.6.3
- Describing structure types
define C-struct
1.6.4
- Describing union types
define C-union
1.7
- Functions
1.7.1
- Function types
<C-function-pointer>
1.7.2
- Describing C functions to Dylan
define C-function
1.7.3
- Describing Dylan functions for use by C
define C-callable-wrapper
1.7.4
- Variables
define C-variable
define C-address
1.8
- Allocating and deallocating C storage
make subclass(<C-pointer>)
destroy
with-stack-structure
1.9
- Utility designator classes
<C-boolean>
<C-string>
<C-character>
with-c-string
clear-memory!
copy-bytes!
copy-into!
equal-memory?
<C-Dylan-object>
register-C-Dylan-object
unregister-C-Dylan-object
export-C-Dylan-object
import-C-Dylan-object
2
- The Functional Developer Win32 API Libraries
2.1
- Introduction
2.2
- Supported Win32 libraries
2.3
- Content and organization of the Win32 API libraries
2.3.1
- Notes on the translations
2.4
- Naming and mapping conventions
2.4.1
- Simple naming conventions
2.4.2
- Mapping the null value
2.4.3
- Mapping C types onto Dylan classes
2.4.4
- Creating methods from Windows alias functions
2.4.5
- Mapping C structure fields onto Dylan slot names
2.4.6
- Handling return of multiple values
2.5
- Defining callback functions
2.6
- Error messages
2.7
- Handling Dylan conditions in a Win32 application
2.8
- Dealing with the C function WinMain
2.9
- Combining bit mask constants
2.10
- Other minor details
2.11
- Index of Win32 names excluded from the Dylan libraries
2.11.1
- Characters
2.11.2
- A
2.11.3
- B
2.11.4
- C
2.11.5
- D
2.11.6
- E
2.11.7
- F
2.11.8
- G
2.11.9
- H
2.11.10
- L
2.11.11
- M
2.11.12
- N
2.11.13
- O
2.11.14
- P
2.11.15
- R
2.11.16
- S
2.11.17
- U
2.11.18
- V
2.11.19
- W
2.11.20
- Y
Index
C FFI and Win 32 Reference - 31 MAR 2000