add type_unsigned_short
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 21:21:53 +0000 (21:21 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 21:21:53 +0000 (21:21 +0000)
[r21597]

types.c
types.h

diff --git a/types.c b/types.c
index 9057e47..1f06895 100644 (file)
--- a/types.c
+++ b/types.c
@@ -33,6 +33,7 @@ type_t *type_long_double;
 type_t *type_long_long;
 type_t *type_long;
 type_t *type_short;
+type_t *type_unsigned_short;
 type_t *type_signed_char;
 type_t *type_unsigned_int;
 type_t *type_unsigned_long_long;
@@ -97,6 +98,7 @@ void init_basic_types(void)
        type_error_type         = (type_t*)&error;
        type_signed_char        = make_atomic_type(ATOMIC_TYPE_SCHAR,       TYPE_QUALIFIER_NONE);
        type_short              = make_atomic_type(ATOMIC_TYPE_SHORT,       TYPE_QUALIFIER_NONE);
+       type_unsigned_short     = make_atomic_type(ATOMIC_TYPE_USHORT,      TYPE_QUALIFIER_NONE);
        type_int                = make_atomic_type(ATOMIC_TYPE_INT,         TYPE_QUALIFIER_NONE);
        type_unsigned_int       = make_atomic_type(ATOMIC_TYPE_UINT,        TYPE_QUALIFIER_NONE);
        type_long               = make_atomic_type(ATOMIC_TYPE_LONG,        TYPE_QUALIFIER_NONE);
diff --git a/types.h b/types.h
index ddb8d41..b7ebfd3 100644 (file)
--- a/types.h
+++ b/types.h
@@ -33,6 +33,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;