summaryrefslogtreecommitdiff
path: root/libavcodec/aac_tablegen.c
diff options
context:
space:
mode:
authorDiego Pettenò <flameeyes@gmail.com>2010-06-27 12:21:12 +0000
committerDiego Pettenò <flameeyes@gmail.com>2010-06-27 12:21:12 +0000
commit350120d269033f4cc206850b3c81f797ed2cb9c6 (patch)
treef6c92e9142bea1123d8154f75c3f8b17967220ae /libavcodec/aac_tablegen.c
parentac014798ff719c69a895aff0189a794ed9046554 (diff)
tablegen: implement and use WRITE_ARRAY macros
Two macros (WRITE_ARRAY and WRITE_ARRAY_2D) take the prefix (modifiers) (not all tables are static, and they might not be constant either), the type, and the name of the array. It'll be copied with same name and type, and with the correct size of the currently-defined object. Originally committed as revision 23821 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_tablegen.c')
-rw-r--r--libavcodec/aac_tablegen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/aac_tablegen.c b/libavcodec/aac_tablegen.c
index de1c9578a7..33a179f51e 100644
--- a/libavcodec/aac_tablegen.c
+++ b/libavcodec/aac_tablegen.c
@@ -31,9 +31,7 @@ int main(void)
write_fileheader();
- printf("const float ff_aac_pow2sf_tab[428] = {\n");
- write_float_array(ff_aac_pow2sf_tab, 428);
- printf("};\n");
+ WRITE_ARRAY("const", float, ff_aac_pow2sf_tab);
return 0;
}