You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/01/10 18:50:24 UTC
DO NOT REPLY [Bug 5786] -
Unexpected Schema errors
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5786>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5786
Unexpected Schema errors
knoaman@ca.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From knoaman@ca.ibm.com 2002-01-10 09:50 -------
Fix is in CVS. FYI here is the diff:
Index: ValueVectorOf.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/ValueVectorOf.hpp,v
retrieving revision 1.5
diff -r1.5 ValueVectorOf.hpp
115c115
< bool containsElement(const TElem& toCheck);
---
> bool containsElement(const TElem& toCheck, const unsigned int startIndex =
0);
Index: ValueVectorOf.c
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/ValueVectorOf.c,v
retrieving revision 1.4
diff -r1.4 ValueVectorOf.c
210c210,211
< bool ValueVectorOf<TElem>::containsElement(const TElem& toCheck) {
---
> bool ValueVectorOf<TElem>::containsElement(const TElem& toCheck,
> const unsigned int startIndex) {
212c213
< for (unsigned int i = 0; i < fCurCount; i++) {
---
> for (unsigned int i = startIndex; i < fCurCount; i++) {
Index: TraverseSchema.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/schema/TraverseSchema.hpp,v
retrieving revision 1.29
diff -r1.29 TraverseSchema.hpp
780c780
< int fScopeCount;
---
> int fScopeCount;
781a782
> unsigned int fCircularCheckIndex;
Index: TraverseSchema.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/schema/TraverseSchema.cpp,v
retrieving revision 1.74
diff -r1.74 TraverseSchema.cpp
192a193
> , fCircularCheckIndex(0)
1115a1117
> unsigned int previousCircularCheckIndex = fCircularCheckIndex;
1212a1215
> fCircularCheckIndex = previousCircularCheckIndex;
5395a5399,5400
> fCircularCheckIndex = fCurrentTypeNameStack->size();
>
5620c5625
<
fCurrentTypeNameStack->containsElement(fStringPool->addOrFind(fullBaseName))) {
---
>
fCurrentTypeNameStack->containsElement(fStringPool->addOrFind(fullBaseName),
fCircularCheckIndex)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org