Add a placeholder huffman_decoder struct.

This commit is contained in:
Nigel Tao committed 2017-07-21 10:14:59 +10:00
1 parent 4b7a350a68
commit 65c4efbe8b
4 files changed
+31 -1

No files matched your search

+1 -1
View File
@@ -749,7 +749,7 @@ func (g *gen) writeCTypeName(n *a.TypeExpr, varNamePrefix string, varName string
}
}
if fallback {
g.printf("%s%s", g.pkgPrefix, n.Name().String(g.tm))
g.printf("%s%s", g.pkgPrefix, innermost.Name().String(g.tm))
}
for i := 0; i < numPointers; i++ {
+13
View File
@@ -121,6 +121,18 @@ 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 {
} 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
@@ -136,6 +148,7 @@ typedef struct {
uint32_t f_bits;
uint32_t f_n_bits;
puffs_flate_huffman_decoder f_huff[2];
uint8_t f_code_lengths[19];
uint32_t f_wip0;
uint32_t f_wip1;
+13
View File
@@ -121,6 +121,18 @@ 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 {
} 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
@@ -136,6 +148,7 @@ typedef struct {
uint32_t f_bits;
uint32_t f_n_bits;
puffs_flate_huffman_decoder f_huff[2];
uint8_t f_code_lengths[19];
uint32_t f_wip0;
uint32_t f_wip1;
+4
View File
@@ -19,6 +19,7 @@ pub struct decoder?(
bits u32,
n_bits u32,
huff[2] huffman_decoder,
code_lengths[19] u8[..7],
// These temporary fields are used to debug work-in-progress code.
@@ -120,3 +121,6 @@ pri func decoder.decode_dynamic?(dst writer1, src reader1)() {
this.bits = bits
this.n_bits = n_bits
}
pri struct huffman_decoder(
)