5 static struct hash
*typedefs
= NULL
;
7 static int str_cmp(void *data
, void *key
)
9 return strcmp(data
, key
);
12 static void add_type(char *typename
)
15 typedefs
= hash_init(str_hash
, str_hash
, str_cmp
, 16);
16 hash_put(typedefs
, typename
);
19 int typedef_name(char *filename
, char *name
, long offset
)
26 return hash_get(typedefs
, name
) != NULL
;