projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed2f95
)
util: Recognize FALSE and F in debug_get_bool_option
author
Jakob Bornecrantz
<jakob@vmware.com>
Thu, 6 May 2010 14:42:18 +0000
(15:42 +0100)
committer
Jakob 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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_debug.c
b/src/gallium/auxiliary/util/u_debug.c
index 0de38e791d6661a43d137abbfabbe62aa2de8894..86db2c2e4b49db693d0810e0fddc785aa866a049 100644
(file)
--- 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;