8 typedef struct type_t type_t;
9 typedef struct atomic_type_t atomic_type_t;
10 typedef struct pointer_type_t pointer_type_t;
11 typedef struct method_parameter_t method_parameter_t;
12 typedef struct method_type_t method_type_t;
13 typedef struct compound_type_t compound_type_t;
14 typedef struct enum_type_t enum_type_t;
15 typedef struct builtin_type_t builtin_type_t;
16 typedef struct array_type_t array_type_t;
18 void init_types(void);
19 void exit_types(void);
21 void print_type(const type_t *type);
24 * prints a human readable form of @p type. prints an abstract typename
27 void print_type_ext(const type_t *type, const symbol_t *symbol,
28 const context_t *context);
31 * set output stream for the type printer
33 void type_set_output(FILE *out);
36 * returns true if type contains integer numbers
38 bool is_type_integer(const type_t *type);
41 * returns true if the type is valid. A type is valid if it contains no
42 * unresolved references anymore and is not of TYPE_INVALID.
44 bool type_valid(const type_t *type);
47 * returns true if the type is an arithmetic type (6.2.18)
49 bool is_type_arithmetic(const type_t *type);
52 * returns true if the type is a scalar type (6.2.21)
54 bool is_type_scalar(const type_t *type);