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:

committed by
Emil Velikov

parent
06eb3fe371
commit
bba375c016
@@ -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):
|
||||
|
Reference in New Issue
Block a user