diff options
author | Diego Pettenò <flameeyes@gmail.com> | 2010-06-27 12:20:39 +0000 |
---|---|---|
committer | Diego Pettenò <flameeyes@gmail.com> | 2010-06-27 12:20:39 +0000 |
commit | ac014798ff719c69a895aff0189a794ed9046554 (patch) | |
tree | f53db1d845bbecfa50224c0c5ed2e1c53403b21f /libavcodec/tableprint.c | |
parent | 07ece20c696edad327b2e3fefd14f52279f60035 (diff) | |
download | ffmpeg-ac014798ff719c69a895aff0189a794ed9046554.tar.gz |
tableprint: use the type name as-is for the functions' names.
This drops one parameter from the functions' macros, and require structures
to be typedeffed, but ensures that it is possible to map 1-to-1 the type to
the function name.
Originally committed as revision 23820 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/tableprint.c')
-rw-r--r-- | libavcodec/tableprint.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/tableprint.c b/libavcodec/tableprint.c index 0f422eb888..52f6ac2a7c 100644 --- a/libavcodec/tableprint.c +++ b/libavcodec/tableprint.c @@ -24,16 +24,16 @@ #include <inttypes.h> #include "tableprint.h" -WRITE_1D_FUNC(int8, int8_t, "%3"PRIi8, 15) -WRITE_1D_FUNC(uint8, uint8_t, "0x%02"PRIx8, 15) -WRITE_1D_FUNC(uint16, uint16_t, "0x%08"PRIx16, 7) -WRITE_1D_FUNC(uint32, uint32_t, "0x%08"PRIx32, 7) -WRITE_1D_FUNC(float, float, "%.18e", 3) +WRITE_1D_FUNC(int8_t, "%3"PRIi8, 15) +WRITE_1D_FUNC(uint8_t, "0x%02"PRIx8, 15) +WRITE_1D_FUNC(uint16_t, "0x%08"PRIx16, 7) +WRITE_1D_FUNC(uint32_t, "0x%08"PRIx32, 7) +WRITE_1D_FUNC(float, "%.18e", 3) -WRITE_2D_FUNC(int8, int8_t) -WRITE_2D_FUNC(uint8, uint8_t) -WRITE_2D_FUNC(uint32, uint32_t) -WRITE_2D_FUNC(float, float) +WRITE_2D_FUNC(int8_t) +WRITE_2D_FUNC(uint8_t) +WRITE_2D_FUNC(uint32_t) +WRITE_2D_FUNC(float) void write_fileheader(void) { printf("/* This file was generated by libavcodec/tableprint */\n"); |