You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/07/20 19:09:43 UTC

cvs commit: xml-xerces/c/src/dom DomMemDebug.cpp

tng         01/07/20 10:09:43

  Modified:    c/src/dom DomMemDebug.cpp
  Log:
  Add some test cases in the tests folder to sanityTest.pl.
  
  Revision  Changes    Path
  1.4       +26 -21    xml-xerces/c/src/dom/DomMemDebug.cpp
  
  Index: DomMemDebug.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/DomMemDebug.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DomMemDebug.cpp	2000/03/02 19:54:00	1.3
  +++ DomMemDebug.cpp	2001/07/20 17:09:43	1.4
  @@ -1,37 +1,37 @@
   /*
    * The Apache Software License, Version 1.1
  - * 
  + *
    * Copyright (c) 1999-2000 The Apache Software Foundation.  All rights
    * reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  - * 
  + *    notice, this list of conditions and the following disclaimer.
  + *
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
    *    the documentation and/or other materials provided with the
    *    distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution,
  - *    if any, must include the following acknowledgment:  
  + *    if any, must include the following acknowledgment:
    *       "This product includes software developed by the
    *        Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself,
    *    if and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "Xerces" and "Apache Software Foundation" must
    *    not be used to endorse or promote products derived from this
  - *    software without prior written permission. For written 
  + *    software without prior written permission. For written
    *    permission, please contact apache\@apache.org.
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache",
    *    nor may "Apache" appear in their name, without prior written
    *    permission of the Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  @@ -45,7 +45,7 @@
    * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    * SUCH DAMAGE.
    * ====================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation, and was
    * originally based on software copyright (c) 1999, International
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: DomMemDebug.cpp,v $
  + * Revision 1.4  2001/07/20 17:09:43  tng
  + * Add some test cases in the tests folder to sanityTest.pl.
  + *
    * Revision 1.3  2000/03/02 19:54:00  roddey
    * This checkin includes many changes done while waiting for the
    * 1.1.0 code to be finished. I can't list them all here, but a list is
  @@ -117,19 +120,19 @@
   
   void DomMemDebug::operator = (const DomMemDebug &other)
   {
  -    liveStringHandles  = other.liveStringHandles; 
  +    liveStringHandles  = other.liveStringHandles;
       totalStringHandles = other.totalStringHandles;
  -    liveStringBuffers  = other.liveStringBuffers; 
  +    liveStringBuffers  = other.liveStringBuffers;
       totalStringBuffers = other.totalStringBuffers;
  -    liveNodeImpls      = other.liveNodeImpls;     
  -    totalNodeImpls     = other.totalNodeImpls;    
  -    liveNamedNodeMaps  = other.liveNamedNodeMaps; 
  +    liveNodeImpls      = other.liveNodeImpls;
  +    totalNodeImpls     = other.totalNodeImpls;
  +    liveNamedNodeMaps  = other.liveNamedNodeMaps;
       totalNamedNodeMaps = other.totalNamedNodeMaps;
   };
   
   void DomMemDebug::print()
   {
  -    printf("DOM reference counted memory alloction statistics: \n"
  +    printf("DOM reference counted memory alloction statistics:\n"
           "    live  string handles:   %d\n"
           "    total string handles:   %d\n"
           "    live  string buffers:   %d\n"
  @@ -138,8 +141,8 @@
           "    total nodeImpls:        %d\n"
           "    live  NamedNodeMaps:    %d\n"
           "    total NamedNodeMaps:    %d\n",
  -            liveStringHandles , 
  -            totalStringHandles, 
  +            liveStringHandles ,
  +            totalStringHandles,
               liveStringBuffers  ,
               totalStringBuffers ,
               liveNodeImpls      ,
  @@ -152,7 +155,7 @@
   void DomMemDebug::printDifference(const DomMemDebug &other)
   {
       int d;
  -     
  +
       d = liveStringHandles - other.liveStringHandles;
       if (d != 0)
           printf("   %d StringHandles.", d);
  
  
  

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