- implemented -Wsign-compare
[cparser] / type_t.h
index 62a0e49..d6131d5 100644 (file)
--- a/type_t.h
+++ b/type_t.h
@@ -16,6 +16,7 @@ extern struct obstack *type_obst;
 
 typedef enum {
        TYPE_INVALID,
+       TYPE_ERROR,
        TYPE_ATOMIC,
        TYPE_COMPOUND_STRUCT,
        TYPE_COMPOUND_UNION,
@@ -166,7 +167,7 @@ union type_t {
 type_t *make_atomic_type(atomic_type_kind_t type, type_qualifiers_t qualifiers);
 type_t *make_pointer_type(type_t *points_to, type_qualifiers_t qualifiers);
 
-type_t *duplicate_type(type_t *type);
+type_t *duplicate_type(const type_t *type);
 
 static inline bool is_typeref(const type_t *type)
 {