You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2001/06/22 18:26:03 UTC
cvs commit: xml-xerces/c/src/validators/datatype BooleanDatatypeValidator.cpp
peiyongz 01/06/22 09:26:03
Modified: c/src/validators/datatype BooleanDatatypeValidator.cpp
Log:
fix: redefinition of SIZE
Revision Changes Path
1.6 +6 -3 xml-xerces/c/src/validators/datatype/BooleanDatatypeValidator.cpp
Index: BooleanDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/BooleanDatatypeValidator.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BooleanDatatypeValidator.cpp 2001/05/29 19:49:33 1.5
+++ BooleanDatatypeValidator.cpp 2001/06/22 16:26:01 1.6
@@ -56,6 +56,9 @@
/*
* $Log: BooleanDatatypeValidator.cpp,v $
+ * Revision 1.6 2001/06/22 16:26:01 peiyongz
+ * fix: redefinition of SIZE
+ *
* Revision 1.5 2001/05/29 19:49:33 tng
* Schema: Constraint Checking Fix in datatypeValidators. By Pei Yong Zhang.
*
@@ -81,7 +84,7 @@
#include <validators/datatype/InvalidDatatypeFacetException.hpp>
#include <validators/datatype/InvalidDatatypeValueException.hpp>
-const int SIZE = 4;
+const int ARRAYSIZE = 4;
const XMLCh fgValueSpace[][32] =
{
{ chLatin_f, chLatin_a, chLatin_l, chLatin_s, chLatin_e, chNull },
@@ -171,13 +174,13 @@
return;
int i = 0;
- for ( ; i < SIZE; i++ )
+ for ( ; i < ARRAYSIZE; i++ )
{
if ( XMLString::compareString(content, fgValueSpace[i]) ==0 )
break;
}
- if (i == SIZE)
+ if (i == ARRAYSIZE)
ThrowXML(InvalidDatatypeValueException, XMLExcepts::CM_UnaryOpHadBinType);
//Not valid boolean type
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org