Revision: 65570
          http://sourceforge.net/p/brlcad/code/65570
Author:   starseeker
Date:     2015-07-11 01:43:56 +0000 (Sat, 11 Jul 2015)
Log Message:
-----------
Switch how command to bu_argv_from_tcl_list - quick test seems to work.

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

Modified: brlcad/trunk/src/libged/how.c
===================================================================
--- brlcad/trunk/src/libged/how.c       2015-07-11 01:34:51 UTC (rev 65569)
+++ brlcad/trunk/src/libged/how.c       2015-07-11 01:43:56 UTC (rev 65570)
@@ -29,8 +29,8 @@
 #include <string.h>
 
 #include "bu/cmd.h"
+#include "bu/str.h"
 
-
 #include "./ged_private.h"
 
 
@@ -123,7 +123,7 @@
 
     list = bu_vls_addr(&vls);
 
-    if (Tcl_SplitList((Tcl_Interp *)brlcad_interp, list, &ac, &av_orig) != 
TCL_OK) {
+    if (bu_argv_from_tcl_list(list, &ac, &av_orig) != 0) {
        bu_vls_printf(gedp->ged_result_str, "-1");
        bu_vls_free(&vls);
        return (struct directory **)NULL;
@@ -153,7 +153,7 @@
            bu_vls_printf(gedp->ged_result_str, "-1");
 
            bu_free((void *)dpp, "_ged_build_dpp: directory pointers");
-           Tcl_Free((char *)av_orig);
+           bu_free((char *)av_orig, "free av_orig");
            bu_vls_free(&vls);
            return (struct directory **)NULL;
        }
@@ -161,7 +161,7 @@
 
     dpp[i] = RT_DIR_NULL;
 
-    Tcl_Free((char *)av_orig);
+    bu_free((char *)av_orig, "free av_orig");
     bu_vls_free(&vls);
     return dpp;
 }

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


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to