summaryrefslogtreecommitdiff
path: root/src/mapi
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2018-11-19 14:19:03 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2019-01-24 18:13:25 +0000
commitbba375c0160391225584b5a153c8d9febb8d2d9c (patch)
treea1fbc69e118780cfc9b3318b823dafc13be7129f /src/mapi
parent06eb3fe371a140d271604886c034494b0e07489b (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.py3
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):