Mesa (master): util: Recognize FALSE and F in debug_get_bool_option

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Thu May 6 14:45:17 UTC 2010


Module: Mesa
Branch: master
Commit: f587615e13cf55504c6060d4621506d65b608774
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f587615e13cf55504c6060d4621506d65b608774

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Thu May  6 15:42:18 2010 +0100

util: Recognize FALSE and F in debug_get_bool_option

Concidering that we actually print FALSE when displaying the
option we should also accept that value.

---

 src/gallium/auxiliary/util/u_debug.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index 0de38e7..86db2c2 100644
--- a/src/gallium/auxiliary/util/u_debug.c
+++ b/src/gallium/auxiliary/util/u_debug.c
@@ -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;
 




More information about the mesa-commit mailing list