xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/src/PlatformSupport XalanDOMStringHashTable.cpp XalanDOMStringHashTable.hpp
Date Sat, 09 Mar 2002 08:40:50 GMT
dbertoni    02/03/09 00:40:50

  Modified:    c/src/PlatformSupport XalanDOMStringHashTable.cpp
                        XalanDOMStringHashTable.hpp
  Log:
  Moved some stuff into header files for xlC 3.6.6 and explicit instantiation.
  
  Revision  Changes    Path
  1.4       +15 -0     xml-xalan/c/src/PlatformSupport/XalanDOMStringHashTable.cpp
  
  Index: XalanDOMStringHashTable.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanDOMStringHashTable.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XalanDOMStringHashTable.cpp	25 Sep 2001 21:12:51 -0000	1.3
  +++ XalanDOMStringHashTable.cpp	9 Mar 2002 08:40:50 -0000	1.4
  @@ -111,6 +111,20 @@
   
   
   
  +#if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
  +bool
  +XalanDOMStringHashTable::equalsXalanDOMString::operator()(const XalanDOMString*		theString)
const
  +{
  +	if (m_length != length(*theString))
  +	{
  +		return false;
  +	}
  +	else
  +	{
  +		return equals(m_string, c_wstr(*theString), m_length);
  +	}
  +}
  +#else
   struct
   equalsXalanDOMString
   {
  @@ -141,6 +155,7 @@
   
   	const XalanDOMString::size_type		m_length;
   };
  +#endif
   
   
   
  
  
  
  1.3       +23 -0     xml-xalan/c/src/PlatformSupport/XalanDOMStringHashTable.hpp
  
  Index: XalanDOMStringHashTable.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanDOMStringHashTable.hpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XalanDOMStringHashTable.hpp	25 Sep 2001 21:12:51 -0000	1.2
  +++ XalanDOMStringHashTable.hpp	9 Mar 2002 08:40:50 -0000	1.3
  @@ -220,6 +220,29 @@
   			const XalanDOMString&	theString,
   			size_t					theBucketIndex);
   
  +#if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
  +	struct
  +	equalsXalanDOMString
  +	{
  +		equalsXalanDOMString(
  +				const XalanDOMChar*			theString,
  +				XalanDOMString::size_type	theLength) :
  +			m_string(theString),
  +			m_length(theLength)
  +		{
  +		}
  +
  +		bool
  +		operator()(const XalanDOMString*	theString) const;
  +
  +	private:
  +
  +		const XalanDOMChar* const			m_string;
  +
  +		const XalanDOMString::size_type		m_length;
  +	};
  +#endif
  +
   private:
   
   	// Not implemented, for now...
  
  
  

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


Mime
View raw message