Revision: 55297
          http://sourceforge.net/p/brlcad/code/55297
Author:   carlmoore
Date:     2013-05-02 19:31:30 +0000 (Thu, 02 May 2013)
Log Message:
-----------
only 'cosmetic' changes to make this look more like smod.c

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

Modified: brlcad/trunk/src/sig/dmod.c
===================================================================
--- brlcad/trunk/src/sig/dmod.c 2013-05-02 19:26:23 UTC (rev 55296)
+++ brlcad/trunk/src/sig/dmod.c 2013-05-02 19:31:30 UTC (rev 55297)
@@ -19,18 +19,18 @@
  */
 /** @file dmod.c
  *
- *  Modify a stream of doubles.
+ * Modify a stream of doubles.
  *
- *  Allows any number of add, subtract, multiply, divide, or
- *  exponentiation operations to be performed on a stream of values.
+ * Allows any number of add, subtract, multiply, divide, or
+ * exponentiation operations to be performed on a stream of values.
  *
  */
 
 #include "common.h"
 
 #include <stdlib.h>
+#include <string.h>
 #include <math.h>
-#include <string.h>
 #include "bio.h"
 
 #include "bu.h"
@@ -41,28 +41,27 @@
 FILE   *infp = NULL;
 
 
-#define        ADD     1
-#define MULT   2
-#define        ABS     3
-#define        POW     4
+#define ADD 1
+#define MULT 2
+#define ABS 3
+#define POW 4
+#define BUFLEN 4096
 
-#define        BUFLEN  4096
+int numop = 0;         /* number of operations */
+int op[256] = {0};             /* operations */
+double val[256] = {0.0};               /* arguments to operations */
+double buf[BUFLEN] = {0.0};            /* working buffer */
 
-int    numop = 0;              /* number of operations */
-int    op[256] = {0};          /* operations */
-double val[256] = {0.0};               /* arguments to operations */
-double buf[BUFLEN] = {0.0};            /* working buffer */
+static const char usage[] = "Usage: dmod [-a add | -s sub | -m mult | -d div | 
-A | -e exp | -r root] [doubles]\n";
 
-static const char usage[] = "Usage: dmod {-a add -s sub -m mult -d div -A(abs) 
-e exp -r root} [doubles]\n";
-
 int
 get_args(int argc, char **argv)
 {
     int c;
-    double     d;
+    double d;
 
-    while ( (c = bu_getopt( argc, argv, "a:s:m:d:Ae:r:h?" )) != -1 )  {
-       switch ( c )  {
+    while ((c = bu_getopt(argc, argv, "a:s:m:d:Ae:r:h?")) != -1) {
+       switch (c) {
            case 'a':
                op[ numop ] = ADD;
                val[ numop++ ] = atof(bu_optarg);

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