diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2018-11-19 14:19:03 +0000 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2019-01-24 18:13:25 +0000 |
commit | bba375c0160391225584b5a153c8d9febb8d2d9c (patch) | |
tree | a1fbc69e118780cfc9b3318b823dafc13be7129f /src/mapi | |
parent | 06eb3fe371a140d271604886c034494b0e07489b (diff) |
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.
Diffstat (limited to 'src/mapi')
-rw-r--r-- | src/mapi/new/genCommon.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mapi/new/genCommon.py b/src/mapi/new/genCommon.py index b0925d801515..ec48d522c054 100644 --- a/src/mapi/new/genCommon.py +++ b/src/mapi/new/genCommon.py @@ -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): |