diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-04-01 17:11:47 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-04-01 17:11:47 +0000 |
commit | 8eaa6e0e04c3c340d7c44a97613ebc6dbcc0a51d (patch) | |
tree | 6b40a6af3963c4f53e90e1e9a6dbbd05eb98ca3e /libavcodec/cbrt_tablegen.c | |
parent | 27eecec3598b0c35b7aeb10c08f2c5e42b1fdd4f (diff) | |
download | ffmpeg-8eaa6e0e04c3c340d7c44a97613ebc6dbcc0a51d.tar.gz |
Change/simplify the tableprint/tablegen API.
Originally committed as revision 22761 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cbrt_tablegen.c')
-rw-r--r-- | libavcodec/cbrt_tablegen.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/libavcodec/cbrt_tablegen.c b/libavcodec/cbrt_tablegen.c index 9a0ffcfa1a..dbbd632693 100644 --- a/libavcodec/cbrt_tablegen.c +++ b/libavcodec/cbrt_tablegen.c @@ -25,18 +25,15 @@ #include "cbrt_tablegen.h" #include "tableprint.h" -void tableinit(void) +int main(void) { cbrt_tableinit(); -} -const struct tabledef tables[] = { - { - "static const uint32_t cbrt_tab[1<<13]", - write_uint32_array, - cbrt_tab, - 1 << 13, - 0 - }, - { NULL } -}; + write_fileheader(); + + printf("static const uint32_t cbrt_tab[1<<13] = {\n"); + write_uint32_array(cbrt_tab, 1 << 13); + printf("};\n"); + + return 0; +} |