Lines Matching refs:attrVal
551 const XML_Char *attrVal[OA_COUNT] = {NULL, NULL, NULL, NULL}; in parseOptInfoAttr() local
559 attrVal[attrName] = attr[i+1]; in parseOptInfoAttr()
561 if (!attrVal[OA_NAME]) XML_FATAL1 ("name attribute missing in option."); in parseOptInfoAttr()
562 if (!attrVal[OA_TYPE]) XML_FATAL1 ("type attribute missing in option."); in parseOptInfoAttr()
563 if (!attrVal[OA_DEFAULT]) XML_FATAL1 ("default attribute missing in option."); in parseOptInfoAttr()
565 opt = findOption (cache, attrVal[OA_NAME]); in parseOptInfoAttr()
567 XML_FATAL ("option %s redefined.", attrVal[OA_NAME]); in parseOptInfoAttr()
570 XSTRDUP (cache->info[opt].name, attrVal[OA_NAME]); in parseOptInfoAttr()
572 if (!strcmp (attrVal[OA_TYPE], "bool")) in parseOptInfoAttr()
574 else if (!strcmp (attrVal[OA_TYPE], "enum")) in parseOptInfoAttr()
576 else if (!strcmp (attrVal[OA_TYPE], "int")) in parseOptInfoAttr()
578 else if (!strcmp (attrVal[OA_TYPE], "float")) in parseOptInfoAttr()
581 XML_FATAL ("illegal type in option: %s.", attrVal[OA_TYPE]); in parseOptInfoAttr()
590 defaultVal = attrVal[OA_DEFAULT]; in parseOptInfoAttr()
594 if (attrVal[OA_VALID]) { in parseOptInfoAttr()
597 if (!parseRanges (&cache->info[opt], attrVal[OA_VALID])) in parseOptInfoAttr()
598 XML_FATAL ("illegal valid attribute: %s.", attrVal[OA_VALID]); in parseOptInfoAttr()
601 attrVal[OA_VALID], defaultVal); in parseOptInfoAttr()