OSSP CVS Repository

ossp - Check-in [4588]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4588
Date: 2004-May-28 00:02:29 (local)
2004-May-27 22:02:29 (UTC)
User:ms
Branch:
Comment: The type representing 64 bit variables on most architectures is 'long long', and because this is not specified in ISO C** (14882) remove all references.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_gui.h      1.81 -> 1.82     6 inserted, 23 deleted

ossp-pkg/as/as-gui/as_gui.h 1.81 -> 1.82

--- as_gui.h     2004/05/27 21:48:41     1.81
+++ as_gui.h     2004/05/27 22:02:29     1.82
@@ -92,40 +92,23 @@
 ?==Error: Undefined 32 bit type
 #endif // U32
 
-#if (SIZEOF_SHORT == 8)
-typedef unsigned short       U64;
-#elif (SIZEOF_INT == 8)
-typedef unsigned int         U64;
-#elif (SIZEOF_LONG == 8)
-typedef unsigned long        U64;
-#else
-?==Error: Undefined 64 bit type
-#endif // U64
-
 #else // HAVE_CONFIG_H (not defined)
 typedef unsigned char        U8;
-#if (4 == 8)
-typedef unsigned int         U64;
-#elif (4 == 8)
-typedef unsigned long        U64;
-#else
-?==Error: Undefined 64 bit type
-#endif
 
-#if (4 == 2)
-typedef unsigned int         U16;
-#elif (2 == 2)
+#if (2 == 2)
 typedef unsigned short       U16;
+#elif (4 == 2)
+typedef unsigned int         U16;
 #else
 ?==Error: Undefined 16 bit type
 #endif
 
-#if (4 == 4)
+#if (2 == 4)
+typedef unsigned short       U32;
+#elif (4 == 4)
 typedef unsigned int         U32;
 #elif (4 == 4)
 typedef unsigned long        U32;
-#elif (2 == 4)
-typedef unsigned short       U32;
 #else
 ?== Error: Undefined 32 bit type
 #endif

CVSTrac 2.0.1