Revision: 72425
          http://sourceforge.net/p/brlcad/code/72425
Author:   brlcad
Date:     2019-02-12 06:59:06 +0000 (Tue, 12 Feb 2019)
Log Message:
-----------
removed remainders of memory debugging.  minimally impacting (replaced with a 0 
constant) and dev-centric.

Modified Paths:
--------------
    brlcad/trunk/CHANGES
    brlcad/trunk/include/bu/debug.h
    brlcad/trunk/include/rt/debug.h
    brlcad/trunk/src/gtools/tests/bigdb.c
    brlcad/trunk/src/proc-db/tea.c
    brlcad/trunk/src/proc-db/tea_nmg.c
    brlcad/trunk/src/proc-db/wavy.c

Modified: brlcad/trunk/CHANGES
===================================================================
--- brlcad/trunk/CHANGES        2019-02-12 06:18:14 UTC (rev 72424)
+++ brlcad/trunk/CHANGES        2019-02-12 06:59:06 UTC (rev 72425)
@@ -1385,7 +1385,7 @@
         replaced by new BU API
 s/struct[[:space:]]*ged_run_rt/struct ged_subprocess/g
 
-# tentative
-s/bu_getprogname\([[:space:]]*\)/bu_app_name\(NULL\)/g
-s/bu_setprogname/bu_app_name/g
-s/bu_argv0_full_path\([[:space:]]*\)/bu_file_realpath\(bu_app_name\(NULL\)\)/g
+7.30
+----
+s/BU_DEBUG_MEM_LOG/0/g
+       bu memory debugging API removed [7.29]

Modified: brlcad/trunk/include/bu/debug.h
===================================================================
--- brlcad/trunk/include/bu/debug.h     2019-02-12 06:18:14 UTC (rev 72424)
+++ brlcad/trunk/include/bu/debug.h     2019-02-12 06:59:06 UTC (rev 72425)
@@ -52,11 +52,11 @@
 
 #define BU_DEBUG_COREDUMP       0x00000001      /* bu_bomb() should dump core 
on exit */
 #define BU_DEBUG_UNUSED_0       0x00000002      /* Unallocated */
-#define BU_DEBUG_MEM_LOG        0x00000004      /* Print all dynamic memory 
operations */
-#define BU_DEBUG_UNUSED_1       0x00000008      /* Unallocated */
+#define BU_DEBUG_UNUSED_1       0x00000004      /* Unallocated */
+#define BU_DEBUG_UNUSED_2       0x00000008      /* Unallocated */
 
 #define BU_DEBUG_PARALLEL       0x00000010      /* Parallel debug logging */
-#define BU_DEBUG_UNUSED_2       0x00000020      /* Unallocated */
+#define BU_DEBUG_UNUSED_3       0x00000020      /* Unallocated */
 #define BU_DEBUG_BACKTRACE      0x00000040      /* Log backtrace details 
during abnormal exit */
 #define BU_DEBUG_ATTACH         0x00000080      /* Waits for a debugger to 
attach during a crash */
 
@@ -66,24 +66,24 @@
 #define BU_DEBUG_MAPPED_FILE    0x00000800      /* bu_mapped_file logging */
 
 #define BU_DEBUG_PATHS          0x00001000      /* File and path debug logging 
*/
-#define BU_DEBUG_UNUSED_3       0x00002000      /* Unallocated */
-#define BU_DEBUG_UNUSED_4       0x00004000      /* Unallocated */
-#define BU_DEBUG_UNUSED_5       0x00008000      /* Unallocated */
+#define BU_DEBUG_UNUSED_4       0x00002000      /* Unallocated */
+#define BU_DEBUG_UNUSED_5       0x00004000      /* Unallocated */
+#define BU_DEBUG_UNUSED_6       0x00008000      /* Unallocated */
 
 #define BU_DEBUG_TABDATA        0x00010000      /* LIBBN: tabdata */
