Stefan Dirsch
aec9dd70d7
* sort the providers by their enum not by their function name; patch by coolo (bnc#917533) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libepoxy?expand=0&rev=3
29 lines
977 B
Diff
29 lines
977 B
Diff
From 05c11521105a00d3644fbc7e92dd97e3ab6531fe Mon Sep 17 00:00:00 2001
|
|
From: Stefan Dirsch <sndirsch@suse.de>
|
|
Date: Thu, 12 Feb 2015 10:47:28 +0100
|
|
Subject: [PATCH] sort the providers by their enum not by their function name
|
|
|
|
Patch by Stephan Kulow <coolo@kde.org>
|
|
---
|
|
src/gen_dispatch.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/gen_dispatch.py b/src/gen_dispatch.py
|
|
index ab526ef..f8b7492 100755
|
|
--- a/src/gen_dispatch.py
|
|
+++ b/src/gen_dispatch.py
|
|
@@ -566,8 +566,8 @@ class Generator(object):
|
|
providers.append(provider)
|
|
|
|
def provider_sort(provider):
|
|
- return (provider.name != func.name, provider.name)
|
|
- providers.sort(key=provider_sort);
|
|
+ return (provider.name != func.name, provider.enum)
|
|
+ providers.sort(key=provider_sort)
|
|
|
|
if len(providers) != 1:
|
|
self.outln(' static const enum {0}_provider providers[] = {{'.format(self.target))
|
|
--
|
|
1.8.4.5
|
|
|