Revision: 65238
http://sourceforge.net/p/brlcad/code/65238
Author: starseeker
Date: 2015-06-10 15:24:08 +0000 (Wed, 10 Jun 2015)
Log Message:
-----------
Add true/false variations to booleanize.c
Modified Paths:
--------------
brlcad/trunk/src/libbu/booleanize.c
Modified: brlcad/trunk/src/libbu/booleanize.c
===================================================================
--- brlcad/trunk/src/libbu/booleanize.c 2015-06-10 15:00:25 UTC (rev 65237)
+++ brlcad/trunk/src/libbu/booleanize.c 2015-06-10 15:24:08 UTC (rev 65238)
@@ -58,6 +58,17 @@
return 0;
}
+ /* exactly "f" or "F" (for false) */
+ if (BU_STR_EQUIV(newstr, "f")) {
+ bu_vls_free(&vls);
+ return 0;
+ }
+
+ /* exact case insensitive match for "false" */
+ if (BU_STR_EQUIV(newstr, "false")) {
+ bu_vls_free(&vls);
+ return 0;
+ }
/* exactly "0" */
if (BU_STR_EQUAL(newstr, "0")) {
bu_vls_free(&vls);
@@ -85,6 +96,18 @@
return 1;
}
+ /* exactly "t" or "T" (for true) */
+ if (BU_STR_EQUIV(newstr, "t")) {
+ bu_vls_free(&vls);
+ return 1;
+ }
+
+ /* exact case insensitive match for "true" */
+ if (BU_STR_EQUIV(newstr, "true")) {
+ bu_vls_free(&vls);
+ return 1;
+ }
+
/* exactly "1" */
if (BU_STR_EQUAL(newstr, "1")) {
bu_vls_free(&vls);
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