ast2firm: Implement casting from complex to real types.
[cparser] / types.h
diff --git a/types.h b/types.h
index 04288df..7af9b93 100644 (file)
--- a/types.h
+++ b/types.h
@@ -1,21 +1,6 @@
 /*
  * This file is part of cparser.
- * Copyright (C) 2007-2008 Matthias Braun <matze@braunis.de>
- *
- * 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.
+ * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
  */
 #ifndef TYPES_H
 #define TYPES_H
@@ -43,16 +28,27 @@ extern type_t *type_unsigned_long;
 extern type_t *type_void;
 
 extern type_t *type_char_ptr;
+extern type_t *type_char_ptr_restrict;
 extern type_t *type_const_char_ptr;
+extern type_t *type_const_char_ptr_restrict;
 extern type_t *type_int_ptr;
 extern type_t *type_long_long_ptr;
 extern type_t *type_long_ptr;
+extern type_t *type_unsigned_long_ptr;
 extern type_t *type_short_ptr;
 extern type_t *type_signed_char_ptr;
 extern type_t *type_void_ptr;
+extern type_t *type_const_void;
+extern type_t *type_const_void_ptr;
+extern type_t *type_void_ptr_restrict;
+extern type_t *type_const_void_ptr_restrict;
 
 extern type_t *type_char_ptr_ptr;
 
+extern type_t *type_char16_t;
+extern type_t *type_char32_t;
+extern type_t *type_char16_t_const;
+extern type_t *type_char32_t_const;
 extern type_t *type_intmax_t;
 extern type_t *type_ptrdiff_t;
 extern type_t *type_size_t;
@@ -63,13 +59,21 @@ 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_int32_t;
+extern type_t *type_int64_t;
 
+extern type_t *type_char16_t_ptr;
+extern type_t *type_char32_t_ptr;
+extern type_t *type_char16_t_const_ptr;
+extern type_t *type_char32_t_const_ptr;
 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;
 
+extern type_t *type_valist;
+
 /* microsoft types */
 extern atomic_type_kind_t int8_type_kind;
 extern atomic_type_kind_t int16_type_kind;
@@ -86,6 +90,7 @@ extern type_t *type_int8;
 extern type_t *type_int16;
 extern type_t *type_int32;
 extern type_t *type_int64;
+extern type_t *type_int64_ptr;
 extern type_t *type_int128;
 extern type_t *type_unsigned_int8;
 extern type_t *type_unsigned_int16;
@@ -94,6 +99,6 @@ extern type_t *type_unsigned_int64;
 extern type_t *type_unsigned_int128;
 
 void init_basic_types(void);
-void init_builtin_types(void);
+void init_wchar_types(atomic_type_kind_t wchar_akind);
 
 #endif