6 typedef struct type_t type_t;
7 typedef struct atomic_type_t atomic_type_t;
8 typedef struct pointer_type_t pointer_type_t;
9 typedef struct method_parameter_type_t method_parameter_type_t;
10 typedef struct method_type_t method_type_t;
11 typedef struct compound_type_t compound_type_t;
12 typedef struct enum_type_t enum_type_t;
13 typedef struct builtin_type_t builtin_type_t;
15 void init_types(void);
16 void exit_types(void);
19 * prints a human readable form of @p type to a stream
21 void print_type(FILE* out, const type_t *type);
24 * returns 1 if type contains integer numbers
26 int is_type_int(const type_t *type);
29 * returns 1 if the type is valid. A type is valid if it contains no unresolved
30 * references anymore and is not of TYPE_INVALID.
32 int type_valid(const type_t *type);