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:28 UTC
cvs commit: xml-xerces/c/src/util/regx BlockRangeFactory.cpp
peiyongz 01/06/22 09:26:28
Modified: c/src/util/regx BlockRangeFactory.cpp
Log:
fix: redefinition of SIZE
Revision Changes Path
1.4 +7 -4 xml-xerces/c/src/util/regx/BlockRangeFactory.cpp
Index: BlockRangeFactory.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/regx/BlockRangeFactory.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BlockRangeFactory.cpp 2001/05/11 13:26:40 1.3
+++ BlockRangeFactory.cpp 2001/06/22 16:26:27 1.4
@@ -56,6 +56,9 @@
/*
* $Log: BlockRangeFactory.cpp,v $
+ * Revision 1.4 2001/06/22 16:26:27 peiyongz
+ * fix: redefinition of SIZE
+ *
* Revision 1.3 2001/05/11 13:26:40 tng
* Copyright update.
*
@@ -99,8 +102,8 @@
// ---------------------------------------------------------------------------
// Local static data
// ---------------------------------------------------------------------------
-const int SIZE = 68;
-const XMLCh fgBlockNames[][SIZE] =
+const int BLOCKNAMESIZE = 68;
+const XMLCh fgBlockNames[][BLOCKNAMESIZE] =
{
{ chLatin_B, chLatin_a, chLatin_s, chLatin_i, chLatin_c, chSpace, chLatin_L, chLatin_a,
chLatin_t, chLatin_i, chLatin_n, chNull },
@@ -317,7 +320,7 @@
RangeTokenMap* rangeTokMap = RangeTokenMap::instance();
TokenFactory* tokFactory = rangeTokMap->getTokenFactory();
- for (int i=0; i < SIZE; i++) {
+ for (int i=0; i < BLOCKNAMESIZE; i++) {
RangeToken* tok = tokFactory->createRange();
tok->addRange(blockRanges[i*2], blockRanges[(i*2)+1]);
@@ -342,7 +345,7 @@
RangeTokenMap* rangeTokMap = RangeTokenMap::instance();
- for (int i=0; i< SIZE; i++) {
+ for (int i=0; i< BLOCKNAMESIZE; i++) {
rangeTokMap->addKeywordMap(fgBlockNames[i], fgBlockCategory);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org