{
int i;
char *token;
- bool config_file_on = FALSE;
- bool display_on = FALSE;
- bool geometry_on = FALSE;
+ bool config_file_on = false;
+ bool display_on = false;
+ bool geometry_on = false;
/* Default values. */
- wmnotify_infos.debug = FALSE;
+ wmnotify_infos.debug = false;
for( i = 1; i < argc; i++ ) {
token = argv[i];
switch( token[1] ) {
case 'c':
if( strlen( &token[1] ) == 1 ) {
- config_file_on = TRUE;
+ config_file_on = true;
}
else {
InvalidOption( "invalid option", token );
break;
case 'd':
if( STREQ( "display", &token[1] ) ) {
- display_on = TRUE;
+ display_on = true;
}
else if( strlen( &token[1] ) == 1 ) {
- wmnotify_infos.debug = TRUE;
+ wmnotify_infos.debug = true;
}
break;
case 'g':
if( STREQ( "geometry", &token[1] ) ) {
- geometry_on = TRUE;
+ geometry_on = true;
}
else {
InvalidOption( "invalid option", token );
break;
default:
/* Processing options arguments */
- if( config_file_on != FALSE ) {
+ if( config_file_on != false ) {
wmnotify_infos.optional_config_file = token;
/*strcpy( config_file_name, token );*/
- config_file_on = FALSE;
+ config_file_on = false;
}
- else if( display_on != FALSE ) {
- display_on = FALSE;
+ else if( display_on != false ) {
+ display_on = false;
wmnotify_infos.display_arg = token;
}
- else if( geometry_on != FALSE ) {
- geometry_on = FALSE;
+ else if( geometry_on != false ) {
+ geometry_on = false;
wmnotify_infos.geometry_arg = token;
}
else {
} /* end switch( token[0] ) */
} /* end for */
- if( config_file_on != FALSE ) {
+ if( config_file_on != false ) {
InvalidOption( "missing configuration file parameter", NULL );
}
- else if( display_on != FALSE ) {
+ else if( display_on != false ) {
InvalidOption( "missing display parameter", NULL );
}
- else if( geometry_on != FALSE ) {
+ else if( geometry_on != false ) {
InvalidOption( "missing geometry parameter", NULL );
}
}