[FFmpeg-cvslog] r24435 - trunk/cmdutils.c

stefano subversion
Thu Jul 22 15:05:11 CEST 2010


Author: stefano
Date: Thu Jul 22 15:05:10 2010
New Revision: 24435

Log:
Factorize indent definition in PRINT_LIB_INFO().

Modified:
   trunk/cmdutils.c

Modified: trunk/cmdutils.c
==============================================================================
--- trunk/cmdutils.c	Thu Jul 22 15:05:07 2010	(r24434)
+++ trunk/cmdutils.c	Thu Jul 22 15:05:10 2010	(r24435)
@@ -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);                         \
             }                                                           \
         }                                                               \
     }                                                                   \



More information about the ffmpeg-cvslog mailing list