Changeset 12589 in project for wiki/Accessing external objects


Ignore:
Timestamp:
11/25/08 21:42:38 (12 years ago)
Author:
svnwiki
Message:

Changes applied for AndreKuehne? (83.135.28.144) through svnwiki:

improved subsection structure of define-foreign-record section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/Accessing external objects

    r8737 r12589  
    114114A foreign-type specifier named {{NAME}} (or {{TYPENAME}}) will be defined as a pointer to
    115115the given C structure.
     116
     117==== slot definitions
     118
    116119A {{SLOT}} definition should be a list of one of the following forms:
    117120
     
    127130
    128131
    129 ==== TYPENAME-SLOTNAME
     132===== TYPENAME-SLOTNAME
    130133
    131134 (TYPENAME-SLOTNAME FOREIGN-RECORD-POINTER [INDEX])
     
    136139
    137140
    138 ==== TYPENAME-SLOTNAME-set!
     141===== TYPENAME-SLOTNAME-set!
    139142 
    140143 (TYPENAME-SLOTNAME-set! FOREIGN-RECORD-POINTER [INDEX] VALUE)
     
    144147the slot definition, then an additional argument {{INDEX}} is required for the array index.
    145148
    146 
    147149If a slot type is of the form {{(const ...)}}, then no setter procedure will be generated.
    148150Slots of the types {{(struct ...)}} or {{(union ...)}} are accessed as pointers to the embedded
    149151struct (or union) and no setter will be generated.
    150152
    151 Additionally, special record-declarations ({{DECL ...}}) may be given, where each declaration consists
     153
     154==== record declarations
     155
     156Additionally, special record declarations ({{DECL ...}}) may be given, where each declaration consists
    152157of a list of the form {{(KEYWORD ARGUMENT ...)}}. The available declarations are:
    153158
    154 ==== constructor
     159
     160===== constructor
    155161
    156162 (constructor: NAME)
     
    160166
    161167
    162 ==== destructor
     168===== destructor
    163169
    164170 (destructor: NAME)
     
    169175
    170176
    171 ==== rename
     177===== rename
    172178
    173179 (rename: EXPRESSION)
     
    178184
    179185
    180 An example:
     186==== example
    181187
    182188<enscript highlight=scheme>
Note: See TracChangeset for help on using the changeset viewer.