Revision: 57236
          http://sourceforge.net/p/brlcad/code/57236
Author:   tbrowder2
Date:     2013-08-28 20:39:08 +0000 (Wed, 28 Aug 2013)
Log Message:
-----------
move var to func scope in preparation for refactoring

Modified Paths:
--------------
    brlcad/trunk/src/libged/attr.c

Modified: brlcad/trunk/src/libged/attr.c
===================================================================
--- brlcad/trunk/src/libged/attr.c      2013-08-28 20:09:54 UTC (rev 57235)
+++ brlcad/trunk/src/libged/attr.c      2013-08-28 20:39:08 UTC (rev 57236)
@@ -116,6 +116,8 @@
     const char VALUE[]        = "value";
     const char VALUE_NOCASE[] = "value-nocase";
 
+    /* for pretty printing */
+    int max_attr_name_len  = 0;
 
     GED_CHECK_DATABASE_OPEN(gedp, GED_ERROR);
     GED_CHECK_ARGC_GT_0(gedp, argc, GED_ERROR);
@@ -156,8 +158,6 @@
     qsort(&avs.avp[0], avs.count, sizeof(struct bu_attribute_value_pair), 
_ged_cmpattr);
 
     if (BU_STR_EQUAL(argv[1], SORT)) {
-       int max_attr_name_len = 0;
-
        /* pretty print */
        if ((_ged_pretty_print(gedp, dp, argv[2])) != GED_OK)
            return GED_ERROR;
@@ -309,7 +309,6 @@
        /* avs is freed by db5_replace_attributes() */
 
     } else if (BU_STR_EQUAL(argv[1], SHOW)) {
-       int max_attr_name_len = 0;
        int tabs1 = 0;
 
        /* pretty print */

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