X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=types.h;h=9ca2b5a00ed680ab0e11c3fea9286914917ed9f0;hb=2379763718d5dbb2abe6b839a6691da085b3e58c;hp=690e683fa8793681b65f36df03c1305a5d853a83;hpb=62c3fec4c8a371167ad7be3b4cd08c563c21e121;p=cparser diff --git a/types.h b/types.h index 690e683..9ca2b5a 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 @@ -14,12 +33,12 @@ extern type_t *type_long_long; extern type_t *type_long; extern type_t *type_short; extern type_t *type_signed_char; -extern type_t *type_string; extern type_t *type_unsigned_int; extern type_t *type_unsigned_long_long; extern type_t *type_unsigned_long; extern type_t *type_void; +extern type_t *type_char_ptr; extern type_t *type_int_ptr; extern type_t *type_long_long_ptr; extern type_t *type_long_ptr; @@ -27,6 +46,8 @@ extern type_t *type_short_ptr; extern type_t *type_signed_char_ptr; extern type_t *type_void_ptr; +extern type_t *type_char_ptr_ptr; + extern type_t *type_intmax_t; extern type_t *type_ptrdiff_t; extern type_t *type_size_t; @@ -34,6 +55,7 @@ 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_wchar_ptr_t; extern type_t *type_wint_t; extern type_t *type_intmax_t_ptr; @@ -41,8 +63,29 @@ extern type_t *type_ptrdiff_t_ptr; extern type_t *type_ssize_t_ptr; extern type_t *type_wchar_t_ptr; -void init_basic_types(void); +/* 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; -#define is_type_valid(type) ((type)->kind != TYPE_ERROR) +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); #endif