diff options
author | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2009-01-08 19:05:06 +0000 |
---|---|---|
committer | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2009-01-08 19:05:06 +0000 |
commit | 07469d8b9000aeb7285e4422a1c7c8b6f8ed4a61 (patch) | |
tree | 3a1affe051aeaaef54349a5aee4acb7dc73c4fa4 /recordmydesktop/src | |
parent | 2556603601f310dc99816a1cce09ed9bb2d696f1 (diff) |
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
Diffstat (limited to 'recordmydesktop/src')
-rw-r--r-- | recordmydesktop/src/rmd_parseargs.c | 23 |
1 files changed, 15 insertions, 8 deletions
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 <string.h> -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"); } /** |