Lines Matching refs:attrVal
555 const XML_Char *attrVal[OA_COUNT] = {NULL, NULL, NULL, NULL}; in parseOptInfoAttr() local
563 attrVal[attrName] = attr[i+1]; in parseOptInfoAttr()
565 if (!attrVal[OA_NAME]) XML_FATAL1 ("name attribute missing in option."); in parseOptInfoAttr()
566 if (!attrVal[OA_TYPE]) XML_FATAL1 ("type attribute missing in option."); in parseOptInfoAttr()
567 if (!attrVal[OA_DEFAULT]) XML_FATAL1 ("default attribute missing in option."); in parseOptInfoAttr()
569 opt = findOption (cache, attrVal[OA_NAME]); in parseOptInfoAttr()
571 XML_FATAL ("option %s redefined.", attrVal[OA_NAME]); in parseOptInfoAttr()
574 XSTRDUP (cache->info[opt].name, attrVal[OA_NAME]); in parseOptInfoAttr()
576 if (!strcmp (attrVal[OA_TYPE], "bool")) in parseOptInfoAttr()
578 else if (!strcmp (attrVal[OA_TYPE], "enum")) in parseOptInfoAttr()
580 else if (!strcmp (attrVal[OA_TYPE], "int")) in parseOptInfoAttr()
582 else if (!strcmp (attrVal[OA_TYPE], "float")) in parseOptInfoAttr()
584 else if (!strcmp (attrVal[OA_TYPE], "string")) in parseOptInfoAttr()
587 XML_FATAL ("illegal type in option: %s.", attrVal[OA_TYPE]); in parseOptInfoAttr()
596 defaultVal = attrVal[OA_DEFAULT]; in parseOptInfoAttr()
600 if (attrVal[OA_VALID]) { in parseOptInfoAttr()
603 if (!parseRanges (&cache->info[opt], attrVal[OA_VALID])) in parseOptInfoAttr()
604 XML_FATAL ("illegal valid attribute: %s.", attrVal[OA_VALID]); in parseOptInfoAttr()
607 attrVal[OA_VALID], defaultVal); in parseOptInfoAttr()