mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Add generated C's io0_etc pointers
This commit is contained in:
1 parent
e08a4dfa3b
commit
a842746807
3 files changed
+64
No files matched your search
@@ -73,16 +73,22 @@ const (
|
||||
// advances, it cannot advance past io2_etc. In the rarer case that an iop_etc
|
||||
// pointer retreats, undoing a read or write, it cannot retreat past io1_etc.
|
||||
//
|
||||
// The iop_etc pointer can change over the lifetime of a function. The ioN_etc
|
||||
// pointers, for numeric N, cannot.
|
||||
//
|
||||
// At the start of a function, these pointers are initialized from an
|
||||
// io_buffer's fields (ptr, ri, wi, len). For an io_reader:
|
||||
// - io0_etc = ptr
|
||||
// - io1_etc = ptr + ri
|
||||
// - iop_etc = ptr + ri
|
||||
// - io2_etc = ptr + wi
|
||||
// and for an io_writer:
|
||||
// - io0_etc = ptr
|
||||
// - io1_etc = ptr + wi
|
||||
// - iop_etc = ptr + wi
|
||||
// - io2_etc = ptr + len
|
||||
const (
|
||||
io0Prefix = "io0_" // Base.
|
||||
io1Prefix = "io1_" // Lower bound.
|
||||
io2Prefix = "io2_" // Upper bound.
|
||||
iopPrefix = "iop_" // Pointer.
|
||||
|
||||
@@ -102,6 +102,7 @@ func (g *gen) writeLoadDerivedVar(b *buffer, hack string, prefix string, name t.
|
||||
|
||||
if header {
|
||||
b.printf("uint8_t* %s%s = NULL;", iopPrefix, preName)
|
||||
b.printf("uint8_t* %s%s WUFFS_BASE__POTENTIALLY_UNUSED = NULL;", io0Prefix, preName)
|
||||
b.printf("uint8_t* %s%s WUFFS_BASE__POTENTIALLY_UNUSED = NULL;", io1Prefix, preName)
|
||||
b.printf("uint8_t* %s%s WUFFS_BASE__POTENTIALLY_UNUSED = NULL;", io2Prefix, preName)
|
||||
}
|
||||
@@ -112,6 +113,7 @@ func (g *gen) writeLoadDerivedVar(b *buffer, hack string, prefix string, name t.
|
||||
iopPrefix, preName, preName, preName, i1)
|
||||
|
||||
if header {
|
||||
b.printf("%s%s = %s->data.ptr;", io0Prefix, preName, preName)
|
||||
b.printf("%s%s = %s%s;", io1Prefix, preName, iopPrefix, preName)
|
||||
b.printf("%s%s = %s->data.ptr + %s->%s;",
|
||||
io2Prefix, preName, preName, preName, i2)
|
||||
|
||||
@@ -6396,10 +6396,12 @@ wuffs_deflate__decoder__decode_io_writer(wuffs_deflate__decoder* self,
|
||||
uint32_t v_already_full = 0;
|
||||
|
||||
uint8_t* iop_a_dst = NULL;
|
||||
uint8_t* io0_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_dst) {
|
||||
iop_a_dst = a_dst->data.ptr + a_dst->meta.wi;
|
||||
io0_a_dst = a_dst->data.ptr;
|
||||
io1_a_dst = iop_a_dst;
|
||||
io2_a_dst = a_dst->data.ptr + a_dst->data.len;
|
||||
if (a_dst->meta.closed) {
|
||||
@@ -6513,10 +6515,12 @@ wuffs_deflate__decoder__decode_blocks(wuffs_deflate__decoder* self,
|
||||
wuffs_base__status v_status = NULL;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -6657,10 +6661,12 @@ wuffs_deflate__decoder__decode_uncompressed(wuffs_deflate__decoder* self,
|
||||
uint32_t v_n_copied = 0;
|
||||
|
||||
uint8_t* iop_a_dst = NULL;
|
||||
uint8_t* io0_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_dst) {
|
||||
iop_a_dst = a_dst->data.ptr + a_dst->meta.wi;
|
||||
io0_a_dst = a_dst->data.ptr;
|
||||
io1_a_dst = iop_a_dst;
|
||||
io2_a_dst = a_dst->data.ptr + a_dst->data.len;
|
||||
if (a_dst->meta.closed) {
|
||||
@@ -6668,10 +6674,12 @@ wuffs_deflate__decoder__decode_uncompressed(wuffs_deflate__decoder* self,
|
||||
}
|
||||
}
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -6831,10 +6839,12 @@ wuffs_deflate__decoder__init_dynamic_huffman(wuffs_deflate__decoder* self,
|
||||
uint32_t v_b3 = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -7334,10 +7344,12 @@ wuffs_deflate__decoder__decode_huffman_fast(wuffs_deflate__decoder* self,
|
||||
uint32_t v_hdist = 0;
|
||||
|
||||
uint8_t* iop_a_dst = NULL;
|
||||
uint8_t* io0_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_dst) {
|
||||
iop_a_dst = a_dst->data.ptr + a_dst->meta.wi;
|
||||
io0_a_dst = a_dst->data.ptr;
|
||||
io1_a_dst = iop_a_dst;
|
||||
io2_a_dst = a_dst->data.ptr + a_dst->data.len;
|
||||
if (a_dst->meta.closed) {
|
||||
@@ -7345,10 +7357,12 @@ wuffs_deflate__decoder__decode_huffman_fast(wuffs_deflate__decoder* self,
|
||||
}
|
||||
}
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -7623,10 +7637,12 @@ wuffs_deflate__decoder__decode_huffman_slow(wuffs_deflate__decoder* self,
|
||||
uint32_t v_hdist = 0;
|
||||
|
||||
uint8_t* iop_a_dst = NULL;
|
||||
uint8_t* io0_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_dst) {
|
||||
iop_a_dst = a_dst->data.ptr + a_dst->meta.wi;
|
||||
io0_a_dst = a_dst->data.ptr;
|
||||
io1_a_dst = iop_a_dst;
|
||||
io2_a_dst = a_dst->data.ptr + a_dst->data.len;
|
||||
if (a_dst->meta.closed) {
|
||||
@@ -7634,10 +7650,12 @@ wuffs_deflate__decoder__decode_huffman_slow(wuffs_deflate__decoder* self,
|
||||
}
|
||||
}
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -8224,10 +8242,12 @@ wuffs_lzw__decoder__read_from(wuffs_lzw__decoder* self,
|
||||
uint16_t v_lm1_a = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -8402,10 +8422,12 @@ wuffs_lzw__decoder__write_to(wuffs_lzw__decoder* self,
|
||||
uint64_t v_n = 0;
|
||||
|
||||
uint8_t* iop_a_dst = NULL;
|
||||
uint8_t* io0_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_dst) {
|
||||
iop_a_dst = a_dst->data.ptr + a_dst->meta.wi;
|
||||
io0_a_dst = a_dst->data.ptr;
|
||||
io1_a_dst = iop_a_dst;
|
||||
io2_a_dst = a_dst->data.ptr + a_dst->data.len;
|
||||
if (a_dst->meta.closed) {
|
||||
@@ -8830,10 +8852,12 @@ wuffs_gif__decoder__ack_metadata_chunk(wuffs_gif__decoder* self,
|
||||
wuffs_base__status status = NULL;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -9086,10 +9110,12 @@ wuffs_gif__decoder__decode_frame_config(wuffs_gif__decoder* self,
|
||||
uint8_t v_flags = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -9229,10 +9255,12 @@ wuffs_gif__decoder__skip_frame(wuffs_gif__decoder* self,
|
||||
uint8_t v_lw = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -9425,10 +9453,12 @@ wuffs_gif__decoder__decode_up_to_id_part1(wuffs_gif__decoder* self,
|
||||
uint8_t v_block_type = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -9543,10 +9573,12 @@ wuffs_gif__decoder__decode_header(wuffs_gif__decoder* self,
|
||||
uint32_t v_i = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -9614,10 +9646,12 @@ wuffs_gif__decoder__decode_lsd(wuffs_gif__decoder* self,
|
||||
uint32_t v_argb = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -9823,10 +9857,12 @@ wuffs_gif__decoder__decode_extension(wuffs_gif__decoder* self,
|
||||
uint8_t v_label = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -9917,10 +9953,12 @@ wuffs_gif__decoder__skip_blocks(wuffs_gif__decoder* self,
|
||||
uint8_t v_block_size = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -9993,10 +10031,12 @@ wuffs_gif__decoder__decode_ae(wuffs_gif__decoder* self,
|
||||
bool v_is_xmp = false;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -10242,10 +10282,12 @@ wuffs_gif__decoder__decode_gc(wuffs_gif__decoder* self,
|
||||
uint16_t v_gc_duration_centiseconds = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -10369,10 +10411,12 @@ wuffs_gif__decoder__decode_id_part0(wuffs_gif__decoder* self,
|
||||
wuffs_base__status status = NULL;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -10549,10 +10593,12 @@ wuffs_gif__decoder__decode_id_part1(wuffs_gif__decoder* self,
|
||||
uint8_t v_lw = 0;
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -10750,10 +10796,12 @@ wuffs_gif__decoder__decode_id_part2(wuffs_gif__decoder* self,
|
||||
wuffs_base__slice_u8 v_uncompressed = {0};
|
||||
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -11230,10 +11278,12 @@ wuffs_gzip__decoder__decode_io_writer(wuffs_gzip__decoder* self,
|
||||
uint32_t v_decoded_length_want = 0;
|
||||
|
||||
uint8_t* iop_a_dst = NULL;
|
||||
uint8_t* io0_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_dst) {
|
||||
iop_a_dst = a_dst->data.ptr + a_dst->meta.wi;
|
||||
io0_a_dst = a_dst->data.ptr;
|
||||
io1_a_dst = iop_a_dst;
|
||||
io2_a_dst = a_dst->data.ptr + a_dst->data.len;
|
||||
if (a_dst->meta.closed) {
|
||||
@@ -11241,10 +11291,12 @@ wuffs_gzip__decoder__decode_io_writer(wuffs_gzip__decoder* self,
|
||||
}
|
||||
}
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
@@ -11702,10 +11754,12 @@ wuffs_zlib__decoder__decode_io_writer(wuffs_zlib__decoder* self,
|
||||
uint64_t v_mark = 0;
|
||||
|
||||
uint8_t* iop_a_dst = NULL;
|
||||
uint8_t* io0_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_dst WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_dst) {
|
||||
iop_a_dst = a_dst->data.ptr + a_dst->meta.wi;
|
||||
io0_a_dst = a_dst->data.ptr;
|
||||
io1_a_dst = iop_a_dst;
|
||||
io2_a_dst = a_dst->data.ptr + a_dst->data.len;
|
||||
if (a_dst->meta.closed) {
|
||||
@@ -11713,10 +11767,12 @@ wuffs_zlib__decoder__decode_io_writer(wuffs_zlib__decoder* self,
|
||||
}
|
||||
}
|
||||
uint8_t* iop_a_src = NULL;
|
||||
uint8_t* io0_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io1_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
uint8_t* io2_a_src WUFFS_BASE__POTENTIALLY_UNUSED = NULL;
|
||||
if (a_src) {
|
||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||
io0_a_src = a_src->data.ptr;
|
||||
io1_a_src = iop_a_src;
|
||||
io2_a_src = a_src->data.ptr + a_src->meta.wi;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user