35 #define STATEMENT_ORDERING_UNDEFINED (-1)
40 #ifndef STATEMENT_MAPPING_INCLUDED
41 #define STATEMENT_MAPPING_INCLUDED
43 #define MAKE_STATEMENT_MAPPING() \
44 (statement_mapping) hash_table_make(hash_pointer, 0)
45 #define FREE_STATEMENT_MAPPING(map) \
46 (hash_table_free((hash_table) (map)))
47 #define SET_STATEMENT_MAPPING(map, stat, val) \
48 hash_put((hash_table) (map), (char *)(stat), (char *)(val))
49 #define GET_STATEMENT_MAPPING(map, stat) \
50 hash_get((hash_table) (map), (char *) (stat))
51 #define STATEMENT_MAPPING_COUNT(map) \
52 hash_table_entry_count((hash_table) map)
53 #define STATEMENT_MAPPING_MAP(s, v, code, h) \
54 HASH_MAP(s, v, code, h)
58 #define DEFINE_CURRENT_MAPPING(name, type) \
59 GENERIC_CURRENT_MAPPING(name, type, statement)
62 #ifndef ENTITY_MAPPING_INCLUDED
63 #define ENTITY_MAPPING_INCLUDED
65 #define MAKE_ENTITY_MAPPING() \
66 ((entity_mapping) hash_table_make(hash_pointer, 0))
67 #define FREE_ENTITY_MAPPING(map) \
68 (hash_table_free((hash_table) (map)))
69 #define SET_ENTITY_MAPPING(map, ent, val) \
70 hash_put((hash_table) (map), (char *)(ent), (char *)(val))
71 #define GET_ENTITY_MAPPING(map, ent) \
72 hash_get((hash_table) (map), (char *)(ent))
73 #define ENTITY_MAPPING_COUNT(map) \
74 hash_table_entry_count((hash_table) map)
75 #define ENTITY_MAPPING_MAP(s, v, code, h) \
76 HASH_MAP(s, v, code, h)
79 #ifndef CONTROL_MAPPING_INCLUDED
80 #define CONTROL_MAPPING_INCLUDED
82 #define MAKE_CONTROL_MAPPING() \
83 ((control_mapping) hash_table_make(hash_pointer, 0))
84 #define FREE_CONTROL_MAPPING(map) \
85 (hash_table_free((hash_table) (map)))
86 #define SET_CONTROL_MAPPING(map, cont, val) \
87 hash_put((hash_table) (map), (char *)(cont), (char *)(val))
88 #define GET_CONTROL_MAPPING(map, cont) \
89 hash_get((hash_table) (map), (char *)(cont))
90 #define CONTROL_MAPPING_COUNT(map) \
91 hash_table_entry_count((hash_table) map)
92 #define CONTROL_MAPPING_MAP(s, v, code, h) \
93 HASH_MAP(s, v, code, h)
hash_table entity_mapping
hash_table statement_mapping
these macros are obsolete! newgen functions (->) should be used instead
hash_table control_mapping