microsoft explicit types added
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 16 Mar 2008 15:41:38 +0000 (15:41 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 16 Mar 2008 15:41:38 +0000 (15:41 +0000)
[r18951]

types.c
types.h

diff --git a/types.c b/types.c
index d8bae8d..6ac6f59 100644 (file)
--- a/types.c
+++ b/types.c
@@ -61,6 +61,16 @@ type_t *type_ptrdiff_t_ptr;
 type_t *type_ssize_t_ptr;
 type_t *type_wchar_t_ptr;
 
+/* microsoft types */
+type_t *type_int8;
+type_t *type_int16;
+type_t *type_int32;
+type_t *type_int64;
+type_t *type_unsigned_int8;
+type_t *type_unsigned_int16;
+type_t *type_unsigned_int32;
+type_t *type_unsigned_int64;
+
 
 void init_basic_types(void)
 {
@@ -81,6 +91,17 @@ void init_basic_types(void)
        type_char               = make_atomic_type(ATOMIC_TYPE_CHAR,        TYPE_QUALIFIER_NONE);
        type_void               = make_atomic_type(ATOMIC_TYPE_VOID,        TYPE_QUALIFIER_NONE);
 
+       /* microsoft types */
+       type_int8               = make_atomic_type(ATOMIC_TYPE_CHAR,        TYPE_QUALIFIER_NONE);
+       type_int16              = make_atomic_type(ATOMIC_TYPE_SHORT,       TYPE_QUALIFIER_NONE);
+       type_int32              = make_atomic_type(ATOMIC_TYPE_INT,         TYPE_QUALIFIER_NONE);
+       type_int64              = make_atomic_type(ATOMIC_TYPE_LONGLONG,    TYPE_QUALIFIER_NONE);
+       type_unsigned_int8      = make_atomic_type(ATOMIC_TYPE_UCHAR,       TYPE_QUALIFIER_NONE);
+       type_unsigned_int16     = make_atomic_type(ATOMIC_TYPE_USHORT,      TYPE_QUALIFIER_NONE);
+       type_unsigned_int32     = make_atomic_type(ATOMIC_TYPE_UINT,        TYPE_QUALIFIER_NONE);
+       type_unsigned_int64     = make_atomic_type(ATOMIC_TYPE_ULONGLONG,   TYPE_QUALIFIER_NONE);
+
+       /* pointer types */
        type_void_ptr           = make_pointer_type(type_void,              TYPE_QUALIFIER_NONE);
        type_char_ptr           = make_pointer_type(type_char,              TYPE_QUALIFIER_NONE);
        type_signed_char_ptr    = make_pointer_type(type_signed_char,       TYPE_QUALIFIER_NONE);
diff --git a/types.h b/types.h
index 2a63f35..1a17572 100644 (file)
--- a/types.h
+++ b/types.h
@@ -63,6 +63,16 @@ extern type_t *type_ptrdiff_t_ptr;
 extern type_t *type_ssize_t_ptr;
 extern type_t *type_wchar_t_ptr;
 
+/* microsoft types */
+extern type_t *type_int8;
+extern type_t *type_int16;
+extern type_t *type_int32;
+extern type_t *type_int64;
+extern type_t *type_unsigned_int8;
+extern type_t *type_unsigned_int16;
+extern type_t *type_unsigned_int32;
+extern type_t *type_unsigned_int64;
+
 void init_basic_types(void);
 
 #endif