(file) Return to XmlReader.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/XmlReader.cpp between version 1.43 and 1.44

version 1.43, 2002/03/21 21:11:19 version 1.44, 2002/03/22 02:40:29
Line 711 
Line 711 
             if (!isxdigit(*p))             if (!isxdigit(*p))
                 return false;                 return false;
  
             // Find the first non-zero digit so we have something to negate  
             while (*p == '0')  
                 p++;  
   
             // If all the digits are zero, the result is zero  
             if (!*p)  
                 return true;  
   
             // Build the Sint64 as a negative number, regardless of the             // Build the Sint64 as a negative number, regardless of the
             // eventual sign (negative numbers can be bigger than positive ones)             // eventual sign (negative numbers can be bigger than positive ones)
             x = -Sint64(_hexCharToNumeric(*p++));  
  
             // Add on each digit, checking for overflow errors             // Add on each digit, checking for overflow errors
             while (isxdigit(*p))             while (isxdigit(*p))
Line 773 
Line 764 
  
     // Build the Sint64 as a negative number, regardless of the     // Build the Sint64 as a negative number, regardless of the
     // eventual sign (negative numbers can be bigger than positive ones)     // eventual sign (negative numbers can be bigger than positive ones)
     x = -(*p++ - '0');  
  
     // Add on each digit, checking for overflow errors     // Add on each digit, checking for overflow errors
     while (isdigit(*p))     while (isdigit(*p))
Line 924 
Line 914 
  
 // The Specification for the Representation of CIM in XML does not indicate // The Specification for the Representation of CIM in XML does not indicate
 // that a default value should be used when a VALUE element is empty. // that a default value should be used when a VALUE element is empty.
 //#if 0  //#if 0  ATTN-RK-P3-20020321: Take this code out when null qualifiers are fixed
     // If strlen == 0, set to default value for type     // If strlen == 0, set to default value for type
  
     if (strlen(valueString)==0)     if (strlen(valueString)==0)
Line 1425 
Line 1415 
     Boolean translatable = getCimBooleanAttribute(     Boolean translatable = getCimBooleanAttribute(
         lineNumber, entry, tagName, "TRANSLATABLE", false, false);         lineNumber, entry, tagName, "TRANSLATABLE", false, false);
  
     // ATTN: KS P1 5 Mar 2002 Should this not be CIMFlavor::DEFAULTS??      // Start with CIMFlavor::NONE.  Defaults are specified in the
     //Uint32 flavor = CIMFlavor::DEFAULTS;      // getCimBooleanAttribute() calls above.
     // ATTN-RK-P1-20020307: No, Karl.  If you initialize to the defaults,  
     // you have to unset the default flavors that don't apply.  The code  
     // below only adds qualifiers.  
     Uint32 flavor = CIMFlavor::NONE;     Uint32 flavor = CIMFlavor::NONE;
  
     if (overridable)     if (overridable)


Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2