import collections
import re
import sys
-import xml.etree.cElementTree as etree
+import xml.etree.ElementTree as etree
import os
GLAPI = os.path.join(os.path.dirname(__file__), "..", "glapi", "gen")
functions[i] = functions[i]._replace(slot=next_slot)
next_slot += 1
- # Sort the function list by slot.... to simplify the diff
- functions = sorted(functions, key=lambda f: f.slot)
-
return functions
def getExportNamesFromRoots(target, roots):
# Remove the vendor suffixes from types that have a suffix-less version.
rv = re.sub(r"\b(GLhalf|GLintptr|GLsizeiptr|GLint64|GLuint64)(?:ARB|EXT|NV|ATI)\b", r"\1", rv)
- rv = re.sub(r"\bGLvoid\b", "void", rv)
+ rv = re.sub(r"\bGLDEBUGPROCKHR\b", "GLDEBUGPROC", rv)
# Clear out any leading and trailing whitespace.
rv = rv.strip()