|
|
1.1 root 1: /* typed.h -- Data structures for an implimentation of internally
2: * typed data structures.
3: *
4: * This file has 5 major sections:
5: * TYPED_SPACE DECLARATIONS -- Declarations for typed_space in general.
6: * DATA TYPES -- Values for typed_space.ts_type.
7: * Make at least one entry here when you add new data types.
8: * STRUCTURE DECLARATIONS -- Declarations for specific typed spaces.
9: * Declare structures that describe the typed_space.ts_data element.
10: * FUNCTION DECLARATIONS -- Function names for specific typed spaces.
11: * Declare all the functions need to manipulate your data type.
12: * USEFUL SYMBOLS -- Symbols needed by specific typed spaces.
13: * Anything else you need to define should go here.
14: */
15:
16: /*
17: * DATA TYPES: (values for ts_type in a typed_space)
18: * All data types start with "T_".
19: * Similar data types share a common prefix which is defined like this:
20: * #define T_COMMON (space_type)0xhh00
21: * Specific types are then assigned sequentially from that:
22: * #define T_COMMON_SPECIFIC T_COMMON+n
23: */
24: /*
25: * STRUCTURE DECLARATIONS.
26: * These define the typed_space.ts_data elements that go with the above
27: * data types. They should be typedef'd to a name derivable from the
28: * type name by removing the leading "T_" (see above.)
29: *
30: * E.g. For the type T_COMMON create this typedef:
31: * typedef common {
32: * ...
33: * } COMMON;
34: *
35: * If the specific types need their own structs do them like this:
36: * typedef common_specific {
37: * ...
38: * } COMMON_SPECIFIC;
39: *
40: */
41:
42: /* USEFUL SYMBOLS.
43: * If appropriate, be sure to define a form of NULL for your new data
44: * type. E.g. for the type COMMON
45: * #define COMMON_NULL ((COMMON *) 0)
46: *
47: * If you need any other symbols define them here.
48: */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.