Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-07-22 17:05:10 +0400
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-07-22 17:05:10 +0400
commit65dd2ded3ffe26602e180c40b31c325ad0adba28 (patch)
treeeb634be1d360f76cbe3ac60367fcdea5e86511ac /cmdutils.c
parentd101e731cf5de47a43ddd304ae8b67374d1a3fcc (diff)
Factorize indent definition in PRINT_LIB_INFO().
Originally committed as revision 24435 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmdutils.c b/cmdutils.c
index e60737bac8..978b73c2dc 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -309,10 +309,11 @@ static int warned_cfg = 0;
#define PRINT_LIB_INFO(outstream,libname,LIBNAME,flags) \
if (CONFIG_##LIBNAME) { \
+ const char *indent = flags & INDENT? " " : ""; \
if (flags & SHOW_VERSION) { \
unsigned int version = libname##_version(); \
fprintf(outstream, "%slib%-10s %2d.%2d.%2d / %2d.%2d.%2d\n", \
- flags & INDENT? " " : "", #libname, \
+ indent, #libname, \
LIB##LIBNAME##_VERSION_MAJOR, \
LIB##LIBNAME##_VERSION_MINOR, \
LIB##LIBNAME##_VERSION_MICRO, \
@@ -324,11 +325,11 @@ static int warned_cfg = 0;
if (!warned_cfg) { \
fprintf(outstream, \
"%sWARNING: library configuration mismatch\n", \
- flags & INDENT? " " : ""); \
+ indent); \
warned_cfg = 1; \
} \
fprintf(stderr, "%s%-11s configuration: %s\n", \
- flags & INDENT? " " : "", #libname, cfg); \
+ indent, #libname, cfg); \
} \
} \
} \