Revision: 57168
          http://sourceforge.net/p/brlcad/code/57168
Author:   brlcad
Date:     2013-08-27 04:35:33 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
reduce variable scope

Modified Paths:
--------------
    brlcad/trunk/src/burst/Hm.c
    brlcad/trunk/src/burst/grid.c
    brlcad/trunk/src/bwish/tcl.c

Modified: brlcad/trunk/src/burst/Hm.c
===================================================================
--- brlcad/trunk/src/burst/Hm.c 2013-08-27 04:32:12 UTC (rev 57167)
+++ brlcad/trunk/src/burst/Hm.c 2013-08-27 04:35:33 UTC (rev 57168)
@@ -344,7 +344,6 @@
 HmPutBorder(HmWindow *win, int row, char mark)
 {
     int i;
-    int bit = 1;
     int col = win->menux;
     int bitmap = win->dirty[row - win->menuy];
     static char buf[HmMAXLINE];
@@ -361,6 +360,8 @@
        (void) ScMvCursor(col, row);
        (void) fputs(buf, stdout);
     } else {
+       int bit = 1;
+
        for (i = 0; i < p - buf; i++)
            PutMenuChar(buf[i], col, row, bitmap, bit);
     }

Modified: brlcad/trunk/src/burst/grid.c
===================================================================
--- brlcad/trunk/src/burst/grid.c       2013-08-27 04:32:12 UTC (rev 57167)
+++ brlcad/trunk/src/burst/grid.c       2013-08-27 04:35:33 UTC (rev 57168)
@@ -423,7 +423,6 @@
        and imagined (implicit).
     */
     for (pp = pt_headp->pt_forw; pp != pt_headp; pp = pp->pt_forw) {
-       fastf_t los = 0.0;
        int     voidflag = 0;
        struct partition *np = pp->pt_forw;
        struct partition *cp;
@@ -445,6 +444,8 @@
 
        /* Check for voids. */
        if (np != pt_headp) {
+           fastf_t los = 0.0;
+
 #if DEBUG_GRID
            brst_log("\tprocessing region '%s', \tid=%d\taircode=%d\n",
                     pp->pt_regionp->reg_name,

Modified: brlcad/trunk/src/bwish/tcl.c
===================================================================
--- brlcad/trunk/src/bwish/tcl.c        2013-08-27 04:32:12 UTC (rev 57167)
+++ brlcad/trunk/src/bwish/tcl.c        2013-08-27 04:35:33 UTC (rev 57168)
@@ -100,7 +100,6 @@
     char *filename = NULL;
     char *args = NULL;
     char buf[TCL_INTEGER_SPACE] = {0};
-    int status;
     Tcl_DString argString;
 
     bu_setprogname(argv[0]);
@@ -143,6 +142,8 @@
     }
 
     if (filename != NULL) {
+       int status;
+
        /* ??? need to arrange for a bu_log handler and or handlers
         * for stdout/stderr?
         */

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


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to