Lines Matching refs:name

55     Sorts by category of the feature name string:
63 if feature.name.startswith('VKSC'):
81 """Sort key for regSortFeatures - key is the extension name."""
83 return feature.name
323 # categoryToPath - map XML 'category' to include file directory name
333 def breakName(self, name, msg):
334 """Break into debugger if this is a special name"""
340 if name in bad and True:
341 print('breakName {}: {}'.format(name, msg))
355 """The current feature name being generated."""
429 'extbase' extension name, which is then cast to the
433 - An 'alias' attribute contains the name of another enum
441 name = elem.get('name')
458 self.logMsg('diag', 'Enum', name, '-> value [', numVal, ',', value, ']')
469 self.logMsg('diag', 'Enum', name, '-> bitpos [', numVal, ',', value, ']')
479 self.logMsg('diag', 'Enum', name, 'offset =', offset,
489 self.logMsg('diag', 'Enum', name, '-> offset [', numVal, ',', value, ']')
497 sib_name = sib.get('name')
509 # Dictionaries indexed by name and numeric value.
510 # Entries are [ Element, numVal, strVal ] matching name or value
517 name = elem.get('name')
520 if name in nameMap:
521 # Duplicate name found; check values
522 (name2, numVal2, strVal2) = nameMap[name]
524 # Duplicate enum values for the same name are benign. This
530 # self.logMsg('info', 'checkDuplicateEnums: Duplicate enum (' + name +
533 self.logMsg('warn', 'checkDuplicateEnums: Duplicate enum (' + name
545 name, name2.get('name'), strVal)
549 nameMap[name] = [elem, numVal, strVal]
620 flagTypeName = groupElem.get('name')
653 name = elem.get('name')
657 self.logMsg('error', 'Allowable range for flag types in C is [', minValidValue, ',', maxValidValue, '], but', name, 'flag has a value outside of this (', strVal, ')\n')
660 decl = self.genRequirements(name, mustBeFound = False)
668 decl += "#define {} {}\n".format(name, strVal)
670 decl += "static constexpr {} {} {{{}}};\n".format(flagTypeName, name, strVal)
676 alias = self.registry.tree.find("enums/enum[@name='" + strVal + "']")
680 self.logMsg('error', 'No such alias {} for enum {}'.format(strVal, name))
681 decl += "static const {} {} = {};\n".format(flagTypeName, name, strVal)
702 # Break the group name into prefix and suffix portions for range
750 name = elem.get('name')
761 requirements = self.genRequirements(name, mustBeFound = False)
765 decl += ' {} = {},'.format(name, strVal)
777 self.logMsg('error', 'Allowable range for C enum types is [', minValidValue, ',', maxValidValue, '], but', name, 'has a value outside of this (', strVal, ')\n')
783 minName = maxName = name
786 minName = name
789 maxName = name
818 def buildConstantCDecl(self, enuminfo, name, alias):
837 body = 'static constexpr ' + typeStr.ljust(9) + name.ljust(33) + ' {' + strVal + '};'
853 body = '#define ' + name.ljust(33) + ' ' + strVal;
855 body = '#define ' + name.ljust(33) + ' ' + strVal
926 shutil.copy(self.outFile.name, self.genOpts.directory + '/' + self.genOpts.filename)
927 os.remove(self.outFile.name)
936 self.featureName = interface.get('name')
947 def genRequirements(self, name, mustBeFound = True):
954 - name - name of the API
955 - mustBeFound - If True, when requirements for 'name' cannot be
967 def genType(self, typeinfo, name, alias):
973 self.validateFeature('type', name)
1003 - name - enum name
1056 def makeProtoName(self, name, tail):
1057 """Turn a `<proto>` `<name>` into C-language prototype
1058 and typedef declarations for that name.
1060 - name - contents of `<name>` tag
1064 return self.genOpts.apientry + name + tail
1066 def makeTypedefName(self, name, tail):
1067 """Make the function-pointer typedef name for a command."""
1070 return '(' + self.genOpts.apientryp + 'PFN_' + name + tail + ')'
1078 - aligncol - if non-zero, attempt to align the nested `<name>` element
1095 if elem.tag == 'name' and aligncol > 0:
1135 # Allow for missing <name> tag
1145 if elem.tag == 'name':
1272 self.logMsg('diag', 'isEnumRequired:', elem.get('name'),
1309 # Insert the function return type/name.
1310 # For prototypes, add APIENTRY macro before the name
1311 # For typedefs, add (APIENTRY *<name>) around the name and
1319 # For each child element, if it is a <name> wrap in appropriate
1324 if elem.tag == 'name':