-#define BU_DEBUG_UNUSED_6       0x00020000      /* Unallocated */
-#define BU_DEBUG_UNUSED_7       0x00040000      /* Unallocated */
-#define BU_DEBUG_UNUSED_8       0x00080000      /* Unallocated */
+#define BU_DEBUG_UNUSED_7       0x00020000      /* Unallocated */
+#define BU_DEBUG_UNUSED_8       0x00040000      /* Unallocated */
+#define BU_DEBUG_UNUSED_9       0x00080000      /* Unallocated */
 
 /* Format string for bu_printb() */
 #define BU_DEBUG_FORMAT         "\020" /* print hex */ \
-    "\024UNUSED_8" \
-    "\023UNUSED_7" \
-    "\022UNUSED_6" \
+    "\024UNUSED_9" \
+    "\023UNUSED_8" \
+    "\022UNUSED_7" \
     "\021TABDATA" \
-    "\020UNUSED_5" \
-    "\017UNUSED_4" \
-    "\016UNUSED_3" \
+    "\020UNUSED_6" \
+    "\017UNUSED_5" \
+    "\016UNUSED_4" \
     "\015PATHS" \
     "\014MAPPED_FILE" \
     "\013AVS" \
@@ -91,10 +91,10 @@
     "\011MATH" \
     "\010ATTACH" \
     "\7BACKTRACE" \
-    "\6UNUSED_2" \
+    "\6UNUSED_3" \
     "\5PARALLEL" \
-    "\4UNUSED_1" \
-    "\3MEM_LOG" \
+    "\4UNUSED_2" \
+    "\3UNUSED_1" \
     "\2UNUSED_0" \
     "\1COREDUMP"
 

Modified: brlcad/trunk/include/rt/debug.h
===================================================================
--- brlcad/trunk/include/rt/debug.h     2019-02-12 06:18:14 UTC (rev 72424)
+++ brlcad/trunk/include/rt/debug.h     2019-02-12 06:59:06 UTC (rev 72425)
@@ -66,8 +66,8 @@
 #define DEBUG_CUT      0x00004000      /**< @brief 15 Print space cutting 
statistics */
 #define DEBUG_BOXING   0x00008000      /**< @brief 16 Object/box checking 
details */
 
-#define DEBUG_MEM      0x00010000      /**< @brief 17 -->> BU_DEBUG_MEM_LOG */
-#define DEBUG_UNUSED_0 0x00020000      /**< @brief 18 Unassigned */
+#define DEBUG_UNUSED_0 0x00010000      /**< @brief 17 -->> BU_DEBUG_MEM_LOG */
+#define DEBUG_UNUSED_1 0x00020000      /**< @brief 18 Unassigned */
 #define DEBUG_FDIFF    0x00040000      /**< @brief 19 bool/fdiff debugging */
 #define DEBUG_PARALLEL 0x00080000      /**< @brief 20 -->> BU_DEBUG_PARALLEL */
 
@@ -82,9 +82,9 @@
 #define DEBUG_EBM      0x02000000      /**< @brief 26 Extruded bit-map solids 
*/
 #define DEBUG_HF       0x04000000      /**< @brief 27 Height Field solids */
 
-#define DEBUG_UNUSED_1 0x08000000      /**< @brief 28 Unassigned */
-#define DEBUG_UNUSED_2 0x10000000      /**< @brief 29 Unassigned */
-#define DEBUG_UNUSED_3 0x20000000      /**< @brief 30 Unassigned */
+#define DEBUG_UNUSED_2 0x08000000      /**< @brief 28 Unassigned */
+#define DEBUG_UNUSED_3 0x10000000      /**< @brief 29 Unassigned */
+#define DEBUG_UNUSED_4 0x20000000      /**< @brief 30 Unassigned */
 
 /* Options which will cause the library to write binary debugging output */
 #define DEBUG_PL_SOLIDS 0x40000000     /**< @brief 31 plot all solids */
@@ -94,9 +94,9 @@
 #define DEBUG_FORMAT   "\020" /* print hex */ \
     "\040PL_BOX" \
     "\037PL_SOLIDS" \
