Mercurial > libavcodec.hg
comparison tableprint.c @ 11524:06d8a281e045 libavcodec
Do not use puts, it adds additional newlines making the generated files
needlessly ugly.
| author | reimar |
|---|---|
| date | Sun, 21 Mar 2010 16:29:08 +0000 |
| parents | db3588eb254a |
| children | e03e3df6fb7d |
comparison
equal
deleted
inserted
replaced
| 11523:3367dd5913a0 | 11524:06d8a281e045 |
|---|---|
| 41 printf("/* This file was generated by libavcodec/tableprint */\n"); | 41 printf("/* This file was generated by libavcodec/tableprint */\n"); |
| 42 printf("#include <stdint.h>\n"); | 42 printf("#include <stdint.h>\n"); |
| 43 tableinit(); | 43 tableinit(); |
| 44 | 44 |
| 45 for (i = 0; tables[i].declaration; i++) { | 45 for (i = 0; tables[i].declaration; i++) { |
| 46 puts(tables[i].declaration); | 46 printf("%s = {\n", tables[i].declaration); |
| 47 puts(" = {\n"); | |
| 48 tables[i].printfunc(tables[i].data, tables[i].size, tables[i].size2); | 47 tables[i].printfunc(tables[i].data, tables[i].size, tables[i].size2); |
| 49 puts("};\n"); | 48 printf("};\n"); |
| 50 } | 49 } |
| 51 return 0; | 50 return 0; |
| 52 } | 51 } |
