You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/01/25 18:13:05 UTC
cvs commit: xml-xalan/c/src/XalanSourceTree XalanSourceTreeAttributesVector.cpp XalanSourceTreeContentHandler.cpp XalanSourceTreeDocument.cpp
dbertoni 01/01/25 09:13:04
Modified: c/src/XalanSourceTree XalanSourceTreeAttributesVector.cpp
XalanSourceTreeContentHandler.cpp
XalanSourceTreeDocument.cpp
Log:
Changes for Solaris port.
Revision Changes Path
1.3 +1 -1 xml-xalan/c/src/XalanSourceTree/XalanSourceTreeAttributesVector.cpp
Index: XalanSourceTreeAttributesVector.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanSourceTree/XalanSourceTreeAttributesVector.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanSourceTreeAttributesVector.cpp 2000/12/17 22:26:58 1.2
+++ XalanSourceTreeAttributesVector.cpp 2001/01/25 17:13:00 1.3
@@ -128,7 +128,7 @@
ListEntryType& theNewEntry = m_list.back();
// Resize the vector to the appropriate size...
- theNewEntry.second.resize(theBlockSize, 0);
+ theNewEntry.second.resize(theBlockSize, VectorType::value_type(0));
// Set the number of free spaces accordingly...
theNewEntry.first = theBlockSize - theCount;
1.5 +1 -1 xml-xalan/c/src/XalanSourceTree/XalanSourceTreeContentHandler.cpp
Index: XalanSourceTreeContentHandler.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanSourceTree/XalanSourceTreeContentHandler.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XalanSourceTreeContentHandler.cpp 2001/01/16 02:52:35 1.4
+++ XalanSourceTreeContentHandler.cpp 2001/01/25 17:13:01 1.5
@@ -302,7 +302,7 @@
// Push a dummy value for the current element, so we
// don't have to check for an empty stack in endElement().
- m_elementStack.push_back(0);
+ m_elementStack.push_back(ElementStackType::value_type(0));
}
1.8 +26 -26 xml-xalan/c/src/XalanSourceTree/XalanSourceTreeDocument.cpp
Index: XalanSourceTreeDocument.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanSourceTree/XalanSourceTreeDocument.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XalanSourceTreeDocument.cpp 2001/01/18 22:34:30 1.7
+++ XalanSourceTreeDocument.cpp 2001/01/25 17:13:01 1.8
@@ -737,6 +737,32 @@
+inline const XalanDOMString&
+XalanSourceTreeDocument::getTextNodeString(
+ const XalanDOMChar* chars,
+ unsigned int length)
+{
+ if (m_poolAllText == true)
+ {
+ return m_stringPool.get(chars, length);
+ }
+ else
+ {
+ const StringCollectionType::iterator theIterator =
+ m_nonPooledStrings.insert(m_nonPooledStrings.end(), XalanDOMString());
+
+ XalanDOMString& theString = *theIterator;
+
+ assign(theString, chars, length);
+
+ assert(length == ::length(theString));
+
+ return theString;
+ }
+}
+
+
+
XalanSourceTreeText*
XalanSourceTreeDocument::createTextNode(
const XalanDOMChar* chars,
@@ -1009,32 +1035,6 @@
c_wstr(theAttributeVector[i]->getValue()),
theOwnerElement));
}
- }
-}
-
-
-
-inline const XalanDOMString&
-XalanSourceTreeDocument::getTextNodeString(
- const XalanDOMChar* chars,
- unsigned int length)
-{
- if (m_poolAllText == true)
- {
- return m_stringPool.get(chars, length);
- }
- else
- {
- const StringCollectionType::iterator theIterator =
- m_nonPooledStrings.insert(m_nonPooledStrings.end(), XalanDOMString());
-
- XalanDOMString& theString = *theIterator;
-
- assign(theString, chars, length);
-
- assert(length == ::length(theString));
-
- return theString;
}
}