Revision: 68926
          http://sourceforge.net/p/brlcad/code/68926
Author:   starseeker
Date:     2016-09-28 18:34:41 +0000 (Wed, 28 Sep 2016)
Log Message:
-----------
Restore original tests for on/off for the nN and yY cases to make unit testing 
work again.  Need to check if the new behavior was/is preferred - if so, need 
to update tests.

Modified Paths:
--------------
    brlcad/trunk/src/libbu/booleanize.c

Modified: brlcad/trunk/src/libbu/booleanize.c
===================================================================
--- brlcad/trunk/src/libbu/booleanize.c 2016-09-28 14:54:22 UTC (rev 68925)
+++ brlcad/trunk/src/libbu/booleanize.c 2016-09-28 18:34:41 UTC (rev 68926)
@@ -52,8 +52,8 @@
        return 0;
     }
 
-    /* case-insensitive "no" */
-    if (BU_STR_EQUIV(newstr, "n") || BU_STR_EQUIV(newstr, "no")) {
+    /* starts with 'n', [nN]* looks like 'no' */
+    if (newstr[0] == 'n' || newstr[0] == 'N') {
        bu_vls_free(&vls);
        return 0;
     }
@@ -85,8 +85,8 @@
 
     /* true value from here on out */
 
-    /* case-insensitive "yes" */
-    if (BU_STR_EQUIV(newstr, "y") || BU_STR_EQUIV(newstr, "yes")) {
+    /* starts with 'y', [yY]* looks like 'yes' */
+    if (newstr[0] == 'y' || newstr[0] == 'Y') {
        bu_vls_free(&vls);
        return 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

Reply via email to