comparison aac_tablegen.c @ 11980:263b4ef7ad87 libavcodec

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.
author flameeyes
date Sun, 27 Jun 2010 12:21:12 +0000
parents ebe049799f6d
children
comparison
equal deleted inserted replaced
11979:59f399926c12 11980:263b4ef7ad87
29 { 29 {
30 ff_aac_tableinit(); 30 ff_aac_tableinit();
31 31
32 write_fileheader(); 32 write_fileheader();
33 33
34 printf("const float ff_aac_pow2sf_tab[428] = {\n"); 34 WRITE_ARRAY("const", float, ff_aac_pow2sf_tab);
35 write_float_array(ff_aac_pow2sf_tab, 428);
36 printf("};\n");
37 35
38 return 0; 36 return 0;
39 } 37 }