diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-01-27 09:17:01 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-09 08:09:23 +0100 |
commit | 5d86b4b7c75f978f01397f3ed5a4e3c3316c2971 (patch) | |
tree | e92c41641c68783574126f62a2641982e25cca22 /solenv | |
parent | 98279cee2d179cbecf581aa13227a8aebddf479e (diff) |
native-code.py: Sort the constructors.
Change-Id: I3b7b5a13c1384313a12ec9f11714a85be2ad1693
Diffstat (limited to 'solenv')
-rwxr-xr-x | solenv/bin/native-code.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/solenv/bin/native-code.py b/solenv/bin/native-code.py index 18a9899124a9..2f58a8e6dfbb 100755 --- a/solenv/bin/native-code.py +++ b/solenv/bin/native-code.py @@ -247,9 +247,8 @@ if options.groups: print ('#endif') print ('') -if options.groups: - for constructor in full_constructor_map.keys(): - print ('void * '+constructor+'( void *, void * );') +for constructor in sorted(full_constructor_map.keys()): + print ('void * '+constructor+'( void *, void * );') print (""" const lib_to_factory_mapping * @@ -303,9 +302,8 @@ lo_get_constructor_map(void) { static lib_to_constructor_mapping map[] = {""") -if options.groups: - for constructor in full_constructor_map.keys(): - print (' { "' +constructor+ '", ' +constructor+ ' },') +for constructor in sorted(full_constructor_map.keys()): + print (' { "' +constructor+ '", ' +constructor+ ' },') print (""" { 0, 0 } |