Author: rfm
Date: Thu Jul  9 13:44:20 2015
New Revision: 38774

URL: http://svn.gna.org/viewcvs/gnustep?rev=38774&view=rev
Log:
fdix minor buglet

Modified:
    libs/base/trunk/ChangeLog
    libs/base/trunk/Headers/Foundation/NSDebug.h
    libs/base/trunk/Source/NSDebug.m

Modified: libs/base/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=38774&r1=38773&r2=38774&view=diff
==============================================================================
--- libs/base/trunk/ChangeLog   (original)
+++ libs/base/trunk/ChangeLog   Thu Jul  9 13:44:20 2015
@@ -2,6 +2,8 @@
 
        * Source/NSDebug.m: List memory allocation statistics in alphabetical
        order (by class name) for easier interpretation.
+       Fix bug where the counter for differences was updated when difference
+       listing was not requested.
 
 2015-07-08  Richard Frith-Macdonald <[email protected]>
 

Modified: libs/base/trunk/Headers/Foundation/NSDebug.h
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Headers/Foundation/NSDebug.h?rev=38774&r1=38773&r2=38774&view=diff
==============================================================================
--- libs/base/trunk/Headers/Foundation/NSDebug.h        (original)
+++ libs/base/trunk/Headers/Foundation/NSDebug.h        Thu Jul  9 13:44:20 2015
@@ -170,14 +170,13 @@
 GS_EXPORT Class*        GSDebugAllocationClassList(void);
 
 /**
- * This function returns a newline
- * separated list of the classes which have instances
- * allocated, and the instance counts.  If the 'changeFlag'
- * argument is YES then the list gives the number of
- * instances allocated/deallocated since the function was
- * last called.  This function only returns the current count
- * of instances (not the peak or total count), but its output
- * is ready to be displayed or logged.
+ * This function returns a newline separated list of the classes
+ * which have instances allocated, and the instance counts.
+ * If the 'changeFlag' argument is YES then the list gives the number
+ * of instances allocated/deallocated since the function was
+ * last called with that setting.  This function only returns the
+ * current count of instances (not the peak or total count), but its
+ * output is ready to be displayed or logged.
  */
 GS_EXPORT const char*  GSDebugAllocationList(BOOL changeFlag);
 

Modified: libs/base/trunk/Source/NSDebug.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSDebug.m?rev=38774&r1=38773&r2=38774&view=diff
==============================================================================
--- libs/base/trunk/Source/NSDebug.m    (original)
+++ libs/base/trunk/Source/NSDebug.m    Thu Jul  9 13:44:20 2015
@@ -545,8 +545,8 @@
       if (difference)
        {
          val -= the_table[i].lastc;
-       }
-      the_table[i].lastc = the_table[i].count;
+          the_table[i].lastc = the_table[i].count;
+       }
       if (val)
         {
           items[pos].name = class_getName(the_table[i].class);


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to