Mercurial > libavcodec.hg
diff tableprint.c @ 11570:e03e3df6fb7d libavcodec
Change/simplify the tableprint/tablegen API.
author | reimar |
---|---|
date | Thu, 01 Apr 2010 17:11:47 +0000 |
parents | 06d8a281e045 |
children | 8ad2b8f20e6a |
line wrap: on
line diff
--- a/tableprint.c Thu Apr 01 16:52:14 2010 +0000 +++ b/tableprint.c Thu Apr 01 17:11:47 2010 +0000 @@ -34,18 +34,7 @@ WRITE_2D_FUNC(uint8, uint8_t) WRITE_2D_FUNC(uint32, uint32_t) -int main(int argc, char *argv[]) -{ - int i; - +void write_fileheader(void) { printf("/* This file was generated by libavcodec/tableprint */\n"); printf("#include <stdint.h>\n"); - tableinit(); - - for (i = 0; tables[i].declaration; i++) { - printf("%s = {\n", tables[i].declaration); - tables[i].printfunc(tables[i].data, tables[i].size, tables[i].size2); - printf("};\n"); - } - return 0; }