Lines Matching refs:attrVal
575 const XML_Char *attrVal[OA_COUNT] = {NULL, NULL, NULL, NULL};
583 attrVal[attrName] = attr[i+1];
585 if (!attrVal[OA_NAME]) XML_FATAL1 ("name attribute missing in option.");
586 if (!attrVal[OA_TYPE]) XML_FATAL1 ("type attribute missing in option.");
587 if (!attrVal[OA_DEFAULT]) XML_FATAL1 ("default attribute missing in option.");
589 opt = findOption (cache, attrVal[OA_NAME]);
591 XML_FATAL ("option %s redefined.", attrVal[OA_NAME]);
594 XSTRDUP (cache->info[opt].name, attrVal[OA_NAME]);
596 if (!strcmp (attrVal[OA_TYPE], "bool"))
598 else if (!strcmp (attrVal[OA_TYPE], "enum"))
600 else if (!strcmp (attrVal[OA_TYPE], "int"))
602 else if (!strcmp (attrVal[OA_TYPE], "float"))
604 else if (!strcmp (attrVal[OA_TYPE], "string"))
607 XML_FATAL ("illegal type in option: %s.", attrVal[OA_TYPE]);
616 defaultVal = attrVal[OA_DEFAULT];
620 if (attrVal[OA_VALID]) {
623 if (!parseRanges (&cache->info[opt], attrVal[OA_VALID]))
624 XML_FATAL ("illegal valid attribute: %s.", attrVal[OA_VALID]);
627 attrVal[OA_VALID], defaultVal);