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/09/05 03:38:38 UTC

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

dbertoni    2002/09/04 18:38:37

  Modified:    c/src/PlatformSupport FormatterListener.cpp
                        FormatterListener.hpp
  Log:
  Reduce start-up dynamic memory utilization.
  
  Revision  Changes    Path
  1.5       +11 -1     xml-xalan/c/src/PlatformSupport/FormatterListener.cpp
  
  Index: FormatterListener.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/FormatterListener.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FormatterListener.cpp	5 Sep 2002 01:11:31 -0000	1.4
  +++ FormatterListener.cpp	5 Sep 2002 01:38:37 -0000	1.5
  @@ -78,6 +78,8 @@
   	m_prefixResolver(0),
   	m_outputFormat(theFormat)
   {
  +	assert(length(s_piTarget) == s_piTargetLength);
  +	assert(length(s_piData) == s_piDataLength);
   }
   
   
  @@ -105,3 +107,11 @@
   	XalanUnicode::charLetter_w,
   	0
   };
  +
  +#if !defined(XALAN_INLINE_INITIALIZATION)
  +const XalanDOMString::size_type		FormatterListener::s_piTargetLength = 5;
  +const XalanDOMString::size_type		FormatterListener::s_piDataLength = 3;
  +#else
  +const XalanDOMString::size_type		FormatterListener::s_piTargetLength;
  +const XalanDOMString::size_type		FormatterListener::s_piDataLength;
  +#endif
  
  
  
  1.7       +9 -1      xml-xalan/c/src/PlatformSupport/FormatterListener.hpp
  
  Index: FormatterListener.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/FormatterListener.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FormatterListener.hpp	5 Sep 2002 01:11:31 -0000	1.6
  +++ FormatterListener.hpp	5 Sep 2002 01:38:37 -0000	1.7
  @@ -242,6 +242,14 @@
   
   	static const XalanDOMChar	s_piData[];
   
  +#if defined(XALAN_INLINE_INITIALIZATION)
  +	static const XalanDOMString::size_type	s_piTargetLength = 5;
  +	static const XalanDOMString::size_type	s_piDataLength = 3;
  +#else
  +	static const XalanDOMString::size_type	s_piTargetLength;
  +	static const XalanDOMString::size_type	s_piDataLength;
  +#endif
  +
   protected:
   
   	// Data membmers...
  
  
  

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