Remove the unnecessary huffman_decoder struct.

This commit is contained in:
Nigel Tao committed 2017-07-26 09:04:14 +10:00
1 parent 7a955406f7
commit 69a3b5804f
3 files changed
+25 -59

No files matched your search

+2 -15
View File
@@ -129,20 +129,6 @@ const char* puffs_flate_status_string(puffs_flate_status s);
// ---------------- Structs
typedef struct {
// Do not access the private_impl's fields directly. There is no API/ABI
// compatibility or safety guarantee if you do so. Instead, use the
// puffs_flate_huffman_decoder_etc functions.
//
// In C++, these fields would be "private", but C does not support that.
//
// It is a struct, not a struct*, so that it can be stack allocated.
struct {
uint16_t f_counts[16];
uint16_t f_symbols[290];
} private_impl;
} puffs_flate_huffman_decoder;
typedef struct {
// Do not access the private_impl's fields directly. There is no API/ABI
// compatibility or safety guarantee if you do so. Instead, use the
@@ -158,8 +144,9 @@ typedef struct {
uint32_t f_bits;
uint32_t f_n_bits;
puffs_flate_huffman_decoder f_huffs[2];
uint8_t f_code_lengths[316];
uint16_t f_counts[16];
uint16_t f_symbols[290];
struct {
uint32_t coro_susp_point;