From 5d86b4b7c75f978f01397f3ed5a4e3c3316c2971 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 27 Jan 2015 09:17:01 +0100 Subject: native-code.py: Sort the constructors. Change-Id: I3b7b5a13c1384313a12ec9f11714a85be2ad1693 --- solenv/bin/native-code.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'solenv/bin') 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 } -- cgit