+ intern_print_type_post(type, true);
+ }
+}
+
+/**
+ * Return the size of a type AST node.
+ *
+ * @param type The type.
+ */
+static size_t get_type_size(const type_t *type)
+{
+ switch(type->kind) {
+ case TYPE_ATOMIC: return sizeof(atomic_type_t);
+ case TYPE_COMPOUND_STRUCT:
+ case TYPE_COMPOUND_UNION: return sizeof(compound_type_t);
+ case TYPE_ENUM: return sizeof(enum_type_t);
+ case TYPE_FUNCTION: return sizeof(function_type_t);
+ case TYPE_POINTER: return sizeof(pointer_type_t);
+ case TYPE_ARRAY: return sizeof(array_type_t);
+ case TYPE_BUILTIN: return sizeof(builtin_type_t);
+ case TYPE_TYPEDEF: return sizeof(typedef_type_t);
+ case TYPE_TYPEOF: return sizeof(typeof_type_t);
+ case TYPE_BITFIELD: return sizeof(bitfield_type_t);
+ case TYPE_ERROR: panic("error type found");
+ case TYPE_INVALID: panic("invalid type found");