util: Recognize FALSE and F in debug_get_bool_option
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 6 May 2010 14:42:18 +0000 (15:42 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 6 May 2010 14:45:20 +0000 (15:45 +0100)
Concidering that we actually print FALSE when displaying the
option we should also accept that value.

src/gallium/auxiliary/util/u_debug.c

index 0de38e791d6661a43d137abbfabbe62aa2de8894..86db2c2e4b49db693d0810e0fddc785aa866a049 100644 (file)
@@ -123,8 +123,12 @@ debug_get_bool_option(const char *name, boolean dfault)
       result = FALSE;
    else if(!util_strcmp(str, "f"))
       result = FALSE;
+   else if(!util_strcmp(str, "F"))
+      result = FALSE;
    else if(!util_strcmp(str, "false"))
       result = FALSE;
+   else if(!util_strcmp(str, "FALSE"))
+      result = FALSE;
    else
       result = TRUE;