mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Generate some function separator comments
This commit is contained in:
1 parent
628c283192
commit
d7d5db8f74
7 files changed
+49
No files matched your search
@@ -121,6 +121,7 @@ func (g *gen) writeFuncPrototype(b *buffer, n *a.Func) error {
|
|||||||
func (g *gen) writeFuncImpl(b *buffer, n *a.Func) error {
|
func (g *gen) writeFuncImpl(b *buffer, n *a.Func) error {
|
||||||
k := g.funks[n.QQID()]
|
k := g.funks[n.QQID()]
|
||||||
|
|
||||||
|
b.printf("// -------- func %s\n\n", n.QQID().Str(g.tm))
|
||||||
if err := g.writeFuncSignature(b, n); err != nil {
|
if err := g.writeFuncSignature(b, n); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1643,6 +1643,8 @@ void wuffs_adler32__hasher__initialize(wuffs_adler32__hasher* self,
|
|||||||
|
|
||||||
// ---------------- Function Implementations
|
// ---------------- Function Implementations
|
||||||
|
|
||||||
|
// -------- func hasher.update
|
||||||
|
|
||||||
uint32_t wuffs_adler32__hasher__update(wuffs_adler32__hasher* self,
|
uint32_t wuffs_adler32__hasher__update(wuffs_adler32__hasher* self,
|
||||||
wuffs_base__slice_u8 a_x) {
|
wuffs_base__slice_u8 a_x) {
|
||||||
if (!self) {
|
if (!self) {
|
||||||
|
|||||||
@@ -1687,6 +1687,8 @@ void wuffs_crc32__ieee_hasher__initialize(wuffs_crc32__ieee_hasher* self,
|
|||||||
|
|
||||||
// ---------------- Function Implementations
|
// ---------------- Function Implementations
|
||||||
|
|
||||||
|
// -------- func ieee_hasher.update
|
||||||
|
|
||||||
uint32_t wuffs_crc32__ieee_hasher__update(wuffs_crc32__ieee_hasher* self,
|
uint32_t wuffs_crc32__ieee_hasher__update(wuffs_crc32__ieee_hasher* self,
|
||||||
wuffs_base__slice_u8 a_x) {
|
wuffs_base__slice_u8 a_x) {
|
||||||
if (!self) {
|
if (!self) {
|
||||||
|
|||||||
@@ -1826,6 +1826,8 @@ void wuffs_deflate__decoder__initialize(wuffs_deflate__decoder* self,
|
|||||||
|
|
||||||
// ---------------- Function Implementations
|
// ---------------- Function Implementations
|
||||||
|
|
||||||
|
// -------- func decoder.decode
|
||||||
|
|
||||||
wuffs_deflate__status wuffs_deflate__decoder__decode(
|
wuffs_deflate__status wuffs_deflate__decoder__decode(
|
||||||
wuffs_deflate__decoder* self,
|
wuffs_deflate__decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
@@ -1979,6 +1981,8 @@ exit:
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_blocks
|
||||||
|
|
||||||
static wuffs_deflate__status wuffs_deflate__decoder__decode_blocks(
|
static wuffs_deflate__status wuffs_deflate__decoder__decode_blocks(
|
||||||
wuffs_deflate__decoder* self,
|
wuffs_deflate__decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
@@ -2174,6 +2178,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_uncompressed
|
||||||
|
|
||||||
static wuffs_deflate__status wuffs_deflate__decoder__decode_uncompressed(
|
static wuffs_deflate__status wuffs_deflate__decoder__decode_uncompressed(
|
||||||
wuffs_deflate__decoder* self,
|
wuffs_deflate__decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
@@ -2339,6 +2345,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.init_fixed_huffman
|
||||||
|
|
||||||
static wuffs_deflate__status wuffs_deflate__decoder__init_fixed_huffman(
|
static wuffs_deflate__status wuffs_deflate__decoder__init_fixed_huffman(
|
||||||
wuffs_deflate__decoder* self) {
|
wuffs_deflate__decoder* self) {
|
||||||
wuffs_deflate__status status = WUFFS_DEFLATE__STATUS_OK;
|
wuffs_deflate__status status = WUFFS_DEFLATE__STATUS_OK;
|
||||||
@@ -2402,6 +2410,8 @@ exit:
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.init_dynamic_huffman
|
||||||
|
|
||||||
static wuffs_deflate__status wuffs_deflate__decoder__init_dynamic_huffman(
|
static wuffs_deflate__status wuffs_deflate__decoder__init_dynamic_huffman(
|
||||||
wuffs_deflate__decoder* self,
|
wuffs_deflate__decoder* self,
|
||||||
wuffs_base__io_reader a_src) {
|
wuffs_base__io_reader a_src) {
|
||||||
@@ -2670,6 +2680,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.init_huff
|
||||||
|
|
||||||
static wuffs_deflate__status wuffs_deflate__decoder__init_huff(
|
static wuffs_deflate__status wuffs_deflate__decoder__init_huff(
|
||||||
wuffs_deflate__decoder* self,
|
wuffs_deflate__decoder* self,
|
||||||
uint32_t a_which,
|
uint32_t a_which,
|
||||||
@@ -2951,6 +2963,8 @@ exit:
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_huffman_fast
|
||||||
|
|
||||||
static wuffs_deflate__status wuffs_deflate__decoder__decode_huffman_fast(
|
static wuffs_deflate__status wuffs_deflate__decoder__decode_huffman_fast(
|
||||||
wuffs_deflate__decoder* self,
|
wuffs_deflate__decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
@@ -3318,6 +3332,8 @@ exit:
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_huffman_slow
|
||||||
|
|
||||||
static wuffs_deflate__status wuffs_deflate__decoder__decode_huffman_slow(
|
static wuffs_deflate__status wuffs_deflate__decoder__decode_huffman_slow(
|
||||||
wuffs_deflate__decoder* self,
|
wuffs_deflate__decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
|
|||||||
@@ -1822,6 +1822,8 @@ void wuffs_gif__decoder__initialize(wuffs_gif__decoder* self,
|
|||||||
|
|
||||||
// ---------------- Function Implementations
|
// ---------------- Function Implementations
|
||||||
|
|
||||||
|
// -------- func decoder.decode_config
|
||||||
|
|
||||||
wuffs_gif__status wuffs_gif__decoder__decode_config(
|
wuffs_gif__status wuffs_gif__decoder__decode_config(
|
||||||
wuffs_gif__decoder* self,
|
wuffs_gif__decoder* self,
|
||||||
wuffs_base__image_config* a_dst,
|
wuffs_base__image_config* a_dst,
|
||||||
@@ -1985,6 +1987,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_frame
|
||||||
|
|
||||||
wuffs_gif__status wuffs_gif__decoder__decode_frame(
|
wuffs_gif__status wuffs_gif__decoder__decode_frame(
|
||||||
wuffs_gif__decoder* self,
|
wuffs_gif__decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
@@ -2134,6 +2138,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_header
|
||||||
|
|
||||||
static wuffs_gif__status wuffs_gif__decoder__decode_header(
|
static wuffs_gif__status wuffs_gif__decoder__decode_header(
|
||||||
wuffs_gif__decoder* self,
|
wuffs_gif__decoder* self,
|
||||||
wuffs_base__io_reader a_src) {
|
wuffs_base__io_reader a_src) {
|
||||||
@@ -2226,6 +2232,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_lsd
|
||||||
|
|
||||||
static wuffs_gif__status wuffs_gif__decoder__decode_lsd(
|
static wuffs_gif__status wuffs_gif__decoder__decode_lsd(
|
||||||
wuffs_gif__decoder* self,
|
wuffs_gif__decoder* self,
|
||||||
wuffs_base__io_reader a_src) {
|
wuffs_base__io_reader a_src) {
|
||||||
@@ -2352,6 +2360,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_extension
|
||||||
|
|
||||||
static wuffs_gif__status wuffs_gif__decoder__decode_extension(
|
static wuffs_gif__status wuffs_gif__decoder__decode_extension(
|
||||||
wuffs_gif__decoder* self,
|
wuffs_gif__decoder* self,
|
||||||
wuffs_base__io_reader a_src) {
|
wuffs_base__io_reader a_src) {
|
||||||
@@ -2474,6 +2484,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.skip_blocks
|
||||||
|
|
||||||
static wuffs_gif__status wuffs_gif__decoder__skip_blocks(
|
static wuffs_gif__status wuffs_gif__decoder__skip_blocks(
|
||||||
wuffs_gif__decoder* self,
|
wuffs_gif__decoder* self,
|
||||||
wuffs_base__io_reader a_src) {
|
wuffs_base__io_reader a_src) {
|
||||||
@@ -2569,6 +2581,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_ae
|
||||||
|
|
||||||
static wuffs_gif__status wuffs_gif__decoder__decode_ae(
|
static wuffs_gif__status wuffs_gif__decoder__decode_ae(
|
||||||
wuffs_gif__decoder* self,
|
wuffs_gif__decoder* self,
|
||||||
wuffs_base__io_reader a_src) {
|
wuffs_base__io_reader a_src) {
|
||||||
@@ -2796,6 +2810,8 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode_id
|
||||||
|
|
||||||
static wuffs_gif__status wuffs_gif__decoder__decode_id(
|
static wuffs_gif__status wuffs_gif__decoder__decode_id(
|
||||||
wuffs_gif__decoder* self,
|
wuffs_gif__decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
@@ -3119,12 +3135,16 @@ short_read_src:
|
|||||||
goto suspend;
|
goto suspend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func lzw_decoder.set_literal_width
|
||||||
|
|
||||||
static void wuffs_gif__lzw_decoder__set_literal_width(
|
static void wuffs_gif__lzw_decoder__set_literal_width(
|
||||||
wuffs_gif__lzw_decoder* self,
|
wuffs_gif__lzw_decoder* self,
|
||||||
uint32_t a_lw) {
|
uint32_t a_lw) {
|
||||||
self->private_impl.f_literal_width = a_lw;
|
self->private_impl.f_literal_width = a_lw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func lzw_decoder.decode
|
||||||
|
|
||||||
static wuffs_gif__status wuffs_gif__lzw_decoder__decode(
|
static wuffs_gif__status wuffs_gif__lzw_decoder__decode(
|
||||||
wuffs_gif__lzw_decoder* self,
|
wuffs_gif__lzw_decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
|
|||||||
@@ -1951,6 +1951,8 @@ void wuffs_gzip__decoder__initialize(wuffs_gzip__decoder* self,
|
|||||||
|
|
||||||
// ---------------- Function Implementations
|
// ---------------- Function Implementations
|
||||||
|
|
||||||
|
// -------- func decoder.set_ignore_checksum
|
||||||
|
|
||||||
void wuffs_gzip__decoder__set_ignore_checksum(wuffs_gzip__decoder* self,
|
void wuffs_gzip__decoder__set_ignore_checksum(wuffs_gzip__decoder* self,
|
||||||
bool a_ic) {
|
bool a_ic) {
|
||||||
if (!self) {
|
if (!self) {
|
||||||
@@ -1966,6 +1968,8 @@ void wuffs_gzip__decoder__set_ignore_checksum(wuffs_gzip__decoder* self,
|
|||||||
self->private_impl.f_ignore_checksum = a_ic;
|
self->private_impl.f_ignore_checksum = a_ic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode
|
||||||
|
|
||||||
wuffs_gzip__status wuffs_gzip__decoder__decode(wuffs_gzip__decoder* self,
|
wuffs_gzip__status wuffs_gzip__decoder__decode(wuffs_gzip__decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
wuffs_base__io_reader a_src) {
|
wuffs_base__io_reader a_src) {
|
||||||
|
|||||||
@@ -1951,6 +1951,8 @@ void wuffs_zlib__decoder__initialize(wuffs_zlib__decoder* self,
|
|||||||
|
|
||||||
// ---------------- Function Implementations
|
// ---------------- Function Implementations
|
||||||
|
|
||||||
|
// -------- func decoder.set_ignore_checksum
|
||||||
|
|
||||||
void wuffs_zlib__decoder__set_ignore_checksum(wuffs_zlib__decoder* self,
|
void wuffs_zlib__decoder__set_ignore_checksum(wuffs_zlib__decoder* self,
|
||||||
bool a_ic) {
|
bool a_ic) {
|
||||||
if (!self) {
|
if (!self) {
|
||||||
@@ -1966,6 +1968,8 @@ void wuffs_zlib__decoder__set_ignore_checksum(wuffs_zlib__decoder* self,
|
|||||||
self->private_impl.f_ignore_checksum = a_ic;
|
self->private_impl.f_ignore_checksum = a_ic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------- func decoder.decode
|
||||||
|
|
||||||
wuffs_zlib__status wuffs_zlib__decoder__decode(wuffs_zlib__decoder* self,
|
wuffs_zlib__status wuffs_zlib__decoder__decode(wuffs_zlib__decoder* self,
|
||||||
wuffs_base__io_writer a_dst,
|
wuffs_base__io_writer a_dst,
|
||||||
wuffs_base__io_reader a_src) {
|
wuffs_base__io_reader a_src) {
|
||||||
|
|||||||
Reference in new issue
Block a user