Prevent name clashes with sys/types.h on system V
authorceriel <none@none>
Mon, 16 Dec 1991 15:24:24 +0000 (15:24 +0000)
committerceriel <none@none>
Mon, 16 Dec 1991 15:24:24 +0000 (15:24 +0000)
12 files changed:
mach/arm/as/mach0.c
mach/i386/as/mach0.c
mach/m68020/as/mach0.c
mach/m68k2/as/mach0.c
mach/ns/as/mach0.c
mach/proto/as/comm0.h
mach/proto/as/comm1.h
mach/proto/as/comm2.y
mach/proto/as/comm4.c
mach/proto/as/comm6.c
mach/vax4/as/mach0.c
mach/z8000/as/mach0.c

index abe7ec4..855541a 100644 (file)
@@ -11,8 +11,8 @@
 #undef valu_t
 #define valu_t         long
 
-#undef addr_t
-#define addr_t long
+#undef ADDR_T
+#define ADDR_T long
 
 #undef word_t
 #define word_t long
index fba472e..0f1b621 100644 (file)
@@ -13,5 +13,5 @@
 
 #undef valu_t
 #define valu_t long
-#undef addr_t
-#define addr_t long
+#undef ADDR_T
+#define ADDR_T long
index b3fd9cc..5a9477a 100644 (file)
@@ -16,8 +16,8 @@
 
 #undef valu_t
 #define        valu_t          long
-#undef addr_t
-#define        addr_t          long
+#undef ADDR_T
+#define        ADDR_T          long
 
 #undef ASC_LPAR
 #define        ASC_LPAR        '{'
index 87dc1db..cc9ea5a 100644 (file)
@@ -19,8 +19,8 @@
 
 #undef valu_t
 #define        valu_t          long
-#undef addr_t
-#define        addr_t          long
+#undef ADDR_T
+#define        ADDR_T          long
 
 #undef ALIGNWORD
 #define        ALIGNWORD       2
index 43a57ef..e24bbcc 100644 (file)
@@ -12,8 +12,8 @@
 
 #undef valu_t
 #define valu_t         long
-#undef addr_t
-#define        addr_t          long
+#undef ADDR_T
+#define        ADDR_T          long
 #undef ALIGNSECT
 #define ALIGNSECT      2
 
index c3ea04d..35d9d6b 100644 (file)
 
 #define        GENLAB          "I"             /* compiler generated labels */
 
-#define        ushort          unsigned short
-
 #define        valu_t          short           /* type of expression values */
-#define        addr_t          ushort          /* type of dot */
+#define        ADDR_T          unsigned short  /* type of dot */
 #define        word_t          short           /* type of keyword value */
 /*
  * NOTE: word_t is introduced to reduce the tokenfile size for machines
@@ -194,15 +192,15 @@ typedef   struct item_t   item_t;
 
 struct sect_t {
        short   s_flag;         /* some flag bits */
-       addr_t  s_base;         /* section base */
-       addr_t  s_size;         /* section size */
-       addr_t  s_comm;         /* length of commons */
-       addr_t  s_zero;         /* delayed emit1(0) */
-       addr_t  s_lign;         /* section alignment */
+       ADDR_T  s_base;         /* section base */
+       ADDR_T  s_size;         /* section size */
+       ADDR_T  s_comm;         /* length of commons */
+       ADDR_T  s_zero;         /* delayed emit1(0) */
+       ADDR_T  s_lign;         /* section alignment */
        long    s_foff;         /* section file offset */
        item_t  *s_item;        /* points to section name */
 #ifdef THREE_PASS
-       addr_t  s_gain;         /* gain in PASS_2 */
+       ADDR_T  s_gain;         /* gain in PASS_2 */
 #endif
 };
 
index 1a222e4..39d7081 100644 (file)
@@ -67,10 +67,10 @@ extern sect_t       sect[SECTMAX];
  * specials for the location counter
  */
 extern sect_t  *DOTSCT;        /* &sect[DOTTYP-S_MIN] or NULL */
-extern addr_t  DOTVAL;         /* DOTSCT->s_size + DOTSCT->s_base */
+extern ADDR_T  DOTVAL;         /* DOTSCT->s_size + DOTSCT->s_base */
 extern short   DOTTYP;         /* S_MIN..S_MAX or S_UND */
 
-extern ushort  nname;          /* Counts name table index in PASS_3 */
+extern unsigned short  nname;          /* Counts name table index in PASS_3 */
 
 extern item_t  *hashtab[H_TOTAL];
 extern short   hashindex;      /* see item_search() */
index 98fc240..1f6428a 100644 (file)
@@ -201,7 +201,7 @@ operation
                                                (short)(
                                                        ($4.typ & (S_EXT|S_TYP))
                                                        |
-                                                       ((ushort)$6<<8)
+                                                       ((unsigned short)$6<<8)
                                                ),
                                                (short)$7,
                                                $4.val
@@ -215,7 +215,7 @@ operation
                                                (short)(
                                                        (DOTTYP & (S_EXT|S_TYP))
                                                        |
-                                                       ((ushort)$4<<8)
+                                                       ((unsigned short)$4<<8)
                                                ),
                                                (short)$6,
                                                (valu_t)DOTVAL
index 2adcfe6..63fff33 100644 (file)
@@ -375,7 +375,7 @@ pass_23(n)
 {
        register i;
 #ifdef ASLD
-       register addr_t base = 0;
+       register ADDR_T base = 0;
 #endif
        register sect_t *sp;
 
index 997b631..7156a10 100644 (file)
@@ -79,7 +79,7 @@ register item_t *ip;
 {
 #if DEBUG != 0
 #ifdef THREE_PASS
-       register addr_t oldval = ip->i_valu;
+       register ADDR_T oldval = ip->i_valu;
 #endif
 #endif
 
index 4fa097b..8cc845a 100644 (file)
@@ -16,8 +16,8 @@
 #define valu_t long
 #undef word_t
 #define word_t long
-#undef addr_t
-#define addr_t long
+#undef ADDR_T
+#define ADDR_T long
 
 #undef ALIGNWORD
 #define ALIGNWORD 4
index 523dcdb..1f3c18a 100644 (file)
@@ -16,5 +16,5 @@
 #define ALIGNSECT      2
 #undef valu_t
 #define valu_t long
-#undef addr_t
-#define addr_t long
+#undef ADDR_T
+#define ADDR_T long