Indenting.

This commit is contained in:
Dave Davenport 2017-03-28 20:04:02 +02:00
parent 5259eb11bc
commit 8c345273ff
3 changed files with 27 additions and 27 deletions

View file

@ -1072,7 +1072,6 @@ int main ( int argc, char *argv[] )
TICK_N ( "Setup Modi" );
}
const char ** theme_str = find_arg_strv ( "-theme-str" );
if ( theme_str ) {
for ( int index = 0; theme_str && theme_str[index]; index++ ) {

View file

@ -387,8 +387,7 @@ void config_parse_cmd_options ( void )
static void __config_parser_set_property ( XrmOption *option, const Property *p )
{
if ( option->type == xrm_String )
{
if ( option->type == xrm_String ) {
if ( p->type != P_STRING ) {
fprintf ( stderr, "Option: %s needs to be set with a string.\n", option->name );
return;
@ -402,21 +401,24 @@ static void __config_parser_set_property ( XrmOption *option, const Property *p
// Memory
( option )->mem = *( option->value.str );
option->source = CONFIG_FILE_THEME;
} else if ( option->type == xrm_Number ) {
}
else if ( option->type == xrm_Number ) {
if ( p->type != P_INTEGER ) {
fprintf ( stderr, "Option: %s needs to be set with a number.\n", option->name );
return;
}
*( option->value.snum ) = p->value.i;
option->source = CONFIG_FILE_THEME;
} else if ( option->type == xrm_SNumber ) {
}
else if ( option->type == xrm_SNumber ) {
if ( p->type != P_INTEGER ) {
fprintf ( stderr, "Option: %s needs to be set with a number.\n", option->name );
return;
}
*( option->value.num ) = (unsigned int ) ( p->value.i );
option->source = CONFIG_FILE_THEME;
} else if ( option->type == xrm_Boolean ) {
}
else if ( option->type == xrm_Boolean ) {
if ( p->type != P_BOOLEAN ) {
fprintf ( stderr, "Option: %s needs to be set with a boolean.\n", option->name );
return;
@ -426,7 +428,6 @@ static void __config_parser_set_property ( XrmOption *option, const Property *p
}
}
void config_parse_set_property ( const Property *p )
{
for ( unsigned int i = 0; i < sizeof ( xrmOptions ) / sizeof ( XrmOption ); ++i ) {