]> git.samba.org - tpot/pegasus/.git/commitdiff
BUG#: 4012
authorkumpf <kumpf>
Tue, 9 Aug 2005 21:20:05 +0000 (21:20 +0000)
committerkumpf <kumpf>
Tue, 9 Aug 2005 21:20:05 +0000 (21:20 +0000)
TITLE: CMPIUint32 and CMPISint32 datatypes defined as a 64-bit value on some 64-bit systems
DESCRIPTION: Use ints instead of longs for 32-bit integers to be consistent with the Pegasus definitions.

src/Pegasus/Provider/CMPI/CmpiArray.h
src/Pegasus/Provider/CMPI/CmpiData.h
src/Pegasus/Provider/CMPI/CmpiImpl.cpp
src/Pegasus/Provider/CMPI/cmpidt.h

index e1577438210e307594c9fd5dd1be727628b5f4d9..ec0e9b6e844572aab8fea4ddbae6d1b2882e33aa 100644 (file)
@@ -83,9 +83,6 @@ public:
    /** Extracting signed 32 bit.
    */
    operator CMPISint32() const;
-   /** Extracting signed 32 bit.
-   */
-   operator int() const;
    /** Extracting signed 64 bit.
    */
    operator CMPISint64() const;
@@ -99,9 +96,6 @@ public:
    /** Extracting unsigned 32 bit.
    */
    operator CMPIUint32() const;
-   /** Extracting unsigned 32 bit.
-   */
-   operator unsigned int() const;
    /** Extracting unsigned 64 bit.
    */
    operator CMPIUint64() const;
index c911c8aa1f569e895b77e710d834f54c2d617f1f..b25202daf626ce4df2a73f78acdef18bf9baa3fa 100644 (file)
@@ -87,43 +87,35 @@ public:
    */
    CmpiData();
 
-   /** Constructor - singed 8 bit as input.
+   /** Constructor - signed 8 bit as input.
    */
    CmpiData(CMPISint8 d);
 
-   /** Constructor - singed 16 bit as input.
+   /** Constructor - signed 16 bit as input.
    */
    CmpiData(CMPISint16 d);
 
-   /** Constructor - singed 32 bit as input.
+   /** Constructor - signed 32 bit as input.
    */
    CmpiData(CMPISint32 d);
 
-   /** Constructor - singed 32 bit as input.
-   */
-   CmpiData(int d);
-
-   /** Constructor - singed 64 bit as input.
+   /** Constructor - signed 64 bit as input.
    */
    CmpiData(CMPISint64 d);
 
-   /** Constructor - unsinged 8 bit as input.
+   /** Constructor - unsigned 8 bit as input.
    */
    CmpiData(CMPIUint8 d);
 
-   /** Constructor - unsinged 16 bit as input.
+   /** Constructor - unsigned 16 bit as input.
    */
    CmpiData(CMPIUint16 d);
 
-   /** Constructor - unsinged 32 bit as input.
+   /** Constructor - unsigned 32 bit as input.
    */
    CmpiData(CMPIUint32 d);
 
-   /** Constructor - unsinged 32 bit as input.
-   */
-   CmpiData(unsigned int d);
-
-   /** Constructor - unsinged 64 bit as input.
+   /** Constructor - unsigned 64 bit as input.
    */
    CmpiData(CMPIUint64 d);
 
@@ -179,10 +171,6 @@ public:
    */
    operator CMPISint32() const;
 
-   /** Extracting signed 32 bit.
-   */
-   operator int() const;
-
    /** Extracting signed 64 bit.
    */
    operator CMPISint64() const;
@@ -199,10 +187,6 @@ public:
    */
    operator CMPIUint32() const;
 
-   /** Extracting unsigned 32 bit.
-   */
-   operator unsigned int() const;
-
    /** Extracting unsigned 64 bit.
    */
    operator CMPIUint64() const;
index bb8a96e52a0d7f90bf1280761acb6cbd7ad54e68..2db7fd7debfdc6c90cd7c898e2a8e6f8b4a54756 100644 (file)
@@ -912,12 +912,6 @@ CmpiData::CmpiData(CMPISint32 d) {
    _data.type=CMPI_sint32;
 }
 
-CmpiData::CmpiData(int d) {
-   _data.state=CMPI_goodValue;
-   _data.value.sint32=d;
-   _data.type=CMPI_sint32;
-}
-
 CmpiData::CmpiData(CMPISint64 d) {
    _data.state=CMPI_goodValue;
    _data.value.sint64=d;
@@ -942,12 +936,6 @@ CmpiData::CmpiData(CMPIUint32 d) {
    _data.type=CMPI_uint32;
 }
 
-CmpiData::CmpiData(unsigned int d) {
-   _data.state=CMPI_goodValue;
-   _data.value.sint32=d;
-   _data.type=CMPI_uint32;
-}
-
 CmpiData::CmpiData(CMPIUint64 d) {
    _data.state=CMPI_goodValue;
    _data.value.sint64=d;
@@ -1030,12 +1018,6 @@ CmpiData::operator CMPISint32() const {
    else
       return _data.value.sint32;
 }
-CmpiData::operator int() const {
-   if (_data.type!=CMPI_sint32)
-      throw CmpiStatus(CMPI_RC_ERR_TYPE_MISMATCH);
-   else
-      return _data.value.sint32;
-}
 
 CmpiData::operator CMPISint64() const {
    if (_data.type!=CMPI_sint64)
@@ -1069,13 +1051,6 @@ CmpiData::operator CMPIUint32() const {
       return _data.value.uint32;
 }
 
-CmpiData::operator unsigned int() const {
-   if (_data.type!=CMPI_uint32)
-      throw CmpiStatus(CMPI_RC_ERR_TYPE_MISMATCH);
-   else
-      return _data.value.uint32;
-}
-
 CmpiData::operator CMPIUint64() const {
    if (_data.type!=CMPI_uint64)
       throw CmpiStatus(CMPI_RC_ERR_TYPE_MISMATCH);
index 72152afc6956d66f72321cdbcb3b259b2ee0f55c..aedbe99fd56ff2edb34b6048e41ec8c13b3da10a 100644 (file)
@@ -201,7 +201,7 @@ extern "C" {
    typedef unsigned short             CMPIChar16;
    typedef unsigned char              CMPIUint8;
    typedef unsigned short             CMPIUint16;
-   typedef unsigned long              CMPIUint32;
+   typedef unsigned int               CMPIUint32;
 #ifndef CMPI_PLATFORM_WIN32_IX86_MSVC
    typedef unsigned long long         CMPIUint64;
 #else
@@ -209,7 +209,7 @@ extern "C" {
 #endif
    typedef signed char                CMPISint8;
    typedef short                      CMPISint16;
-   typedef long                       CMPISint32;
+   typedef signed int                 CMPISint32;
 #ifndef CMPI_PLATFORM_WIN32_IX86_MSVC
    typedef long long                  CMPISint64;
 #else