Mercurial > libavcodec.hg
diff cbrt_tablegen.c @ 11570:e03e3df6fb7d libavcodec
Change/simplify the tableprint/tablegen API.
author | reimar |
---|---|
date | Thu, 01 Apr 2010 17:11:47 +0000 |
parents | 1aba21918874 |
children | 59f399926c12 |
line wrap: on
line diff
--- a/cbrt_tablegen.c Thu Apr 01 16:52:14 2010 +0000 +++ b/cbrt_tablegen.c Thu Apr 01 17:11:47 2010 +0000 @@ -25,18 +25,15 @@ #include "cbrt_tablegen.h" #include "tableprint.h" -void tableinit(void) +int main(void) { cbrt_tableinit(); -} + + write_fileheader(); -const struct tabledef tables[] = { - { - "static const uint32_t cbrt_tab[1<<13]", - write_uint32_array, - cbrt_tab, - 1 << 13, - 0 - }, - { NULL } -}; + printf("static const uint32_t cbrt_tab[1<<13] = {\n"); + write_uint32_array(cbrt_tab, 1 << 13); + printf("};\n"); + + return 0; +}