mapi/new: sort by slot number

Makes it easier to compare the newly generated header against the old
one. Will be reverted after the transition.
This commit is contained in:
Emil Velikov
2018-11-19 14:19:03 +00:00
committed by Emil Velikov
parent 06eb3fe371
commit bba375c016

View File

@@ -74,6 +74,9 @@ def getFunctionsFromRoots(roots):
for i in range(len(functions)):
functions[i] = functions[i]._replace(slot=i)
# Sort the function list by slot.... to simplify the diff
functions = sorted(functions, key=lambda f: f.slot)
return functions
def getExportNamesFromRoots(target, roots):