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 2002/03/09 07:53:43 UTC
cvs commit: xml-xalan/c/src/PlatformSupport AttributesImpl.cpp AttributesImpl.hpp
dbertoni 02/03/08 22:53:43
Modified: c/src/PlatformSupport AttributesImpl.cpp AttributesImpl.hpp
Log:
Moved some stuff into header files for xlC 3.6.6 and explicit instantiation.
Revision Changes Path
1.6 +13 -7 xml-xalan/c/src/PlatformSupport/AttributesImpl.cpp
Index: AttributesImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/AttributesImpl.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- AttributesImpl.cpp 9 Mar 2002 06:28:35 -0000 1.5
+++ AttributesImpl.cpp 9 Mar 2002 06:53:43 -0000 1.6
@@ -286,6 +286,19 @@
+#if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
+bool
+AttributesImpl::NameCompareFunctor::operator()(const AttributeVectorEntryExtended* theEntry) const
+{
+ return equals(&*theEntry->m_Name.begin(), m_qname);
+}
+
+bool
+AttributesImpl::URIAndLocalNameCompareFunctor::operator()(const AttributeVectorEntryExtended* theEntry) const
+{
+ return equals(&*theEntry->m_uri.begin(), m_uri) && equals(&*theEntry->m_localName.begin(), m_localName) ;
+}
+#else
struct NameCompareFunctor
{
NameCompareFunctor(const XMLCh* theQName) :
@@ -306,13 +319,6 @@
-#if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
-bool
-AttributesImpl::URIAndLocalNameCompareFunctor::operator()(const AttributeVectorEntryExtended* theEntry) const
-{
- return equals(&*theEntry->m_uri.begin(), m_uri) && equals(&*theEntry->m_localName.begin(), m_localName) ;
-}
-#else
struct URIAndLocalNameCompareFunctor
{
URIAndLocalNameCompareFunctor(
1.5 +15 -0 xml-xalan/c/src/PlatformSupport/AttributesImpl.hpp
Index: AttributesImpl.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/AttributesImpl.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AttributesImpl.hpp 9 Mar 2002 06:28:35 -0000 1.4
+++ AttributesImpl.hpp 9 Mar 2002 06:53:43 -0000 1.5
@@ -225,6 +225,21 @@
#endif
#if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
+ struct NameCompareFunctor
+ {
+ NameCompareFunctor(const XMLCh* theQName) :
+ m_qname(theQName)
+ {
+ }
+
+ bool
+ operator()(const AttributeVectorEntryExtended* theEntry) const;
+
+ private:
+
+ const XMLCh* const m_qname;
+ };
+
struct URIAndLocalNameCompareFunctor
{
URIAndLocalNameCompareFunctor(
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org