From: Gerhard Sittig Date: Sun, 25 Jun 2023 21:53:44 +0000 (+0200) Subject: input: alpha-sort list of known input modules X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b6c6daa1bcb9a3a065229a21d77175a8d658a61e;p=libsigrok.git input: alpha-sort list of known input modules Sort the 'extern' declarations and the input_module_list[] array items. Does not change behaviour, just simplifies maintenance. --- diff --git a/src/input/input.c b/src/input/input.c index 43272092..cd0db1f1 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -63,35 +63,35 @@ */ /** @cond PRIVATE */ +extern SR_PRIV struct sr_input_module input_binary; extern SR_PRIV struct sr_input_module input_chronovu_la8; extern SR_PRIV struct sr_input_module input_csv; -extern SR_PRIV struct sr_input_module input_binary; +extern SR_PRIV struct sr_input_module input_logicport; +extern SR_PRIV struct sr_input_module input_null; +extern SR_PRIV struct sr_input_module input_protocoldata; +extern SR_PRIV struct sr_input_module input_raw_analog; +extern SR_PRIV struct sr_input_module input_saleae; extern SR_PRIV struct sr_input_module input_stf; extern SR_PRIV struct sr_input_module input_trace32_ad; extern SR_PRIV struct sr_input_module input_vcd; extern SR_PRIV struct sr_input_module input_wav; -extern SR_PRIV struct sr_input_module input_raw_analog; -extern SR_PRIV struct sr_input_module input_logicport; -extern SR_PRIV struct sr_input_module input_protocoldata; -extern SR_PRIV struct sr_input_module input_saleae; -extern SR_PRIV struct sr_input_module input_null; /** @endcond */ static const struct sr_input_module *input_module_list[] = { &input_binary, &input_chronovu_la8, &input_csv, + &input_logicport, + &input_null, + &input_protocoldata, + &input_raw_analog, + &input_saleae, #if defined HAVE_INPUT_STF && HAVE_INPUT_STF &input_stf, #endif &input_trace32_ad, &input_vcd, &input_wav, - &input_raw_analog, - &input_logicport, - &input_protocoldata, - &input_saleae, - &input_null, NULL, };