Commit 65dd2ded authored by Stefano Sabatini's avatar Stefano Sabatini

Factorize indent definition in PRINT_LIB_INFO().

Originally committed as revision 24435 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d101e731
...@@ -309,10 +309,11 @@ static int warned_cfg = 0; ...@@ -309,10 +309,11 @@ static int warned_cfg = 0;
#define PRINT_LIB_INFO(outstream,libname,LIBNAME,flags) \ #define PRINT_LIB_INFO(outstream,libname,LIBNAME,flags) \
if (CONFIG_##LIBNAME) { \ if (CONFIG_##LIBNAME) { \
const char *indent = flags & INDENT? " " : ""; \
if (flags & SHOW_VERSION) { \ if (flags & SHOW_VERSION) { \
unsigned int version = libname##_version(); \ unsigned int version = libname##_version(); \
fprintf(outstream, "%slib%-10s %2d.%2d.%2d / %2d.%2d.%2d\n", \ fprintf(outstream, "%slib%-10s %2d.%2d.%2d / %2d.%2d.%2d\n", \
flags & INDENT? " " : "", #libname, \ indent, #libname, \
LIB##LIBNAME##_VERSION_MAJOR, \ LIB##LIBNAME##_VERSION_MAJOR, \
LIB##LIBNAME##_VERSION_MINOR, \ LIB##LIBNAME##_VERSION_MINOR, \
LIB##LIBNAME##_VERSION_MICRO, \ LIB##LIBNAME##_VERSION_MICRO, \
...@@ -324,11 +325,11 @@ static int warned_cfg = 0; ...@@ -324,11 +325,11 @@ static int warned_cfg = 0;
if (!warned_cfg) { \ if (!warned_cfg) { \
fprintf(outstream, \ fprintf(outstream, \
"%sWARNING: library configuration mismatch\n", \ "%sWARNING: library configuration mismatch\n", \
flags & INDENT? " " : ""); \ indent); \
warned_cfg = 1; \ warned_cfg = 1; \
} \ } \
fprintf(stderr, "%s%-11s configuration: %s\n", \ fprintf(stderr, "%s%-11s configuration: %s\n", \
flags & INDENT? " " : "", #libname, cfg); \ indent, #libname, cfg); \
} \ } \
} \ } \
} \ } \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment