Lines Matching refs:opt
470 uint32_t opt = data->curOption;
478 if (!parseValue (&v, data->cache->info[opt].type, value))
480 if (!checkValue (&v, &data->cache->info[opt]))
512 uint32_t opt, i;
523 opt = findOption (cache, attrVal[OA_NAME]);
524 if (cache->info[opt].name)
526 data->curOption = opt;
528 XSTRDUP (cache->info[opt].name, attrVal[OA_NAME]);
531 cache->info[opt].type = DRI_BOOL;
533 cache->info[opt].type = DRI_ENUM;
535 cache->info[opt].type = DRI_INT;
537 cache->info[opt].type = DRI_FLOAT;
539 cache->info[opt].type = DRI_STRING;
543 defaultVal = getenv (cache->info[opt].name);
548 cache->info[opt].name);
551 if (!parseValue (&cache->values[opt], cache->info[opt].type, defaultVal))
552 XML_FATAL ("illegal default value for %s: %s.", cache->info[opt].name, defaultVal);
555 if (cache->info[opt].type == DRI_BOOL)
557 if (!parseRanges (&cache->info[opt], attrVal[OA_VALID]))
559 if (!checkValue (&cache->values[opt], &cache->info[opt]))
562 } else if (cache->info[opt].type == DRI_ENUM) {
565 cache->info[opt].nRanges = 0;
566 cache->info[opt].ranges = NULL;
773 uint32_t opt = findOption (cache, name);
774 if (cache->info[opt].name == NULL)
778 else if (getenv (cache->info[opt].name))
781 cache->info[opt].name);
782 else if (!parseValue (&cache->values[opt], cache->info[opt].type, value))