fix formatting

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-12-15 10:19:21 -05:00
parent 3a714c6e04
commit a11492784d
1 changed files with 41 additions and 41 deletions

View File

@ -30,26 +30,27 @@ Eina_List *optsolaris = NULL;
Eina_List *optterminate = NULL; Eina_List *optterminate = NULL;
Eina_List *optmisc = NULL; Eina_List *optmisc = NULL;
static Config_Parse_Label grplabels[] = { static Config_Parse_Label grplabels[] =
{ "grp_led", &optled }, {
{ "grp", &optswitch }, { "grp_led", &optled },
{ "lv3", &optlv3 }, { "grp", &optswitch },
{ "ctrl", &optctrl }, { "lv3", &optlv3 },
{ "keypad", &optkeypad }, { "ctrl", &optctrl },
{ "kpdl", &optdelkeypad }, { "keypad", &optkeypad },
{ "caps", &optcapslock }, { "kpdl", &optdelkeypad },
{ "altwin", &optaltwin }, { "caps", &optcapslock },
{ "compose", &optcompose }, { "altwin", &optaltwin },
{ "currencysign", &optcurrency }, { "compose", &optcompose },
{ "eurosign", &optcurrency }, { "currencysign", &optcurrency },
{ "rupeesign", &optcurrency }, { "eurosign", &optcurrency },
{ "lv5", &optlv5 }, { "rupeesign", &optcurrency },
{ "nbsp", &optspacebar }, { "lv5", &optlv5 },
{ "jap", &optjapan }, { "nbsp", &optspacebar },
{ "korean", &optkorean }, { "jap", &optjapan },
{ "esperanto", &optesperanto }, { "korean", &optkorean },
{ "solaris", &optsolaris }, { "esperanto", &optesperanto },
{ "terminate", &optterminate } { "solaris", &optsolaris },
{ "terminate", &optterminate }
}; };
static const char *rules_file = NULL; static const char *rules_file = NULL;
@ -60,26 +61,27 @@ void
find_rules(void) find_rules(void)
{ {
int i = 0; int i = 0;
const char *lstfiles[] = { const char *lstfiles[] =
{
#ifdef XKB_BASE #ifdef XKB_BASE
XKB_BASE "/rules/xorg.lst", XKB_BASE "/rules/xorg.lst",
XKB_BASE "/rules/xfree86.lst", XKB_BASE "/rules/xfree86.lst",
#endif #endif
#if defined __NetBSD__ #if defined __NetBSD__
"/usr/X11R7/lib/X11/xkb/rules/xorg.lst", "/usr/X11R7/lib/X11/xkb/rules/xorg.lst",
#elif defined __OpenBSD__ #elif defined __OpenBSD__
"/usr/X11R6/share/X11/xkb/rules/base.lst", "/usr/X11R6/share/X11/xkb/rules/base.lst",
#endif #endif
"/usr/share/X11/xkb/rules/xorg.lst", "/usr/share/X11/xkb/rules/xorg.lst",
"/usr/share/X11/xkb/rules/xfree86.lst", "/usr/share/X11/xkb/rules/xfree86.lst",
"/usr/local/share/X11/xkb/rules/xorg.lst", "/usr/local/share/X11/xkb/rules/xorg.lst",
"/usr/local/share/X11/xkb/rules/xfree86.lst", "/usr/local/share/X11/xkb/rules/xfree86.lst",
"/usr/X11R6/lib/X11/xkb/rules/xorg.lst", "/usr/X11R6/lib/X11/xkb/rules/xorg.lst",
"/usr/X11R6/lib/X11/xkb/rules/xfree86.lst", "/usr/X11R6/lib/X11/xkb/rules/xfree86.lst",
"/usr/local/X11R6/lib/X11/xkb/rules/xorg.lst", "/usr/local/X11R6/lib/X11/xkb/rules/xorg.lst",
"/usr/local/X11R6/lib/X11/xkb/rules/xfree86.lst", "/usr/local/X11R6/lib/X11/xkb/rules/xfree86.lst",
NULL NULL
}; };
for (; lstfiles[i]; i++) for (; lstfiles[i]; i++)
{ {
@ -129,7 +131,7 @@ parse_rules(void)
models = eina_list_append(models, model); models = eina_list_append(models, model);
/* read models here */ /* read models here */
for (;; ) for (;;)
{ {
if (fgets(buf, sizeof(buf), f)) if (fgets(buf, sizeof(buf), f))
{ {
@ -167,7 +169,7 @@ parse_rules(void)
if (!fgets(buf, sizeof(buf), f)) goto err; if (!fgets(buf, sizeof(buf), f)) goto err;
/* read layouts here */ /* read layouts here */
for (;; ) for (;;)
{ {
if (fgets(buf, sizeof(buf), f)) if (fgets(buf, sizeof(buf), f))
{ {
@ -209,7 +211,7 @@ parse_rules(void)
if (!fgets(buf, sizeof(buf), f)) goto err; if (!fgets(buf, sizeof(buf), f)) goto err;
/* read variants here */ /* read variants here */
for (;; ) for (;;)
{ {
if (fgets(buf, sizeof(buf), f)) if (fgets(buf, sizeof(buf), f))
{ {
@ -254,7 +256,7 @@ parse_rules(void)
if (!fgets(buf, sizeof(buf), f)) goto err; if (!fgets(buf, sizeof(buf), f)) goto err;
/* read options here */ /* read options here */
for (;; ) for (;;)
{ {
if (fgets(buf, sizeof(buf), f)) if (fgets(buf, sizeof(buf), f))
{ {
@ -317,8 +319,6 @@ _free_option(E_XKB_Option *o)
E_FREE(o); E_FREE(o);
} }
void void
clear_rules(void) clear_rules(void)
{ {