-    "\036UNUSED_3" \
-    "\035UNUSED_2" \
-    "\034UNUSED_1" \
+    "\036UNUSED_4" \
+    "\035UNUSED_3" \
+    "\034UNUSED_2" \
     "\033HF" \
     "\032EBM" \
     "\031MATH" \
@@ -106,8 +106,8 @@
     "\025CUTDETAIL" \
     "\024PARALLEL" \
     "\023FDIFF" \
-    "\022UNUSED_0" \
-    "\021MEM" \
+    "\022UNUSED_1" \
+    "\021UNUSED_0" \
     "\020BOXING" \
     "\017CUT" \
     "\016PARTITION" \

Modified: brlcad/trunk/src/gtools/tests/bigdb.c
===================================================================
--- brlcad/trunk/src/gtools/tests/bigdb.c       2019-02-12 06:18:14 UTC (rev 
72424)
+++ brlcad/trunk/src/gtools/tests/bigdb.c       2019-02-12 06:59:06 UTC (rev 
72425)
@@ -85,6 +85,9 @@
 
     /* bu_log("using %s temp file\n", filename); */
 
+    title = (char *)bu_malloc(sz * 2, "test allocation");
+    bu_free(title, "test allocation");
+    
     title = (char *)bu_malloc(sz, "title");
     memset(title, ' ', sz);
     title[0] = '3';

Modified: brlcad/trunk/src/proc-db/tea.c
===================================================================
--- brlcad/trunk/src/proc-db/tea.c      2019-02-12 06:18:14 UTC (rev 72424)
+++ brlcad/trunk/src/proc-db/tea.c      2019-02-12 06:59:06 UTC (rev 72425)
@@ -98,13 +98,10 @@
     struct rt_wdb *outfp;
     struct face_g_snurb **surfaces;
 
-    while ((i=bu_getopt(argc, argv, "dh?")) != -1) {
+    while ((i=bu_getopt(argc, argv, "h?")) != -1) {
        switch (i) {
-           case 'd':
-               RTG.debug |= DEBUG_MEM;
-               break;
            default:
-               bu_log("Usage: %s [-d]\n", *argv);
+               bu_log("Usage: %s\n", *argv);
                bu_exit(-1, NULL);
        }
     }

Modified: brlcad/trunk/src/proc-db/tea_nmg.c
===================================================================
--- brlcad/trunk/src/proc-db/tea_nmg.c  2019-02-12 06:18:14 UTC (rev 72424)
+++ brlcad/trunk/src/proc-db/tea_nmg.c  2019-02-12 06:59:06 UTC (rev 72425)
@@ -176,13 +176,10 @@
 
     RTG.debug |= DEBUG_ALLRAYS;        /* Cause core dumps on bu_bomb(), but 
no extra messages */
 
-    while ((i=bu_getopt(argc, argv, "dh?")) != -1) {
+    while ((i=bu_getopt(argc, argv, "h?")) != -1) {
        switch (i) {
-           case 'd':
-               RTG.debug |= DEBUG_MEM;
-                break;
            default:
-               fprintf(stderr,"Usage: %s [-d]\n", *argv);
+               fprintf(stderr,"Usage: %s\n", *argv);
                return -1;
        }
     }

Modified: brlcad/trunk/src/proc-db/wavy.c
===================================================================
--- brlcad/trunk/src/proc-db/wavy.c     2019-02-12 06:18:14 UTC (rev 72424)
+++ brlcad/trunk/src/proc-db/wavy.c     2019-02-12 06:59:06 UTC (rev 72425)
@@ -78,11 +78,8 @@
 
     hscale = 2.5;
 
-    while ((i=bu_getopt(argc, argv, "dH:h?")) != -1) {
+    while ((i=bu_getopt(argc, argv, "H:h?")) != -1) {
        switch (i) {
-           case 'd':
-               RTG.debug |= DEBUG_MEM;
-               break;
            case 'H':
                hscale = atof(bu_optarg);
                break;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to