static FILE *out;
static int type_visited = 0;
-static void intern_print_type_pre(type_t *type, bool top);
-static void intern_print_type_post(type_t *type, bool top);
+static void intern_print_type_pre(const type_t *type, bool top);
+static void intern_print_type_post(const type_t *type, bool top);
void init_types(void)
{
}
}
-static void print_typedef_type_pre(typedef_type_t *type)
+static void print_typedef_type_pre(const typedef_type_t *const type)
{
fputs(type->declaration->symbol->string, out);
}
-static void print_typeof_type_pre(typeof_type_t *type)
+static void print_typeof_type_pre(const typeof_type_t *const type)
{
fputs("typeof(", out);
if(type->expression != NULL) {
fputc(')', out);
}
-static void intern_print_type_pre(type_t *type, bool top)
+static void intern_print_type_pre(const type_t *const type, const bool top)
{
switch(type->type) {
case TYPE_INVALID:
fputs("unknown", out);
}
-static void intern_print_type_post(type_t *type, bool top)
+static void intern_print_type_post(const type_t *const type, const bool top)
{
switch(type->type) {
case TYPE_FUNCTION:
}
}
-void print_type(type_t *type)
+void print_type(const type_t *const type)
{
print_type_ext(type, NULL, NULL);
}
-void print_type_ext(type_t *type, const symbol_t *symbol,
+void print_type_ext(const type_t *const type, const symbol_t *symbol,
const context_t *context)
{
if(type == NULL) {
void init_types(void);
void exit_types(void);
-void print_type(type_t *type);
+void print_type(const type_t *type);
/**
* prints a human readable form of @p type. prints an abstract typename
* if symbol is NULL
*/
-void print_type_ext(type_t *type, const symbol_t *symbol,
+void print_type_ext(const type_t *type, const symbol_t *symbol,
const context_t *context);
void print_type_qualifiers(unsigned qualifiers);