Rename struct bit_table to bit_table_t.

This commit is contained in:
Ari Koivula 2015-03-04 13:20:57 +02:00
parent 8cd8240f7a
commit 5d8498dc88
2 changed files with 5 additions and 5 deletions

View file

@ -59,7 +59,7 @@ void printf_bitstream(char *msg, ...)
}
#endif
const bit_table *g_exp_table;
const bit_table_t *g_exp_table;
//From wikipedia
//http://en.wikipedia.org/wiki/Binary_logarithm#Algorithm
@ -85,8 +85,8 @@ int init_exp_golomb(const uint32_t len)
uint32_t code_num;
uint8_t M;
uint32_t info;
bit_table *exp_table;
exp_table = (bit_table*)malloc(len*sizeof(bit_table));
bit_table_t *exp_table;
exp_table = (bit_table_t*)malloc(len*sizeof(bit_table_t));
if(!exp_table)
return 0;

View file

@ -64,9 +64,9 @@ typedef struct
{
uint8_t len;
uint32_t value;
} bit_table;
} bit_table_t;
extern const bit_table *g_exp_table;
extern const bit_table_t *g_exp_table;
int bitstream_init(bitstream_t * stream, bitstream_type type);
int bitstream_finalize(bitstream_t * stream);