Lines Matching refs:enum
44 # Mapping from enum value to (name, priority) tuples.
46 # Mapping from enum name to value
68 * Compare a key enum value to an element in the \c enum_string_table_offsets array.
74 * \param a Pointer to the desired enum name.
86 * This function always returns a string. If the number is a valid enum, it
87 * returns the enum name. Otherwise, it returns a numeric string.
134 /* Get the name of an enum given that it is a primitive type. Avoids
164 # We express the very long concatenation of enum strings as an array
167 for enum in sorted_enum_values:
168 (name, pri) = self.enum_table[enum]
174 string_offsets[ enum ] = i
183 for enum in sorted_enum_values:
184 (name, pri) = self.enum_table[enum]
185 print(' { %5u, 0x%08X }, /* %s */' % (string_offsets[enum], enum, name))
202 # We don't want bitfields in the enum-to-string table --
205 # "_BITS" in their name, but none have a power-of-two enum
229 for enum in extension.findall('require/enum'):
230 self.add_enum_provider(enum.get('name'), extension_prio)
234 # for all of the enum names.
235 for enum in xml.findall('enums/enum'):
236 name = enum.get('name')
237 value = int(enum.get('value'), base=16)
253 # When an enum gets renamed in a newer version (generally
267 for enum in feature.findall('require/enum'):
268 self.add_enum_provider(enum.get('name'), feature_prio)