X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=types.h;h=4db82f3a67d879a593c82fc2d6162f2e65987e96;hb=a25daef22bc375bea28f7c8965c69edec5679e84;hp=b51501e4cd1b4cbba0cadf5e111c0696f8b10c9f;hpb=877060fa4a4bb34e2b21c184bf5a7aca28f8abae;p=cparser diff --git a/types.h b/types.h index b51501e..4db82f3 100644 --- a/types.h +++ b/types.h @@ -1,3 +1,22 @@ +/* + * This file is part of cparser. + * Copyright (C) 2007-2008 Matthias Braun + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ #ifndef TYPES_H #define TYPES_H @@ -5,7 +24,9 @@ extern type_t *type_error_type; +extern type_t *type_bool; extern type_t *type_char; +extern type_t *type_const_char; extern type_t *type_double; extern type_t *type_float; extern type_t *type_int; @@ -13,6 +34,7 @@ extern type_t *type_long_double; extern type_t *type_long_long; extern type_t *type_long; extern type_t *type_short; +extern type_t *type_unsigned_short; extern type_t *type_signed_char; extern type_t *type_unsigned_int; extern type_t *type_unsigned_long_long; @@ -20,6 +42,7 @@ extern type_t *type_unsigned_long; extern type_t *type_void; extern type_t *type_char_ptr; +extern type_t *type_const_char_ptr; extern type_t *type_int_ptr; extern type_t *type_long_long_ptr; extern type_t *type_long_ptr; @@ -36,13 +59,40 @@ extern type_t *type_ssize_t; extern type_t *type_uintmax_t; extern type_t *type_uptrdiff_t; extern type_t *type_wchar_t; +extern type_t *type_const_wchar_t; +extern type_t *type_wchar_ptr_t; extern type_t *type_wint_t; extern type_t *type_intmax_t_ptr; extern type_t *type_ptrdiff_t_ptr; extern type_t *type_ssize_t_ptr; extern type_t *type_wchar_t_ptr; +extern type_t *type_const_wchar_t_ptr; + +/* microsoft types */ +extern atomic_type_kind_t int8_type_kind; +extern atomic_type_kind_t int16_type_kind; +extern atomic_type_kind_t int32_type_kind; +extern atomic_type_kind_t int64_type_kind; +extern atomic_type_kind_t int128_type_kind; +extern atomic_type_kind_t unsigned_int8_type_kind; +extern atomic_type_kind_t unsigned_int16_type_kind; +extern atomic_type_kind_t unsigned_int32_type_kind; +extern atomic_type_kind_t unsigned_int64_type_kind; +extern atomic_type_kind_t unsigned_int128_type_kind; + +extern type_t *type_int8; +extern type_t *type_int16; +extern type_t *type_int32; +extern type_t *type_int64; +extern type_t *type_int128; +extern type_t *type_unsigned_int8; +extern type_t *type_unsigned_int16; +extern type_t *type_unsigned_int32; +extern type_t *type_unsigned_int64; +extern type_t *type_unsigned_int128; void init_basic_types(void); +void init_builtin_types(void); #endif