Revision: 52507
http://brlcad.svn.sourceforge.net/brlcad/?rev=52507&view=rev
Author: brlcad
Date: 2012-09-20 01:48:53 +0000 (Thu, 20 Sep 2012)
Log Message:
-----------
make show_dangling_edges() static, not public API. eliminate the
bot_fuse_option* globals, pull into local scope and mark static const.
Modified Paths:
--------------
brlcad/trunk/src/libged/bot_fuse.c
Modified: brlcad/trunk/src/libged/bot_fuse.c
===================================================================
--- brlcad/trunk/src/libged/bot_fuse.c 2012-09-20 00:19:43 UTC (rev 52506)
+++ brlcad/trunk/src/libged/bot_fuse.c 2012-09-20 01:48:53 UTC (rev 52507)
@@ -35,11 +35,8 @@
#include "./ged_private.h"
-/* bu_getopt() options */
-char *bot_fuse_options = "sp";
-char *bot_fuse_options_str = "[-s|-p]";
-size_t
+static size_t
show_dangling_edges(struct ged *gedp, const uint32_t *magic_p, const char
*name, int out_type)
{
struct loopuse *lu;
@@ -108,10 +105,10 @@
bu_vls_sprintf(&plot_file_name,
"%s.%zu.pl", name, magic_p);
if ((plotfp =
fopen(bu_vls_addr(&plot_file_name), "wb")) == (FILE *)NULL) {
bu_vls_free(&plot_file_name);
- bu_log("Error, unable to create plot
file (%s), open edge test failed.\n",
- bu_vls_addr(&plot_file_name));
+ bu_log("Error, unable to create plot
file (%s), open edge test failed.\n",
+ bu_vls_addr(&plot_file_name));
return 0;
- }
+ }
}
pdv_3line(plotfp, pt1, pt2);
}
@@ -162,6 +159,10 @@
size_t open_cnt;
struct bu_vls name_prefix = BU_VLS_INIT_ZERO;
+ /* bu_getopt() options */
+ static const char *bot_fuse_options = "sp";
+ static const char *bot_fuse_options_str = "[-s|-p]";
+
GED_CHECK_DATABASE_OPEN(gedp, GED_ERROR);
GED_CHECK_READ_ONLY(gedp, GED_ERROR);
GED_CHECK_ARGC_GT_0(gedp, argc, GED_ERROR);
@@ -289,9 +290,9 @@
nmg_km(m);
} else {
/* catch */
- BU_UNSETJUMP;
- bu_vls_printf(gedp->ged_result_str, "%s: %s fuse failed (2).\n",
argv[0], argv[i+1]);
- return GED_ERROR;
+ BU_UNSETJUMP;
+ bu_vls_printf(gedp->ged_result_str, "%s: %s fuse failed (2).\n",
argv[0], argv[i+1]);
+ return GED_ERROR;
}
RT_DB_INTERNAL_INIT(&intern2);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits