Mercurial > libavcodec.hg
diff mpegaudio_tablegen.c @ 11979:59f399926c12 libavcodec
tableprint: use the type name as-is for the functions' names.
This drops one parameter from the functions' macros, and require structures
to be typedeffed, but ensures that it is possible to map 1-to-1 the type to
the function name.
author | flameeyes |
---|---|
date | Sun, 27 Jun 2010 12:20:39 +0000 |
parents | a0f514fb84d6 |
children | 263b4ef7ad87 |
line wrap: on
line diff
--- a/mpegaudio_tablegen.c Sun Jun 27 09:44:10 2010 +0000 +++ b/mpegaudio_tablegen.c Sun Jun 27 12:20:39 2010 +0000 @@ -32,15 +32,15 @@ write_fileheader(); printf("static const int8_t table_4_3_exp[TABLE_4_3_SIZE] = {\n"); - write_int8_array(table_4_3_exp, TABLE_4_3_SIZE); + write_int8_t_array(table_4_3_exp, TABLE_4_3_SIZE); printf("};\n"); printf("static const uint32_t table_4_3_value[TABLE_4_3_SIZE] = {\n"); - write_uint32_array(table_4_3_value, TABLE_4_3_SIZE); + write_uint32_t_array(table_4_3_value, TABLE_4_3_SIZE); printf("};\n"); printf("static const uint32_t exp_table[512] = {\n"); - write_uint32_array(exp_table, 512); + write_uint32_t_array(exp_table, 512); printf("};\n"); printf("static const float exp_table_float[512] = {\n"); @@ -48,7 +48,7 @@ printf("};\n"); printf("static const uint32_t expval_table[512][16] = {\n"); - write_uint32_2d_array(expval_table, 512, 16); + write_uint32_t_2d_array(expval_table, 512, 16); printf("};\n"); printf("static const float expval_table_float[512][16] = {\n");