Debian Codegraph @

support/babel/modules.h

raw symbols SCIP
1 /* modules.h Declaration of treaty modules for the babel program
2 * (c) 2006 By L. Ross Raszewski
3 *
4 * This code is freely usable for all purposes.
5 *
6 * This work is licensed under the Creative Commons Attribution 4.0 License.
7 * To view a copy of this license, visit
8 * https://creativecommons.org/licenses/by/4.0/ or send a letter to
9 * Creative Commons,
10 * PO Box 1866,
11 * Mountain View, CA 94042, USA.
12 *
13 * This file depends upon treaty.h and all the references treaty modules
14 *
15 * Persons wishing to add support for a new module to babel need only
16 * add a line in the form below. New modules should be positioned according
17 * to their popularity. If this file is being used in tandem with register.c
18 * (as it is in babel), then being dishonest about the popularity of an added
19 * system will make the program non-compliant with the treaty of Babel
20 *
21 * REGISTER_NAME is used as a placeholder for formats which are specified
22 * as existing by the treaty but for which no handler yet exists.
23 * remove the REGISTER_NAME for any format which has a registered treaty.
24 */
25
26
27 #include "treaty.h"
28 #undef REGISTER_TREATY
29 #undef REGISTER_CONTAINER
30 #undef REGISTER_NAME
31 #ifdef TREATY_REGISTER
32 #ifdef CONTAINER_REGISTER
33 #ifdef FORMAT_REGISTER
34 #define REGISTER_TREATY(x) #x,
35 #define REGISTER_NAME(x) #x,
36 #define REGISTER_CONTAINER(x)
37 #else
38 #define REGISTER_TREATY(x)
39 #define REGISTER_CONTAINER(x) x##_treaty,
40 #define REGISTER_NAME(x)
41 #endif
42 #else
43 #define REGISTER_TREATY(x) x##_treaty,
44 #define REGISTER_CONTAINER(x)
45 #define REGISTER_NAME(x)
46 #endif
47 #else
48 #define REGISTER_TREATY(x) int32 x##_treaty(int32, void *, int32, void *, int32);
49 #define REGISTER_CONTAINER(x) int32 x##_treaty(int32, void *, int32, void *, int32);
50 #define REGISTER_NAME(x)
51 #endif
52
53
54 REGISTER_CONTAINER(blorb)
55 REGISTER_TREATY(zcode)
56 REGISTER_TREATY(glulx)
57 REGISTER_TREATY(tads2)
58 REGISTER_TREATY(tads3)
59 REGISTER_TREATY(hugo)
60 REGISTER_TREATY(alan)
61 REGISTER_TREATY(adrift)
62 REGISTER_TREATY(level9)
63 REGISTER_TREATY(agt)
64 REGISTER_TREATY(magscrolls)
65 REGISTER_TREATY(advsys)
66 REGISTER_TREATY(html)
67 REGISTER_TREATY(executable)
68
69
70
71