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 2004/04/23 23:20:40 UTC
cvs commit: xml-xerces/c/src/xercesc/internal ElemStack.cpp ElemStack.hpp
peiyongz 2004/04/23 14:20:40
Modified: c/src/xercesc/internal ElemStack.cpp ElemStack.hpp
Log:
fCommentOrPISeen to keep track if any comment or PI seen for the current
element
Revision Changes Path
1.11 +5 -0 xml-xerces/c/src/xercesc/internal/ElemStack.cpp
Index: ElemStack.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/ElemStack.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ElemStack.cpp 17 Dec 2003 00:18:34 -0000 1.10
+++ ElemStack.cpp 23 Apr 2004 21:20:40 -0000 1.11
@@ -56,6 +56,10 @@
/*
* $Log$
+ * Revision 1.11 2004/04/23 21:20:40 peiyongz
+ * fCommentOrPISeen to keep track if any comment or PI seen for the current
+ * element
+ *
* Revision 1.10 2003/12/17 00:18:34 cargilld
* Update to memory management so that the static memory manager (one used to call Initialize) is only for static data.
*
@@ -235,6 +239,7 @@
fStack[fStackTop]->fChildCount = 0;
fStack[fStackTop]->fMapCount = 0;
fStack[fStackTop]->fValidationFlag = false;
+ fStack[fStackTop]->fCommentOrPISeen = false;
fStack[fStackTop]->fCurrentURI = fUnknownNamespaceId;
fStack[fStackTop]->fCurrentScope = Grammar::TOP_LEVEL_SCOPE;
fStack[fStackTop]->fCurrentGrammar = 0;
@@ -269,6 +274,7 @@
fStack[fStackTop]->fChildCount = 0;
fStack[fStackTop]->fMapCount = 0;
fStack[fStackTop]->fValidationFlag = false;
+ fStack[fStackTop]->fCommentOrPISeen = false;
fStack[fStackTop]->fCurrentURI = fUnknownNamespaceId;
fStack[fStackTop]->fCurrentScope = Grammar::TOP_LEVEL_SCOPE;
fStack[fStackTop]->fCurrentGrammar = 0;
1.8 +18 -0 xml-xerces/c/src/xercesc/internal/ElemStack.hpp
Index: ElemStack.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/ElemStack.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ElemStack.hpp 22 Oct 2003 20:22:30 -0000 1.7
+++ ElemStack.hpp 23 Apr 2004 21:20:40 -0000 1.8
@@ -56,6 +56,10 @@
/*
* $Log$
+ * Revision 1.8 2004/04/23 21:20:40 peiyongz
+ * fCommentOrPISeen to keep track if any comment or PI seen for the current
+ * element
+ *
* Revision 1.7 2003/10/22 20:22:30 knoaman
* Prepare for annotation support.
*
@@ -208,6 +212,7 @@
unsigned int fMapCount;
bool fValidationFlag;
+ bool fCommentOrPISeen;
int fCurrentScope;
Grammar* fCurrentGrammar;
unsigned int fCurrentURI;
@@ -245,6 +250,9 @@
void setValidationFlag(bool validationFlag);
bool getValidationFlag();
+ inline void setCommentOrPISeen();
+ inline bool getCommentOrPISeen() const;
+
void setCurrentScope(int currentScope);
int getCurrentScope();
@@ -545,6 +553,17 @@
inline void ElemStack::setValidationFlag(bool validationFlag)
{
fStack[fStackTop-1]->fValidationFlag = validationFlag;
+ return;
+}
+
+inline bool ElemStack::getCommentOrPISeen() const
+{
+ return fStack[fStackTop-1]->fCommentOrPISeen;
+}
+
+inline void ElemStack::setCommentOrPISeen()
+{
+ fStack[fStackTop-1]->fCommentOrPISeen = true;
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org