From 07469d8b9000aeb7285e4422a1c7c8b6f8ed4a61 Mon Sep 17 00:00:00 2001 From: enselic Date: Thu, 8 Jan 2009 19:05:06 +0000 Subject: src/rmd_parseargs.c: Put configure-time option dependent stuff in PrintConfig outside the function as this makes the code a bit nicer to read. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@586 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/rmd_parseargs.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'recordmydesktop/src') diff --git a/recordmydesktop/src/rmd_parseargs.c b/recordmydesktop/src/rmd_parseargs.c index aa68a9f..f0b3dcc 100644 --- a/recordmydesktop/src/rmd_parseargs.c +++ b/recordmydesktop/src/rmd_parseargs.c @@ -34,20 +34,27 @@ #include -static void PrintConfig(void) { - fprintf(stderr,"\nrecordMyDesktop was compiled with" - " the following options:\n\n"); #ifdef HAVE_LIBJACK - fprintf(stdout,"Jack\t\t\t:Enabled\n"); +#define RMD_LIBJACK_STATUS "Enabled" #else - fprintf(stdout,"Jack\t\t\t:Disabled\n"); +#define RMD_LIBJACK_STATUS "Disabled" #endif + #ifdef HAVE_LIBASOUND - fprintf(stdout,"Default Audio Backend\t:ALSA\n"); +#define RMD_LIBASOUND_STATUS "ALSA" #else - fprintf(stdout,"Default Audio Backend\t:OSS\n"); +#define RMD_LIBASOUND_STATUS "OSS" #endif - fprintf(stderr,"\n\n"); + +static void PrintConfig(void) { + fprintf(stderr, + "\n" + "recordMyDesktop was compiled with the following options:\n" + "\n" + "Jack:\t\t\t" RMD_LIBJACK_STATUS "\n" + "Default Audio Backend:\t" RMD_LIBASOUND_STATUS "\n" + "\n" + "\n"); } /** -- cgit v1.2.3