type_qualifiers_t qualifiers);
function_parameter_t *allocate_parameter(type_t*);
+/**
+ * Duplicates a type.
+ *
+ * @param type The type to copy.
+ * @return A copy of the type.
+ *
+ * @note This does not produce a deep copy!
+ */
type_t *duplicate_type(const type_t *type);
+
type_t *identify_new_type(type_t *type);
static inline bool is_typeref(const type_t *type)
return atomic_type->akind == atype;
}
+static inline bool is_type_void(type_t const *const type)
+{
+ return is_type_atomic(type, ATOMIC_TYPE_VOID);
+}
+
static inline bool is_type_pointer(const type_t *type)
{
assert(!is_typeref(type));