[brlcad-commits] SF.net SVN: brlcad:[57211] brlcad/trunk/src/conv/dxf/bot-bldxf.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2013-08-28 05:12:40
|
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. |