X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=type_t.h;h=d6131d5470bc2b438863a72f39f3fb2c254293a0;hb=de647e08ed8df756b8b7acb6b1a26df8e91a2921;hp=62a0e49aa72d6a037b2ea856ac05967785cfb2ca;hpb=220bd1d88703eede6a4891f3014708c8259b303e;p=cparser diff --git a/type_t.h b/type_t.h index 62a0e49..d6131d5 100644 --- 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) {