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

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

Modified: brlcad/trunk/src/conv/dxf/bot-bldxf.c
===================================================================
--- brlcad/trunk/src/conv/dxf/bot-bldxf.c       2013-08-28 04:35:15 UTC (rev 
57210)
+++ brlcad/trunk/src/conv/dxf/bot-bldxf.c       2013-08-28 05:12:37 UTC (rev 
57211)
@@ -395,9 +395,11 @@
 int
 r_start(struct db_tree_state *UNUSED(tsp), const struct db_full_path * pathp, 
const struct rt_comb_internal *UNUSED(combp), genptr_t client_data)
 {
-    size_t i;
     if (debug&DEBUG_NAMES) {
+       size_t i;
+
        bu_log("r_start %zu ", ((struct rt_bot_internal 
*)client_data)->num_vertices);
+
        for (i=0; i < pathp->fp_len; i++) {
            if (pathp->fp_len - (i+1)) {
                bu_log("%s/", pathp->fp_names[i]->d_namep);
@@ -413,9 +415,11 @@
 union tree *
 r_end(struct db_tree_state *UNUSED(tsp), const struct db_full_path * pathp, 
union tree * curtree, genptr_t client_data)
 {
-    size_t i;
     if (debug&DEBUG_NAMES) {
+       size_t i;
+
        bu_log("r_end %zu ", ((struct rt_bot_internal 
*)client_data)->num_vertices);
+
        for (i=0; i < pathp->fp_len; i++) {
            if (pathp->fp_len - (i+1)) {
                bu_log("%s/", pathp->fp_names[i]->d_namep);
@@ -476,10 +480,10 @@
 union tree *
 l_func(struct db_tree_state *UNUSED(tsp), const struct db_full_path * pathp, 
struct rt_db_internal * ip, genptr_t client_data)
 {
-    size_t i;
     struct rt_bot_internal *bot;
 
     if (debug&DEBUG_NAMES) {
+       size_t i;
        for (i=0; i < pathp->fp_len; i++) {
            if (pathp->fp_len - (i+1)) {
                bu_log("%s/", pathp->fp_names[i]->d_namep);

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