On Fri, Sep 10, 2010 at 12:43 PM, Denys Vlasenko
<[email protected]> wrote:
> +static vlc_t huff_vlc[16];
> +static vlc_t huff_quad_vlc[2];
> +static uint16_t band_index_long[9][23];
> +#define TABLE_4_3_SIZE (8191 + 16)*4
> +static int8_t  *table_4_3_exp;
> +static uint32_t *table_4_3_value;
> +static uint32_t exp_table[512];
> +static uint32_t expval_table[512][16];
> +static int32_t is_table[2][16];
> +static int32_t is_table_lsf[2][2][16];
> +static int32_t csa_table[8][4];
> +static float csa_table_float[8][4];
> +static int32_t mdct_win[8][36];
> +static int16_t window[512];
>
> This needs to be malloced. See "G trick" in many files in the tree:
> #define G (*ptr_to_globals)
> #define INIT_G() do { \
           SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
 ^^^^^^^^^^^^^^^^ forgot this line^^^^^^^
>        G.foo = 16; \
>        G.bar = 14; \
> } while (0)
> ...
> int baz_main()
> {
>        INIT_G();
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to