Revision: 55298
          http://sourceforge.net/p/brlcad/code/55298
Author:   carlmoore
Date:     2013-05-02 19:34:30 +0000 (Thu, 02 May 2013)
Log Message:
-----------
add h? to option string, and change 'bwmod:' to 'smod:'

Modified Paths:
--------------
    brlcad/trunk/src/sig/smod.c

Modified: brlcad/trunk/src/sig/smod.c
===================================================================
--- brlcad/trunk/src/sig/smod.c 2013-05-02 19:31:30 UTC (rev 55297)
+++ brlcad/trunk/src/sig/smod.c 2013-05-02 19:34:30 UTC (rev 55298)
@@ -62,7 +62,7 @@
     int c;
     double d;
 
-    while ((c = bu_getopt(argc, argv, "a:s:m:d:Ae:r:")) != -1) {
+    while ((c = bu_getopt(argc, argv, "a:s:m:d:Ae:r:h?")) != -1) {
        switch (c) {
            case 'a':
                op[ numop ] = ADD;
@@ -80,7 +80,7 @@
                op[ numop ] = MULT;
                d = atof(bu_optarg);
                if (ZERO(d)) {
-                   bu_exit(2, "bwmod: divide by zero!\n");
+                   bu_exit(2, "smod: divide by zero!\n");
                }
                val[ numop++ ] = 1.0 / d;
                break;
@@ -96,7 +96,7 @@
                op[ numop ] = POW;
                d = atof(bu_optarg);
                if (ZERO(d)) {
-                   bu_exit(2, "bwmod: zero root!\n");
+                   bu_exit(2, "smod: zero root!\n");
                }
                val[ numop++ ] = 1.0 / d;
                break;
@@ -116,7 +116,7 @@
        ifname = bu_realpath(file_name, NULL);
        if (freopen(ifname, "r", stdin) == NULL) {
            fprintf(stderr,
-                         "bwmod: cannot open \"%s(canonical %s)\" for 
reading\n",
+                         "smod: cannot open \"%s(canonical %s)\" for 
reading\n",
                          file_name,ifname);
            bu_free(ifname,"ifname alloc from bu_realpath");
            return 0;
@@ -125,7 +125,7 @@
     }
 
     if (argc > ++bu_optind)
-       fprintf(stderr, "bwmod: excess argument(s) ignored\n");
+       fprintf(stderr, "smod: excess argument(s) ignored\n");
 
     return 1;          /* OK */
 }

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


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to