Revision: 55593
          http://sourceforge.net/p/brlcad/code/55593
Author:   brlcad
Date:     2013-05-29 21:45:14 +0000 (Wed, 29 May 2013)
Log Message:
-----------
usage functions should be static, top-level function scope curlies go on their 
own line, and indent first level with 4 spaces not tab.

Modified Paths:
--------------
    brlcad/trunk/src/anim/anim_track.c
    brlcad/trunk/src/anim/anim_turn.c
    brlcad/trunk/src/anim/chan_add.c
    brlcad/trunk/src/anim/chan_mult.c
    brlcad/trunk/src/anim/chan_permute.c

Modified: brlcad/trunk/src/anim/anim_track.c
===================================================================
--- brlcad/trunk/src/anim/anim_track.c  2013-05-29 21:18:48 UTC (rev 55592)
+++ brlcad/trunk/src/anim/anim_track.c  2013-05-29 21:45:14 UTC (rev 55593)
@@ -123,7 +123,8 @@
 double first_tracklen;
 
 static void
-usage(const char *argv0) {
+usage(const char *argv0)
+{
     bu_log("Usage: %s [options] wheelfile < in.table > out.script\n", argv0);
     bu_log("\n\tOptions:\n");
     bu_log("\t  [-w parent/basename] to specify wheels to animate\n");

Modified: brlcad/trunk/src/anim/anim_turn.c
===================================================================
--- brlcad/trunk/src/anim/anim_turn.c   2013-05-29 21:18:48 UTC (rev 55592)
+++ brlcad/trunk/src/anim/anim_turn.c   2013-05-29 21:45:14 UTC (rev 55593)
@@ -53,7 +53,8 @@
 
 
 static void
-usage(void){
+usage(void)
+{
     fprintf(stderr,"Usage: anim_turn -l length [-a angle] [-r radius] [-f 
factor] [-p integer] < in.table > out.table\n");
 }
 

Modified: brlcad/trunk/src/anim/chan_add.c
===================================================================
--- brlcad/trunk/src/anim/chan_add.c    2013-05-29 21:18:48 UTC (rev 55592)
+++ brlcad/trunk/src/anim/chan_add.c    2013-05-29 21:45:14 UTC (rev 55593)
@@ -31,10 +31,11 @@
 #include "bio.h"
 #include "bu.h"
 
-void
-printusage (void) {
-       fprintf(stderr, "Usage: chan_add value num_columns column [column ...] 
< in.file > out.file\n");
-       bu_exit(-1, NULL);
+static void
+printusage (void)
+{
+    fprintf(stderr, "Usage: chan_add value num_columns column [column ...] < 
in.file > out.file\n");
+    bu_exit(-1, NULL);
 }
 
 int

Modified: brlcad/trunk/src/anim/chan_mult.c
===================================================================
--- brlcad/trunk/src/anim/chan_mult.c   2013-05-29 21:18:48 UTC (rev 55592)
+++ brlcad/trunk/src/anim/chan_mult.c   2013-05-29 21:45:14 UTC (rev 55593)
@@ -31,10 +31,11 @@
 #include "bio.h"
 #include "bu.h"
 
-void
-printusage (void) {
-       fprintf(stderr, "Usage: chan_mult factor num_columns column [col ... ] 
< in.file > out.file\n");
-       bu_exit(-1, NULL);
+static void
+printusage (void)
+{
+    fprintf(stderr, "Usage: chan_mult factor num_columns column [col ... ] < 
in.file > out.file\n");
+    bu_exit(-1, NULL);
 }
 
 int

Modified: brlcad/trunk/src/anim/chan_permute.c
===================================================================
--- brlcad/trunk/src/anim/chan_permute.c        2013-05-29 21:18:48 UTC (rev 
55592)
+++ brlcad/trunk/src/anim/chan_permute.c        2013-05-29 21:45:14 UTC (rev 
55593)
@@ -62,11 +62,12 @@
 char ihead[] = "-i";
 char ohead[] = "-o";
 
-void
-printusage (void) {
-       fprintf(stderr,
-               "Usage: chan_permute -i infile1 id id id ... [-i infile2 ...] 
-o outfile1 id id ... [-o outfile2 ...]\n");
-       bu_exit(-1, NULL);
+static void
+printusage (void)
+{
+    fprintf(stderr,
+           "Usage: chan_permute -i infile1 id id id ... [-i infile2 ...] -o 
outfile1 id id ... [-o outfile2 ...]\n");
+    bu_exit(-1, NULL);
 }
 
 int

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


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to