Revision: 65118
http://sourceforge.net/p/brlcad/code/65118
Author: starseeker
Date: 2015-05-30 19:37:11 +0000 (Sat, 30 May 2015)
Log Message:
-----------
Convenience definition for non-opt finds
Modified Paths:
--------------
brlcad/trunk/include/bu/opt.h
brlcad/trunk/src/conv/gcv/gcv.cpp
Modified: brlcad/trunk/include/bu/opt.h
===================================================================
--- brlcad/trunk/include/bu/opt.h 2015-05-30 19:06:38 UTC (rev 65117)
+++ brlcad/trunk/include/bu/opt.h 2015-05-30 19:37:11 UTC (rev 65118)
@@ -39,6 +39,10 @@
/* Pick an arbitrary maximum pending a good reason to pick some specific value
*/
#define BU_OPT_MAX_ARGS 2000
+/* Make a human-readable define for using bu_opt_find to retrieve argv entries
+ * that were not associated with options */
+#define BU_NON_OPTS -1
+
struct bu_opt_data; /* Forward declaration for bu_opt_desc */
/**
Modified: brlcad/trunk/src/conv/gcv/gcv.cpp
===================================================================
--- brlcad/trunk/src/conv/gcv/gcv.cpp 2015-05-30 19:06:38 UTC (rev 65117)
+++ brlcad/trunk/src/conv/gcv/gcv.cpp 2015-05-30 19:37:11 UTC (rev 65118)
@@ -357,7 +357,7 @@
/* If not specified explicitly with -i or -o, the input and output paths
must always
* be the last two arguments supplied */
- d = bu_opt_find(-1, results);
+ d = bu_opt_find(BU_NON_OPTS, results);
if (d) {
unknown_tbl = d->args;
if (unknown_tbl && BU_PTBL_LEN(unknown_tbl) > 1)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits