Revision: 75809
          http://sourceforge.net/p/brlcad/code/75809
Author:   starseeker
Date:     2020-05-15 01:35:14 +0000 (Fri, 15 May 2020)
Log Message:
-----------
more setprogname additions

Modified Paths:
--------------
    brlcad/trunk/src/art/art.cpp
    brlcad/trunk/src/gtools/gdiff/gdiff.c
    brlcad/trunk/src/gtools/tests/bigdb.c
    brlcad/trunk/src/proc-db/naca/CMakeLists.txt
    brlcad/trunk/src/proc-db/naca/naca456.c
    brlcad/trunk/src/rt/reshoot.c
    brlcad/trunk/src/rt/rtexample.c
    brlcad/trunk/src/rt/rtscale.c
    brlcad/trunk/src/rt/rtshot.c
    brlcad/trunk/src/shapes/bolt.c
    brlcad/trunk/src/shapes/coil.c
    brlcad/trunk/src/shapes/fence.c
    brlcad/trunk/src/shapes/gastank.c
    brlcad/trunk/src/shapes/handle.c
    brlcad/trunk/src/shapes/picket_fence.c
    brlcad/trunk/src/shapes/window.c
    brlcad/trunk/src/shapes/window_frame.c
    brlcad/trunk/src/shapes/wire.c
    brlcad/trunk/src/sig/a-d.c
    brlcad/trunk/src/sig/butter.c
    brlcad/trunk/src/sig/bw-d.c
    brlcad/trunk/src/sig/c-d.c
    brlcad/trunk/src/sig/d-a.c
    brlcad/trunk/src/sig/d-bw.c
    brlcad/trunk/src/sig/d-f.c
    brlcad/trunk/src/sig/d-i.c
    brlcad/trunk/src/sig/d-u.c
    brlcad/trunk/src/sig/d2-c.c
    brlcad/trunk/src/sig/damdf.c
    brlcad/trunk/src/sig/dauto.c
    brlcad/trunk/src/sig/dauto2.c
    brlcad/trunk/src/sig/dconv.c
    brlcad/trunk/src/sig/ddisp.c
    brlcad/trunk/src/sig/dfft.c
    brlcad/trunk/src/sig/dmod.c
    brlcad/trunk/src/sig/dpeak.c
    brlcad/trunk/src/sig/dsel.c
    brlcad/trunk/src/sig/dstats.c
    brlcad/trunk/src/sig/dwin.c
    brlcad/trunk/src/sig/f-d.c
    brlcad/trunk/src/sig/f-i.c
    brlcad/trunk/src/sig/i-a.c
    brlcad/trunk/src/sig/i-d.c
    brlcad/trunk/src/sig/i-f.c
    brlcad/trunk/src/sig/ihist.c
    brlcad/trunk/src/sig/imod.c
    brlcad/trunk/src/sig/istats.c
    brlcad/trunk/src/sig/smod.c
    brlcad/trunk/src/sig/u-a.c
    brlcad/trunk/src/sig/u-bw.c
    brlcad/trunk/src/sig/u-d.c
    brlcad/trunk/src/sig/u-f.c
    brlcad/trunk/src/sig/umod.c
    brlcad/trunk/src/sig/ustats.c

Modified: brlcad/trunk/src/art/art.cpp
===================================================================
--- brlcad/trunk/src/art/art.cpp        2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/art/art.cpp        2020-05-15 01:35:14 UTC (rev 75809)
@@ -136,6 +136,7 @@
 
 #include "vmath.h"     /* vector math macros */
 #include "raytrace.h"      /* librt interface definitions */
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/vls.h"
 #include "art.h"
@@ -505,6 +506,8 @@
     struct bu_vls str = BU_VLS_INIT_ZERO;
     //int objs_free_argv = 0;
 
+    bu_setprogname(argv[0]);
+
     /* Process command line options */
     int i = get_args(argc, (const char**)argv);
     if (i < 0) {

Modified: brlcad/trunk/src/gtools/gdiff/gdiff.c
===================================================================
--- brlcad/trunk/src/gtools/gdiff/gdiff.c       2020-05-15 01:11:41 UTC (rev 
75808)
+++ brlcad/trunk/src/gtools/gdiff/gdiff.c       2020-05-15 01:35:14 UTC (rev 
75809)
@@ -19,6 +19,7 @@
  */
 
 #include "./gdiff.h"
+#include "bu/app.h"
 
 /*******************************************************************/
 /* Primary function for basic diff operation on two .g files */
@@ -249,6 +250,8 @@
     struct db_i *ancestor_dbip = DBI_NULL;
     const char *diff_prog_name = argv[0];
 
+    bu_setprogname(argv[0]);
+
     BU_GET(state, struct diff_state);
     diff_state_init(state);
 

Modified: brlcad/trunk/src/gtools/tests/bigdb.c
===================================================================
--- brlcad/trunk/src/gtools/tests/bigdb.c       2020-05-15 01:11:41 UTC (rev 
75808)
+++ brlcad/trunk/src/gtools/tests/bigdb.c       2020-05-15 01:35:14 UTC (rev 
75809)
@@ -68,6 +68,8 @@
     vect_t center = VINIT_ZERO;
     int failures = 0;
 
+    bu_setprogname(av[0]);
+
     if (ac == 1 || ac > 2) {
        bu_log("Usage: %s {gigabytes}\n\n", av[0]);
        bu_log("This program creates a .g geometry database at least 
{gigabytes} in\n"

Modified: brlcad/trunk/src/proc-db/naca/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/proc-db/naca/CMakeLists.txt        2020-05-15 01:11:41 UTC 
(rev 75808)
+++ brlcad/trunk/src/proc-db/naca/CMakeLists.txt        2020-05-15 01:35:14 UTC 
(rev 75809)
@@ -11,7 +11,7 @@
   )
 BRLCAD_INCLUDE_DIRS(NACA_INCLUDES)
 
-BRLCAD_ADDEXEC(naca456 "${naca_srcs}" "libwdb;${OPENNURBS_LIBRARIES}" 
NO_INSTALL)
+BRLCAD_ADDEXEC(naca456 "${naca_srcs}" "libwdb;libbu;${OPENNURBS_LIBRARIES}" 
NO_INSTALL)
 
 CMAKEFILES(naca.h)
 CMAKEFILES(CMakeLists.txt)

Modified: brlcad/trunk/src/proc-db/naca/naca456.c
===================================================================
--- brlcad/trunk/src/proc-db/naca/naca456.c     2020-05-15 01:11:41 UTC (rev 
75808)
+++ brlcad/trunk/src/proc-db/naca/naca456.c     2020-05-15 01:35:14 UTC (rev 
75809)
@@ -66,10 +66,12 @@
  */
 
 #include "naca.h"
+#include "bu/app.h"
 
 int
 main(int argc, const char **argv)
 {
+    bu_setprogname(argv[0]);
     if (!argc || !argv)
        return 1;
 

Modified: brlcad/trunk/src/rt/reshoot.c
===================================================================
--- brlcad/trunk/src/rt/reshoot.c       2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/rt/reshoot.c       2020-05-15 01:35:14 UTC (rev 75809)
@@ -81,6 +81,7 @@
 #include <stddef.h>
 
 #include "vmath.h"             /* vector math macros */
+#include "bu/app.h"
 #include "bu/list.h"
 #include "bu/parse.h"
 #include "bu/vls.h"
@@ -317,6 +318,7 @@
     struct bu_vls buf = BU_VLS_INIT_ZERO;
     struct shot sh;
 
+    bu_setprogname(argv[0]);
     progname = argv[0];
 
     if (argc < 3) {

Modified: brlcad/trunk/src/rt/rtexample.c
===================================================================
--- brlcad/trunk/src/rt/rtexample.c     2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/rt/rtexample.c     2020-05-15 01:35:14 UTC (rev 75809)
@@ -69,6 +69,7 @@
 #include <stdio.h>
 
 #include "vmath.h"             /* vector math macros */
+#include "bu/app.h"             /* libbu application setup */
 #include "raytrace.h"          /* librt interface definitions */
 
 
@@ -232,6 +233,10 @@
      */
     char title[1024] = {0};
 
+    /* Every application using BRL-CAD libraries needs to define its program
+     * name at startup to ensure various features will work as expected */
+    bu_setprogname(argv[0]);
+
     /* Check for command-line arguments.  Make sure we have at least a
      * geometry file and one geometry object on the command line.
      */

Modified: brlcad/trunk/src/rt/rtscale.c
===================================================================
--- brlcad/trunk/src/rt/rtscale.c       2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/rt/rtscale.c       2020-05-15 01:35:14 UTC (rev 75809)
@@ -53,6 +53,7 @@
 #include <string.h>
 #include <math.h>
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/units.h"
 #include "vmath.h"
@@ -106,6 +107,8 @@
     int                ret;                    /* function return code */
     fastf_t            m_len;                  /* scale length in model size */
 
+    bu_setprogname(argv[0]);
+
     MAT_IDN(view2model);                       /* makes an identity matrix */
     MAT_IDN(model2view);
 

Modified: brlcad/trunk/src/rt/rtshot.c
===================================================================
--- brlcad/trunk/src/rt/rtshot.c        2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/rt/rtshot.c        2020-05-15 01:35:14 UTC (rev 75809)
@@ -36,6 +36,7 @@
 #include <ctype.h>
 #include <math.h>
 
+#include "bu/app.h"
 #include "bu/debug.h"
 #include "vmath.h"
 #include "raytrace.h"
@@ -106,6 +107,8 @@
     int atoival;
     struct resource res = RT_RESOURCE_INIT_ZERO;
 
+    bu_setprogname(argv[0]);
+
     if (argc < 3) {
        usage(argv0);
        return 1;

Modified: brlcad/trunk/src/shapes/bolt.c
===================================================================
--- brlcad/trunk/src/shapes/bolt.c      2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/shapes/bolt.c      2020-05-15 01:35:14 UTC (rev 75809)
@@ -31,6 +31,7 @@
 #include <math.h>
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "rt/db4.h"
 #include "raytrace.h"
 #include "wdb.h"
@@ -75,6 +76,8 @@
     struct wmember comb1;      /* Used to make groups. */
     int ret;
 
+    bu_setprogname(argv[0]);
+
     if (argc > 1) {
        if (BU_STR_EQUAL(argv[1], "-h") || BU_STR_EQUAL(argv[1], "-?")) {
            printusage();

Modified: brlcad/trunk/src/shapes/coil.c
===================================================================
--- brlcad/trunk/src/shapes/coil.c      2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/shapes/coil.c      2020-05-15 01:35:14 UTC (rev 75809)
@@ -31,6 +31,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
+#include "bu/app.h"
 #include "bu/file.h"
 #include "bu/log.h"
 #include "vmath.h"
@@ -50,6 +51,8 @@
     struct ged ged;
     int flag;
 
+    bu_setprogname(av[0]);
+
     /* make sure file doesn't already exist and opens for writing */
     if (bu_file_exists(DEFAULT_COIL_FILENAME, NULL))
        bu_exit(2, "%s: refusing to overwrite pre-existing file %s\n", av[0], 
DEFAULT_COIL_FILENAME);

Modified: brlcad/trunk/src/shapes/fence.c
===================================================================
--- brlcad/trunk/src/shapes/fence.c     2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/shapes/fence.c     2020-05-15 01:35:14 UTC (rev 75809)
@@ -35,6 +35,7 @@
 
 #include "./fence.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 
 /* command-line options are described in the parseArguments function
@@ -1769,6 +1770,8 @@
     int colorinput[3];
     double scan[3] = VINIT_ZERO;
 
+    bu_setprogname(argv[0]);
+
     verboseinput = (char *) bu_calloc(DEFAULT_MAXNAMELENGTH * 3, sizeof(char), 
"verboseinput");
 
     (void) parseArguments(argc, argv);

Modified: brlcad/trunk/src/shapes/gastank.c
===================================================================
--- brlcad/trunk/src/shapes/gastank.c   2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/shapes/gastank.c   2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 
 #include "rt/db4.h"
 #include "vmath.h"
+#include "bu/app.h"
 #include "raytrace.h"
 #include "wdb.h"
 
@@ -83,6 +84,8 @@
     int i, j, k;               /* Loop counters. */
     int ret;
 
+    bu_setprogname(argv[0]);
+
     /* Set up solid, region, and group names. */
     solnam[0] = 's';
     solnam[1] = '.';

Modified: brlcad/trunk/src/shapes/handle.c
===================================================================
--- brlcad/trunk/src/shapes/handle.c    2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/shapes/handle.c    2020-05-15 01:35:14 UTC (rev 75809)
@@ -36,6 +36,7 @@
 
 #include "rt/db4.h"
 #include "vmath.h"
+#include "bu/app.h"
 #include "raytrace.h"
 #include "wdb.h"
 
@@ -92,6 +93,8 @@
     int i, j, k;               /* Loop counters. */
     int ret;
 
+    bu_setprogname(argv[0]);
+
     /* Set up solid, region, and group names. */
     solnam[0] = 's';
     solnam[1] = '.';

Modified: brlcad/trunk/src/shapes/picket_fence.c
===================================================================
--- brlcad/trunk/src/shapes/picket_fence.c      2020-05-15 01:11:41 UTC (rev 
75808)
+++ brlcad/trunk/src/shapes/picket_fence.c      2020-05-15 01:35:14 UTC (rev 
75809)
@@ -29,6 +29,7 @@
 #include <string.h>
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "raytrace.h"
 #include "wdb.h"
 
@@ -56,6 +57,8 @@
     struct wmember swm;
     struct wmember *nwm;
 
+    bu_setprogname(argv[0]);
+
     fastf_t first_mat[16] = MAT_INIT_ZERO;
 
     fastf_t s0[24] = {0, 0, 0,

Modified: brlcad/trunk/src/shapes/window.c
===================================================================
--- brlcad/trunk/src/shapes/window.c    2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/shapes/window.c    2020-05-15 01:35:14 UTC (rev 75809)
@@ -35,6 +35,7 @@
 
 #include "rt/db4.h"
 #include "vmath.h"
+#include "bu/app.h"
 #include "raytrace.h"
 #include "wdb.h"
 
@@ -70,6 +71,8 @@
     int i, j, k;               /* Loop counters. */
     int ret;
 
+    bu_setprogname(argv[0]);
+
     /* Set up solid, region, and group names. */
     solnam[0] = 's';
     solnam[1] = '.';

Modified: brlcad/trunk/src/shapes/window_frame.c
===================================================================
--- brlcad/trunk/src/shapes/window_frame.c      2020-05-15 01:11:41 UTC (rev 
75808)
+++ brlcad/trunk/src/shapes/window_frame.c      2020-05-15 01:35:14 UTC (rev 
75809)
@@ -35,6 +35,7 @@
 
 #include "rt/db4.h"
 #include "vmath.h"
+#include "bu/app.h"
 #include "raytrace.h"
 #include "wdb.h"
 
@@ -72,6 +73,8 @@
     int i, j, k;               /* Loop counters. */
     int ret;
 
+    bu_setprogname(argv[0]);
+
     /* Set up solid, region, and group names. */
     solnam[0] = 's';
     solnam[1] = '.';

Modified: brlcad/trunk/src/shapes/wire.c
===================================================================
--- brlcad/trunk/src/shapes/wire.c      2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/shapes/wire.c      2020-05-15 01:35:14 UTC (rev 75809)
@@ -33,6 +33,7 @@
 
 #include "rt/db4.h"
 #include "vmath.h"
+#include "bu/app.h"
 #include "raytrace.h"
 #include "wdb.h"
 
@@ -78,6 +79,8 @@
     char temp1[NAME_LEN+1];            /* Temporary char string. */
     int ret;
 
+    bu_setprogname(argv[0]);
+
     bu_log(usage);
     if (argc > 1 && argv)
        bu_exit(1, NULL);

Modified: brlcad/trunk/src/sig/a-d.c
===================================================================
--- brlcad/trunk/src/sig/a-d.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/a-d.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -30,6 +30,7 @@
 #include <ctype.h>
 #include <string.h>
 #include "bio.h"
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
 
@@ -44,6 +45,8 @@
     int i;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/butter.c
===================================================================
--- brlcad/trunk/src/sig/butter.c       2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/butter.c       2020-05-15 01:35:14 UTC (rev 75809)
@@ -33,6 +33,7 @@
 #include <stdio.h>
 #include <math.h>
 
+#include "bu/app.h"
 #include "fft.h"
 
 #if defined(HAVE_HYPOT) && !defined(HAVE_DECL_HYPOT)
@@ -104,11 +105,13 @@
 #ifdef TEST
 #define N 512.0
 int
-main()
+main(int UNUSED(argc), const char **argv)
 {
     int offset;
     double wr, mag, step;
 
+    bu_setprogname(argv[0]);
+
     step = pow(N, 1.0/(N-1));
 
     for (offset = -15; offset <= 15; offset++) {

Modified: brlcad/trunk/src/sig/bw-d.c
===================================================================
--- brlcad/trunk/src/sig/bw-d.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/bw-d.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -33,6 +33,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "bu/str.h"
 #include "bu/snooze.h"
@@ -56,6 +57,8 @@
     double scale = 1.0;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/c-d.c
===================================================================
--- brlcad/trunk/src/sig/c-d.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/c-d.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -27,6 +27,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
 #include "vmath.h"
@@ -55,6 +56,8 @@
     size_t i, num, onum;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/d-a.c
===================================================================
--- brlcad/trunk/src/sig/d-a.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/d-a.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -30,6 +30,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
@@ -43,6 +44,8 @@
     double d;
     int nflag = 0;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/d-bw.c
===================================================================
--- brlcad/trunk/src/sig/d-bw.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/d-bw.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
@@ -59,6 +60,8 @@
     int clip_high, clip_low;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/d-f.c
===================================================================
--- brlcad/trunk/src/sig/d-f.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/d-f.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -35,6 +35,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
@@ -51,6 +52,8 @@
     double scale = 1.0;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/d-i.c
===================================================================
--- brlcad/trunk/src/sig/d-i.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/d-i.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -35,6 +35,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
@@ -53,6 +54,8 @@
     int clip_high, clip_low;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/d-u.c
===================================================================
--- brlcad/trunk/src/sig/d-u.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/d-u.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
@@ -52,6 +53,8 @@
     int clip_high, clip_low;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/d2-c.c
===================================================================
--- brlcad/trunk/src/sig/d2-c.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/d2-c.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -28,6 +28,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
@@ -62,6 +63,8 @@
     double real[1024], imag[1024];
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/damdf.c
===================================================================
--- brlcad/trunk/src/sig/damdf.c        2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/damdf.c        2020-05-15 01:35:14 UTC (rev 75809)
@@ -31,6 +31,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 
 
@@ -48,6 +49,8 @@
     double d;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (isatty(fileno(stdin)) || isatty(fileno(stdout))) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/sig/dauto.c
===================================================================
--- brlcad/trunk/src/sig/dauto.c        2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/dauto.c        2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
 
@@ -51,6 +52,8 @@
     double *dp1, *dp2;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (isatty(fileno(stdin)) || isatty(fileno(stdout))) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/sig/dauto2.c
===================================================================
--- brlcad/trunk/src/sig/dauto2.c       2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/dauto2.c       2020-05-15 01:35:14 UTC (rev 75809)
@@ -30,6 +30,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 
 
@@ -49,6 +50,8 @@
     double max1, max2, m, m2;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (isatty(fileno(stdin)) || isatty(fileno(stdout))) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/sig/dconv.c
===================================================================
--- brlcad/trunk/src/sig/dconv.c        2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/dconv.c        2020-05-15 01:35:14 UTC (rev 75809)
@@ -38,6 +38,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
 #include "fft.h"
@@ -80,6 +81,8 @@
     FILE *fp;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (argc != 2 || isatty(fileno(stdin)) || isatty(fileno(stdout))) {
        bu_exit(1, "Usage: dconv filterfile < doubles > doubles\n       
WARNING: kernel size must be 2^i - 1\n");
     }

Modified: brlcad/trunk/src/sig/ddisp.c
===================================================================
--- brlcad/trunk/src/sig/ddisp.c        2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/ddisp.c        2020-05-15 01:35:14 UTC (rev 75809)
@@ -30,6 +30,7 @@
 
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/malloc.h"
 #include "bu/color.h"
 #include "bu/str.h"
@@ -149,6 +150,8 @@
     int mode = 0;
     int fbsize = 512;
 
+    bu_setprogname(argv[0]);
+
     if (isatty(fileno(stdin))) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/sig/dfft.c
===================================================================
--- brlcad/trunk/src/sig/dfft.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/dfft.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -33,6 +33,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/malloc.h"
 #include "bu/getopt.h"
 #include "bu/exit.h"
@@ -208,6 +209,8 @@
     int phase = 0;
     double data[MAXFFT];               /* Data buffer: 2*Points in spectrum */
 
+    bu_setprogname(argv[0]);
+
     while ((c = bu_getopt(argc, argv, optstring)) != -1) {
        switch (c) {
            case 'd': mindB = -atof(bu_optarg); break;

Modified: brlcad/trunk/src/sig/dmod.c
===================================================================
--- brlcad/trunk/src/sig/dmod.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/dmod.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -33,6 +33,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/malloc.h"
 #include "bu/getopt.h"
 #include "bu/exit.h"
@@ -136,6 +137,8 @@
 
     double buf[BU_PAGE_SIZE] = {0.0};          /* working buffer */
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv) || isatty(fileno(infp))
        || isatty(fileno(stdout))) {
        bu_exit(1, "%s", usage);

Modified: brlcad/trunk/src/sig/dpeak.c
===================================================================
--- brlcad/trunk/src/sig/dpeak.c        2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/dpeak.c        2020-05-15 01:35:14 UTC (rev 75809)
@@ -31,6 +31,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "vmath.h"
 
@@ -83,6 +84,8 @@
     double last1, last2;
     int numpeaks;
 
+    bu_setprogname(argv[0]);
+
     if (isatty(fileno(stdin)) /*|| isatty(fileno(stdout))*/) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/sig/dsel.c
===================================================================
--- brlcad/trunk/src/sig/dsel.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/dsel.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -29,6 +29,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "bu/malloc.h"
@@ -76,6 +77,8 @@
     int nskip; /* number to skip */
     int nkeep; /* number to keep */
 
+    bu_setprogname(argv[0]);
+
     if (isatty(fileno(stdin)) || isatty(fileno(stdout)))
        bu_exit(1, "%s", usage);
     if (BU_STR_EQUAL(argv[1], "-h") || BU_STR_EQUAL(argv[1], "-?"))

Modified: brlcad/trunk/src/sig/dstats.c
===================================================================
--- brlcad/trunk/src/sig/dstats.c       2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/dstats.c       2020-05-15 01:35:14 UTC (rev 75809)
@@ -32,6 +32,7 @@
 #include <float.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 
@@ -59,6 +60,8 @@
     double mean, var;
     FILE *fp;
 
+    bu_setprogname(av[0]);
+
     if (ac == 1 && isatty(fileno(stdin)) && isatty(fileno(stdout)))
        printusage();
 

Modified: brlcad/trunk/src/sig/dwin.c
===================================================================
--- brlcad/trunk/src/sig/dwin.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/dwin.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -31,6 +31,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 
@@ -166,6 +167,8 @@
     int bartlett = 0;
     int midwin = 0;
 
+    bu_setprogname(argv[0]);
+
     if (isatty(fileno(stdin)) || isatty(fileno(stdout)))
        bu_exit(1, "%s", usage);
 

Modified: brlcad/trunk/src/sig/f-d.c
===================================================================
--- brlcad/trunk/src/sig/f-d.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/f-d.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -35,6 +35,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
@@ -51,6 +52,8 @@
     float ibuf[512];
     double obuf[512];
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/f-i.c
===================================================================
--- brlcad/trunk/src/sig/f-i.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/f-i.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -35,6 +35,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
 #include "bu/str.h"
@@ -53,6 +54,8 @@
     float ibuf[512];
     short obuf[512];
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/i-a.c
===================================================================
--- brlcad/trunk/src/sig/i-a.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/i-a.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -24,15 +24,18 @@
 #include "common.h"
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/snooze.h"
 
 
 int
-main(void)
+main(int UNUSED(argc), const char **argv)
 {
     short ibuf[16*1024];
     int n, i;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/i-d.c
===================================================================
--- brlcad/trunk/src/sig/i-d.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/i-d.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "bu/str.h"
 #include "bu/snooze.h"
@@ -50,6 +51,8 @@
     double scale = 1.0;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/i-f.c
===================================================================
--- brlcad/trunk/src/sig/i-f.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/i-f.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "bu/str.h"
 #include "bu/snooze.h"
@@ -50,6 +51,8 @@
     double scale = 1.0;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/ihist.c
===================================================================
--- brlcad/trunk/src/sig/ihist.c        2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/ihist.c        2020-05-15 01:35:14 UTC (rev 75809)
@@ -29,6 +29,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 
@@ -50,6 +51,8 @@
 
     int verbose = 0;
 
+    bu_setprogname(argv[0]);
+
     while (argc > 1) {
        if (BU_STR_EQUAL(argv[1], "-v")) {
            verbose++;

Modified: brlcad/trunk/src/sig/imod.c
===================================================================
--- brlcad/trunk/src/sig/imod.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/imod.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/file.h"
@@ -172,6 +173,8 @@
     unsigned long clip_high, clip_low;
     short iobuf[BUFLEN];               /* input buffer */
 
+    bu_setprogname(argv[0]);
+
     if (!(progname=strrchr(*argv, '/')))
        progname = *argv;
 

Modified: brlcad/trunk/src/sig/istats.c
===================================================================
--- brlcad/trunk/src/sig/istats.c       2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/istats.c       2020-05-15 01:35:14 UTC (rev 75809)
@@ -33,6 +33,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/file.h"
@@ -119,6 +120,8 @@
     const char *progname = "istats";
     int arg_index;
 
+    bu_setprogname(av[0]);
+
     /* parse command flags
      */
     arg_index = parse_args(ac, av, &progname);

Modified: brlcad/trunk/src/sig/smod.c
===================================================================
--- brlcad/trunk/src/sig/smod.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/smod.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/file.h"
@@ -180,6 +181,8 @@
     unsigned long clip_high, clip_low;
     short iobuf[BUFLEN];               /* input buffer */
 
+    bu_setprogname(argv[0]);
+
     if (!(progname=strrchr(*argv, '/')))
        progname = *argv;
 

Modified: brlcad/trunk/src/sig/u-a.c
===================================================================
--- brlcad/trunk/src/sig/u-a.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/u-a.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -24,11 +24,12 @@
 #include "common.h"
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/snooze.h"
 
 
 int
-main(void)
+main(int UNUSED(argc), const char **argv)
 {
 #define MAXBUF 16*1024
     unsigned short ibuf[MAXBUF];
@@ -35,6 +36,8 @@
 
     int n, i;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/u-bw.c
===================================================================
--- brlcad/trunk/src/sig/u-bw.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/u-bw.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -27,6 +27,7 @@
 
 #include "bio.h"
 
+#include "bu/app.h"
 
 int
 main(int ac, char *av[])
@@ -36,6 +37,8 @@
 
     size_t num, i;
 
+    bu_setprogname(av[0]);
+
     if (isatty(fileno(stdin)) || isatty(fileno(stdout))) {
        fprintf(stderr, "Usage: %s < u_shorts > bwfile\n",
                *av);

Modified: brlcad/trunk/src/sig/u-d.c
===================================================================
--- brlcad/trunk/src/sig/u-d.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/u-d.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -33,6 +33,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "vmath.h"
@@ -48,6 +49,8 @@
     double scale = 1.0;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (argc > 1) {
        if (BU_STR_EQUAL(argv[1], "-n"))
            scale = 1.0 / 65536.0;

Modified: brlcad/trunk/src/sig/u-f.c
===================================================================
--- brlcad/trunk/src/sig/u-f.c  2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/u-f.c  2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "bu/snooze.h"
@@ -50,6 +51,8 @@
     double scale = 1.0;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     fprintf(stderr,"DEPRECATION WARNING:  This command is scheduled for 
removal.  Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/sig/umod.c
===================================================================
--- brlcad/trunk/src/sig/umod.c 2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/umod.c 2020-05-15 01:35:14 UTC (rev 75809)
@@ -34,6 +34,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/file.h"
 #include "bu/malloc.h"
@@ -171,6 +172,8 @@
 
     unsigned short iobuf[BUFLEN];              /* input buffer */
 
+    bu_setprogname(argv[0]);
+
     if (!(progname=strrchr(*argv, '/')))
        progname = *argv;
 

Modified: brlcad/trunk/src/sig/ustats.c
===================================================================
--- brlcad/trunk/src/sig/ustats.c       2020-05-15 01:11:41 UTC (rev 75808)
+++ brlcad/trunk/src/sig/ustats.c       2020-05-15 01:35:14 UTC (rev 75809)
@@ -32,6 +32,7 @@
 #include <limits.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/file.h"
@@ -118,6 +119,8 @@
     const char *progname = "ustats";
     int arg_index;
 
+    bu_setprogname(av[0]);
+
     /* parse command flags
      */
     arg_index = parse_args(ac, av, &progname);

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to