dbertoni    2002/09/04 18:39:06

  Modified:    c/src/XMLSupport FormatterToDOM.cpp FormatterToHTML.cpp
                        FormatterToXML.cpp
  Log:
  Reduce start-up dynamic memory utilization.
  
  Revision  Changes    Path
  1.19      +5 -2      xml-xalan/c/src/XMLSupport/FormatterToDOM.cpp
  
  Index: FormatterToDOM.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterToDOM.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- FormatterToDOM.cpp        23 Feb 2002 04:21:24 -0000      1.18
  +++ FormatterToDOM.cpp        5 Sep 2002 01:39:05 -0000       1.19
  @@ -203,9 +203,12 @@
                const XMLCh* const      chars,
                const unsigned int      length)
   {
  +     assign(m_buffer1, s_piTarget, s_piTargetLength);
  +     assign(m_buffer2, s_piData, s_piDataLength);
  +
        append(m_doc->createProcessingInstruction(
  -                             s_xsltNextIsRawString,
  -                             s_formatterListenerString));
  +                             m_buffer1,
  +                             m_buffer2));
   
        characters(chars, length);
   }            
  
  
  
  1.75      +2 -2      xml-xalan/c/src/XMLSupport/FormatterToHTML.cpp
  
  Index: FormatterToHTML.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterToHTML.cpp,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- FormatterToHTML.cpp       3 Sep 2002 22:08:08 -0000       1.74
  +++ FormatterToHTML.cpp       5 Sep 2002 01:39:05 -0000       1.75
  @@ -626,8 +626,8 @@
   {
        // Use a fairly nasty hack to tell if the next node is supposed to be 
        // unescaped text.
  -     if(equals(target, s_xsltNextIsRawString) == true &&
  -        equals(data, s_formatterListenerString) == true)
  +     if(equals(target, length(target), s_piTarget, s_piTargetLength) == true 
&&
  +        equals(data, length(data), s_piData, s_piDataLength) == true)
        {
                m_nextIsRaw = true;
        }
  
  
  
  1.59      +2 -2      xml-xalan/c/src/XMLSupport/FormatterToXML.cpp
  
  Index: FormatterToXML.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterToXML.cpp,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- FormatterToXML.cpp        23 Jul 2002 00:27:58 -0000      1.58
  +++ FormatterToXML.cpp        5 Sep 2002 01:39:05 -0000       1.59
  @@ -1080,8 +1080,8 @@
        {
                // Use a fairly nasty hack to tell if the next node is supposed 
to be 
                // unescaped text.
  -             if(equals(target, c_wstr(s_xsltNextIsRawString)) == true
  -                     && equals(data, c_wstr(s_formatterListenerString)) == 
true)
  +             if(equals(target, length(target), s_piTarget, s_piTargetLength) 
== true &&
  +                equals(data, length(data), s_piData, s_piDataLength) == true)
                {
                        m_nextIsRaw = true;
                }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to