Revision: 57215
          http://sourceforge.net/p/brlcad/code/57215
Author:   brlcad
Date:     2013-08-28 12:26:53 +0000 (Wed, 28 Aug 2013)
Log Message:
-----------
reduce var scope

Modified Paths:
--------------
    brlcad/trunk/src/conv/dxf/dxf-g.c
    brlcad/trunk/src/conv/dxf/g-dxf.c

Modified: brlcad/trunk/src/conv/dxf/dxf-g.c
===================================================================
--- brlcad/trunk/src/conv/dxf/dxf-g.c   2013-08-28 08:12:20 UTC (rev 57214)
+++ brlcad/trunk/src/conv/dxf/dxf-g.c   2013-08-28 12:26:53 UTC (rev 57215)
@@ -885,11 +885,12 @@
                        polyline_vertex_count = 0;
                    }
                } else {
-                   int i;
                    struct edgeuse *eu;
                    struct vertex *v0=NULL, *v1=NULL, *v2=NULL;
 
                    if (polyline_vertex_count > 1) {
+                       int i;
+
                        if (!layers[curr_layer]->m) {
                            create_nmg();
                        }
@@ -1898,10 +1899,6 @@
     char *copyOfText;
     char *c, *cp;
     vect_t diff;
-    double allowedLength;
-    double xScale=1.0;
-    double yScale=1.0;
-    double scale;
     struct bu_list vhead;
     int maxLineLen=0;
 
@@ -1916,6 +1913,11 @@
     stringLength = strlen(copyOfText);
 
     if (horizAlignment == FIT && vertAlignment == BASELINE) {
+       double allowedLength;
+       double xScale=1.0;
+       double yScale=1.0;
+       double scale;
+
        /* fit along baseline */
        VSUB2(diff, firstAlignmentPoint, secondAlignmentPoint);
        allowedLength = MAGNITUDE(diff);

Modified: brlcad/trunk/src/conv/dxf/g-dxf.c
===================================================================
--- brlcad/trunk/src/conv/dxf/g-dxf.c   2013-08-28 08:12:20 UTC (rev 57214)
+++ brlcad/trunk/src/conv/dxf/g-dxf.c   2013-08-28 12:26:53 UTC (rev 57215)
@@ -389,9 +389,8 @@
 int
 main(int argc, char *argv[])
 {
-    int        c;
-    double             percent;
-    int                i;
+    int c;
+    double percent;
 
     bu_setlinebuf(stderr);
 
@@ -502,6 +501,8 @@
     RT_CK_TESS_TOL(tree_state.ts_ttol);
 
     if (verbose) {
+       int i;
+
        bu_log("Model: %s\n", argv[0]);
        bu_log("Objects:");
        for (i = 1; i < argc; i++)

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


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to