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:28:35 UTC

cvs commit: xml-xalan/c/src/PlatformSupport AttributeListImpl.cpp AttributeListImpl.hpp AttributesImpl.cpp AttributesImpl.hpp

dbertoni    02/03/08 22:28:35

  Modified:    c/src/PlatformSupport AttributeListImpl.cpp
                        AttributeListImpl.hpp AttributesImpl.cpp
                        AttributesImpl.hpp
  Log:
  Moved some stuff into header files for xlC 3.6.6 and explicit instantiation.
  
  Revision  Changes    Path
  1.21      +8 -0      xml-xalan/c/src/PlatformSupport/AttributeListImpl.cpp
  
  Index: AttributeListImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/AttributeListImpl.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- AttributeListImpl.cpp	25 Sep 2001 21:12:51 -0000	1.20
  +++ AttributeListImpl.cpp	9 Mar 2002 06:28:35 -0000	1.21
  @@ -265,6 +265,13 @@
   
   
   
  +#if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
  +bool
  +AttributeListImpl::NameCompareFunctor::operator()(const AttributeVectorEntry*	theEntry) const
  +{
  +	return equals(&*theEntry->m_Name.begin(), m_name);
  +}
  +#else
   struct NameCompareFunctor
   {
   	NameCompareFunctor(const XMLCh*		theName) :
  @@ -282,6 +289,7 @@
   
   	const XMLCh* const	m_name;
   };
  +#endif
   
   
   
  
  
  
  1.16      +17 -0     xml-xalan/c/src/PlatformSupport/AttributeListImpl.hpp
  
  Index: AttributeListImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/AttributeListImpl.hpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- AttributeListImpl.hpp	23 Feb 2002 04:17:45 -0000	1.15
  +++ AttributeListImpl.hpp	9 Mar 2002 06:28:35 -0000	1.16
  @@ -179,6 +179,23 @@
   	typedef std::vector<AttributeVectorEntry*>		AttributeVectorType;
   #endif
   
  +#if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
  +	struct NameCompareFunctor
  +	{
  +		NameCompareFunctor(const XMLCh*		theName) :
  +			m_name(theName)
  +		{
  +		}
  +
  +		bool
  +		operator()(const AttributeVectorEntry*	theEntry) const;
  +
  +	private:
  +
  +		const XMLCh* const	m_name;
  +	};
  +#endif
  +
   private:
   
   	// This is not implemented.
  
  
  
  1.5       +8 -0      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AttributesImpl.cpp	25 Sep 2001 21:12:51 -0000	1.4
  +++ AttributesImpl.cpp	9 Mar 2002 06:28:35 -0000	1.5
  @@ -306,6 +306,13 @@
   
   
   
  +#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(
  @@ -327,6 +334,7 @@
   	const XMLCh* const	m_uri;
   	const XMLCh* const	m_localName;
   };
  +#endif
   
   
   
  
  
  
  1.4       +21 -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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AttributesImpl.hpp	23 Feb 2002 04:17:45 -0000	1.3
  +++ AttributesImpl.hpp	9 Mar 2002 06:28:35 -0000	1.4
  @@ -224,6 +224,27 @@
   	typedef std::vector<AttributeVectorEntryExtended*>	AttributesVectorType;
   #endif
   
  +#if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
  +	struct URIAndLocalNameCompareFunctor
  +	{
  +		URIAndLocalNameCompareFunctor(
  +				const XMLCh*	theURI,
  +				const XMLCh*	theLocalName) :
  +			m_uri(theURI),
  +			m_localName(theLocalName)
  +		{
  +		}
  +
  +		bool
  +		operator()(const AttributeVectorEntryExtended*	theEntry) const;
  +
  +	private:
  +
  +		const XMLCh* const	m_uri;
  +		const XMLCh* const	m_localName;
  +	};
  +#endif
  +
   private:
   
   	// This is not implemented.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org