driconf: Stop quoting true/false in boolean option definitions.

Now that we're not trying to evade preprocessor macro expansion in
preprocessor string concatenation, we can use plain old bools in option
setup.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6916>
This commit is contained in:
Eric Anholt
2020-09-29 09:28:18 -07:00
committed by Marge Bot
parent 8a05d6ffc6
commit 6f3352b6a7
14 changed files with 96 additions and 101 deletions

View File

@@ -436,12 +436,7 @@ driParseOptionInfo(driOptionCache *info,
switch (opt->info.type) {
case DRI_BOOL:
if (strcmp(opt->value._string, "true") == 0)
optval->_bool = true;
else {
assert(strcmp(opt->value._string, "false") == 0);
optval->_bool = false;
}
optval->_bool = opt->value._bool;
break;
case DRI_INT: