OSSP CVS Repository

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

Check-in Number: 4004
Date: 2003-Feb-04 20:39:44 (local)
2003-Feb-04 19:39:44 (UTC)
User:ms
Branch:
Comment: Replaced __u format datatypes in Uuid class with U from master header.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_uuid.cpp      1.9 -> 1.10     4 inserted, 2 deleted
ossp-pkg/as/as-gui/as_uuid.h      1.6 -> 1.7     6 inserted, 78 deleted

ossp-pkg/as/as-gui/as_uuid.cpp 1.9 -> 1.10

--- as_uuid.cpp  2003/01/24 19:44:40     1.9
+++ as_uuid.cpp  2003/02/04 19:39:44     1.10
@@ -29,9 +29,11 @@
 //  as_uuid.cpp: ISO C++ implementation
 //
 
+// System headers
 #include <string>
 #include <sys/socket.h>
 
+// Local headers
 #include "as_uuid.h"
 #include "as_rand.h"
 
@@ -80,8 +82,8 @@
 //
 void Uuid::setId(const unsigned char *pkucData)
 {
-    const __u8 *pOctet = pkucData;
-    __u32       Tmpdat;
+    const U8 *pOctet = pkucData;
+    U32       Tmpdat;
 
     Tmpdat = *pOctet++; // Tmpdat is our iterator
 


ossp-pkg/as/as-gui/as_uuid.h 1.6 -> 1.7

--- as_uuid.h    2003/02/03 21:15:16     1.6
+++ as_uuid.h    2003/02/04 19:39:44     1.7
@@ -34,82 +34,10 @@
 
 #include <string>
 
-#ifdef HAVE_CONFIG_H
-#include "ac_config.h"
-#endif
+#include "as_gui.h"
 
 namespace AS {
 
-#ifdef HAVE_CONFIG_H
-#if (SIZEOF_CHAR == 1)
-typedef unsigned char        __u8;
-#else
-?==Error: Undefined 8 bit type
-#endif // __u8
-
-#if (SIZEOF_SHORT == 2)
-typedef unsigned short       __u16;
-#elif (SIZEOF_INT == 2)
-typedef unsigned int         __u16;
-#elif (SIZEOF_LONG == 2)
-typedef unsigned long        __u16;
-#else
-?==Error: Undefined 16 bit type
-#endif // __u16
-
-#if (SIZEOF_SHORT == 4)
-typedef unsigned short       __u32;
-#elif (SIZEOF_INT == 4)
-typedef unsigned int         __u32;
-#elif (SIZEOF_LONG == 4)
-typedef unsigned long        __u32;
-#else
-?==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;
-#elif (SIZEOF_LONG_LONG == 8)
-typedef unsigned long 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;
-#elif (8 == 8)
-typedef unsigned long long   __u64;
-#else
-?==Error: Undefined 64 bit type
-#endif
-
-#if (4 == 2)
-typedef unsigned int         __u16;
-#elif (2 == 2)
-typedef unsigned short       __u16;
-#else
-?==Error: Undefined 16 bit type
-#endif
-
-#if (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
-#endif // HAVE_CONFIG_H
-
 
 //
 // A DCE standard UUID, can generate (multiple)
@@ -119,11 +47,11 @@
 {
 private:
     std::string m_Fmtstr;               // Human readable format
-    __u32   time_low;                   //
-    __u16   time_mid;                   // Fields according to
-    __u16   time_hi_and_version;        // the IETF specification
-    __u16   clock_seq;                  // draft-mealling-uuid-urn-00
-    __u8    node[6];                    //
+    U32 time_low;                       //
+    U16 time_mid;                       // Fields according to
+    U16 time_hi_and_version;            // the IETF specification
+    U16 clock_seq;                      // draft-mealling-uuid-urn-00
+    U8  node[6];                        //
 
 public:
     void genId(void);                   // Generate an UUID

CVSTrac 2.0.1