[FFmpeg-cvslog] r22623 - trunk/libavcodec/tableprint.c

reimar subversion
Sun Mar 21 17:29:08 CET 2010


Author: reimar
Date: Sun Mar 21 17:29:08 2010
New Revision: 22623

Log:
Do not use puts, it adds additional newlines making the generated files
needlessly ugly.

Modified:
   trunk/libavcodec/tableprint.c

Modified: trunk/libavcodec/tableprint.c
==============================================================================
--- trunk/libavcodec/tableprint.c	Sun Mar 21 17:03:45 2010	(r22622)
+++ trunk/libavcodec/tableprint.c	Sun Mar 21 17:29:08 2010	(r22623)
@@ -43,10 +43,9 @@ int main(int argc, char *argv[])
     tableinit();
 
     for (i = 0; tables[i].declaration; i++) {
-        puts(tables[i].declaration);
-        puts(" = {\n");
+        printf("%s = {\n", tables[i].declaration);
         tables[i].printfunc(tables[i].data, tables[i].size, tables[i].size2);
-        puts("};\n");
+        printf("};\n");
     }
     return 0;
 }



More information about the ffmpeg-cvslog mailing list