Case sensitive sort for SCHEMA_IMPORT bool prototypes

This commit is contained in:
Jack Marriott
2018-11-19 01:59:55 -05:00
parent 01e6a401a2
commit e09c3bed9a
2 changed files with 8 additions and 8 deletions

View File

@@ -142,24 +142,24 @@ SCHEMA_IMPORT const DriverStruct fact_sdr_fpga_ps_cfg;
SCHEMA_IMPORT const DriverStruct fact_sync_ts_cfg;
SCHEMA_IMPORT bool GPP_ap_Reset(void *, void *);
SCHEMA_IMPORT bool gpp_post_init(void *, void *);
SCHEMA_IMPORT bool gpp_pre_init(void *, void *);
SCHEMA_IMPORT bool HCI_Init(void *, void *);
SCHEMA_IMPORT bool obc_pre_init(void *, void *);
SCHEMA_IMPORT bool RFFE_disablePA(void *, void *);
SCHEMA_IMPORT bool RFFE_enablePA(void *, void *);
SCHEMA_IMPORT bool rffe_post_init(void *, void *);
SCHEMA_IMPORT bool rffe_pre_init(void *, void *);
SCHEMA_IMPORT bool RFFE_reset(void *, void *);
SCHEMA_IMPORT bool SDR_Init(void *, void *);
SCHEMA_IMPORT bool SDR_fx3Reset(void *, void *);
SCHEMA_IMPORT bool SDR_Init(void *, void *);
SCHEMA_IMPORT bool SDR_reset(void *, void *);
SCHEMA_IMPORT bool SYNC_Init(void *, void *);
SCHEMA_IMPORT bool SYNC_reset(void *, void *);
SCHEMA_IMPORT bool SYS_cmdEcho(void *, void *);
SCHEMA_IMPORT bool SYS_cmdReset(void *, void *);
SCHEMA_IMPORT bool TestMod_cmdReset(void *, void *);
SCHEMA_IMPORT bool gpp_post_init(void *, void *);
SCHEMA_IMPORT bool gpp_pre_init(void *, void *);
SCHEMA_IMPORT bool obc_pre_init(void *, void *);
SCHEMA_IMPORT bool rffe_post_init(void *, void *);
SCHEMA_IMPORT bool rffe_pre_init(void *, void *);
SCHEMA_IMPORT bool sys_post_init(void *, void *);
SCHEMA_IMPORT bool TestMod_cmdReset(void *, void *);
const Component sys_schema[] = {

View File

@@ -168,7 +168,7 @@ class SchemaUtils:
qual3 = 'SCHEMA_IMPORT bool '
qual4 = '(void *, void *)'
lines3 = [qual3 + value + qual4 + ';' for value in iter(setP)]
lines3.sort()
lines3.sort(key=str.lower)
str3 = '\n'.join(str(line) for line in lines3)
decls = str1 + '\n\n' + str2 + '\n\n' + str3 + '\n\n'