X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=types.c;h=586b95ba2f4614af3dd392701b8240e89ab7c761;hb=b63886b188eeedf36d8df12df3fe1f5fd90818d4;hp=1f34936ceb051e1ede13adfa30f9b8c0096b939e;hpb=c2564629583b7a0969aa0102d628f065b1ed66d3;p=cparser diff --git a/types.c b/types.c index 1f34936..586b95b 100644 --- a/types.c +++ b/types.c @@ -20,6 +20,7 @@ #include "type_t.h" #include "types.h" #include "lang_features.h" +#include "entity_t.h" /** The error type. */ type_t *type_error_type; @@ -146,4 +147,23 @@ void init_basic_types(void) /* const character types */ type_const_char = make_atomic_type(ATOMIC_TYPE_CHAR, TYPE_QUALIFIER_CONST); type_const_char_ptr = make_pointer_type(type_const_char, TYPE_QUALIFIER_NONE); + + /* other types */ + type_intmax_t = type_long_long; + type_size_t = type_unsigned_long; + type_ssize_t = type_long; + type_ptrdiff_t = type_long; + type_uintmax_t = type_unsigned_long_long; + type_uptrdiff_t = type_unsigned_long; + type_wchar_t = make_atomic_type(wchar_atomic_kind, TYPE_QUALIFIER_NONE); + type_wint_t = type_int; + type_const_wchar_t + = make_atomic_type(wchar_atomic_kind, TYPE_QUALIFIER_CONST); + + type_intmax_t_ptr = make_pointer_type(type_intmax_t, TYPE_QUALIFIER_NONE); + type_ptrdiff_t_ptr = make_pointer_type(type_ptrdiff_t, TYPE_QUALIFIER_NONE); + type_ssize_t_ptr = make_pointer_type(type_ssize_t, TYPE_QUALIFIER_NONE); + type_wchar_t_ptr = make_pointer_type(type_wchar_t, TYPE_QUALIFIER_NONE); + type_const_wchar_t_ptr + = make_pointer_type(type_const_wchar_t, TYPE_QUALIFIER_NONE); }