Revision: 56409
          http://sourceforge.net/p/brlcad/code/56409
Author:   tbrowder2
Date:     2013-08-01 12:37:35 +0000 (Thu, 01 Aug 2013)
Log Message:
-----------
move usage string into file with main; eliminate unnecessary function

Modified Paths:
--------------
    brlcad/trunk/src/burst/burst.c
    brlcad/trunk/src/burst/extern.h
    brlcad/trunk/src/burst/prnt.c

Modified: brlcad/trunk/src/burst/burst.c
===================================================================
--- brlcad/trunk/src/burst/burst.c      2013-08-01 10:02:51 UTC (rev 56408)
+++ brlcad/trunk/src/burst/burst.c      2013-08-01 12:37:35 UTC (rev 56409)
@@ -177,6 +177,11 @@
     return;
 }
 
+static const char usage[] =
+    "Usage: burst [-b] [-p|-P]\n"
+    "\tThe -b option suppresses the screen display (for batch jobs).\n"
+    "\tThe -p/-P options specifies whether to plot points or lines."
+;
 
 /*
   int main(int argc, char *argv[])
@@ -190,8 +195,8 @@
     if (!tmpfp) {
        bu_exit(EXIT_FAILURE, "ERROR: Unable to create temporary file.\n");
     }
-    if (! parsArgv(argc, argv)) {
-       prntUsage();
+    if (!parsArgv(argc, argv)) {
+        (void)fprintf(stderr, "%s\n", usage);
        return EXIT_FAILURE;
     }
 

Modified: brlcad/trunk/src/burst/extern.h
===================================================================
--- brlcad/trunk/src/burst/extern.h     2013-08-01 10:02:51 UTC (rev 56408)
+++ brlcad/trunk/src/burst/extern.h     2013-08-01 12:37:35 UTC (rev 56409)
@@ -90,7 +90,6 @@
 extern void prompt();
 extern void readCmdFile();
 extern void warning();
-extern void prntUsage();
 extern void clr_Tabs();
 extern void prntShieldComp();
 extern void qFree();

Modified: brlcad/trunk/src/burst/prnt.c
===================================================================
--- brlcad/trunk/src/burst/prnt.c       2013-08-01 10:02:51 UTC (rev 56408)
+++ brlcad/trunk/src/burst/prnt.c       2013-08-01 12:37:35 UTC (rev 56409)
@@ -889,23 +889,7 @@
 }
 
 
-static char *usage[] =
-{
-    "Usage: burst [-b] [-p|-P]",
-    "\tThe -b option suppresses the screen display (for batch jobs).",
-    "\tThe -p/-P options specifies whether to plot points or lines.",
-    NULL
-};
 void
-prntUsage()
-{
-    char **p = usage;
-    while (*p != NULL)
-       (void) fprintf(stderr, "%s\n", *p++);
-}
-
-
-void
 prompt(char *str)
 {
     (void) ScMvCursor(PROMPT_X, PROMPT_Y);

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


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to