add option -Wreturn-type
[cparser] / types.h
diff --git a/types.h b/types.h
index b51501e..9ca2b5a 100644 (file)
--- a/types.h
+++ b/types.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
 #ifndef TYPES_H
 #define TYPES_H
 
@@ -36,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;
@@ -43,6 +63,29 @@ extern type_t *type_ptrdiff_t_ptr;
 extern type_t *type_ssize_t_ptr;
 extern type_t *type_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);
 
 #endif