1CHAIN(3) MBK UTILITY STRUCTURE DEFINITIONS CHAIN(3)
2
3
4
6 chain - mbk lisp-like service structure
7
9 The chain is used for any purpose, when a list of pointer is required.
10 The use of this structure is strongly recommended, when such a need
11 occurs.
12
13 The declarations needed to work on chain are available in the header
14 file "/labo/include/mut315.h", where '315' is the actual mbk version.
15
16 The following C structure supports the description of the chain :
17 typedef struct chain {
18 struct chain ∗NEXT;
19 void ∗DATA;
20 } chain_list;
21
22 NEXT Pointer to the next chain of the list.
23
24 DATA Generic pointer used to point to any kind of
25 object. Do not forget to cast the pointer back to
26 its previous type when using this field.
27
28 Remark : a specialized memory allocator has been built in
29 order to create and free chain_lists, so absolutly
30 avoid to create or free them an other way than
31 through the access functions.
32
34 mbk(1), addchain(3), freechain(3), delchain(3).
35
36
37
38
39
40
41ASIM/LIP6 October 1, 1997 CHAIN(3)