Lines Matching full:entries

39 # number of dynamic entries
137 """Parse a GLAPI XML file for ABI entries."""
181 entries = entry_dict.values()
182 entries.sort()
184 return entries
217 """Parse a CSV file for ABI entries."""
251 entries = entry_dict.values()
252 entries.sort()
254 return entries
256 def abi_sanity_check(entries): argument
257 if not entries:
261 last_slot = entries[-1].slot
264 if entries[i].slot != slot:
265 raise Exception('entries are not ordered by slots')
266 if entries[i].alias:
268 % (slot, entries[i].alias.name))
270 while i < len(entries) and entries[i].slot == slot:
271 ent = entries[i]
284 if i < len(entries):
285 raise Exception('there are %d invalid entries' % (len(entries) - 1))
290 def __init__(self, entries): argument
291 self.entries = entries
293 # sort entries by their names
294 self.entries_sorted_by_names = self.entries[:]
334 for ent in self.entries:
344 num_static_entries = self.entries[-1].slot + 1
395 for ent in self.entries:
431 for ent in self.entries:
443 # sort entries by their names
444 sorted_entries = self.entries[:]
471 for ent in self.entries:
501 entries = [self._c_function(ent, prefix)
502 for ent in self.entries if not ent.alias]
504 entries = [self.noop_generic] * len(entries)
506 entries.extend([self.noop_generic] * ABI_NUM_DYNAMIC_ENTRIES)
509 return pre + (',\n' + pre).join(entries)
514 for ent in self.entries:
620 for ent in self.entries:
644 def __init__(self, entries): argument
645 for ent in entries:
647 super(GLAPIPrinter, self).__init__(entries)
692 def __init__(self, entries): argument
693 super(ES1APIPrinter, self).__init__(entries)
716 def __init__(self, entries): argument
717 super(ES2APIPrinter, self).__init__(entries)
748 def __init__(self, entries): argument
749 super(SharedGLAPIPrinter, self).__init__(entries)
797 entries = abi_parse_xml(filename)
799 entries = abi_parse(filename)
800 abi_sanity_check(entries)
802 printer = printers[options.printer](entries)