Revision: 65286
http://sourceforge.net/p/brlcad/code/65286
Author: starseeker
Date: 2015-06-12 20:49:42 +0000 (Fri, 12 Jun 2015)
Log Message:
-----------
Tweak example code
Modified Paths:
--------------
brlcad/trunk/include/bu/opt.h
Modified: brlcad/trunk/include/bu/opt.h
===================================================================
--- brlcad/trunk/include/bu/opt.h 2015-06-12 20:46:53 UTC (rev 65285)
+++ brlcad/trunk/include/bu/opt.h 2015-06-12 20:49:42 UTC (rev 65286)
@@ -48,9 +48,9 @@
* static int i = 0;
* static fastf_t f = 0.0;
* struct bu_opt_desc opt_defs[] = {
- * {"h", "help", NULL, (void *)&ph , "", help_str},
- * {"n", "num", &bu_opt_int, (void *)&i, "#", "Read int"},
- * {"f", "fastf_t", &bu_opt_fastf_t, (void *)&f, "#", "Read float"},
+ * {"h", "help", "", NULL, (void *)&ph, help_str},
+ * {"n", "num", "#", &bu_opt_int, (void *)&i, "Read int"},
+ * {"f", "fastf_t", "#", &bu_opt_fastf_t, (void *)&f, "Read float"},
* BU_OPT_DESC_NULL
* };
* @endcode
@@ -69,9 +69,9 @@
* int i = 0;
* fastf_t f = 0.0;
* struct bu_opt_desc opt_defs[4];
- * BU_OPT(opt_defs[0], "h", "help", NULL, (void *)&ph, "",
help_str);
- * BU_OPT(opt_defs[1], "n", "num", &bu_opt_ind, (void *)&i, "#",
"Read int");
- * BU_OPT(opt_defs[2], "f", "fastf_t", &bu_opt_fastf_t, (void *)&f, "#",
"Read float");
+ * BU_OPT(opt_defs[0], "h", "help", "", NULL, (void *)&ph,
help_str);
+ * BU_OPT(opt_defs[1], "n", "num", "#", &bu_opt_ind, (void *)&i,
"Read int");
+ * BU_OPT(opt_defs[2], "f", "fastf_t", "#", &bu_opt_fastf_t, (void *)&f,
"Read float");
* BU_OPT_NULL(opt_defs[3]);
* @endcode
*
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