File: external_struct.inc

package info (click to toggle)
critcl 3.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,680 kB
  • sloc: ansic: 41,058; tcl: 12,090; sh: 7,230; pascal: 3,456; asm: 3,058; ada: 1,681; cpp: 1,001; cs: 879; makefile: 333; perl: 104; xml: 95; f90: 10
file content (19 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[comment {-*- mode: tcl ; fill-column: 90 -*-}]

[list_begin enumerated]

[enum] Handle structures provided by external libraries using either
[sectref {Structure Types}] or [sectref {Large Structures}] as template.

[enum] [emph Attention]. The choice is with the developer.

[para] This is true even if the external structure is not reference counted by itself.

[para] To reference count a structure [type S] without such simply wrap [type S] into a
local structure which provides the reference count and has a field for [type S] (pointer
or value).

[enum] [emph Attention] Opaque external types, i.e. pointers to structures with hidden
fields, can also be handled by the given templates.

[list_end]