mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Rename o_0_ioptr1_v_w to o_0_ioptr_v_w
This commit is contained in:
1 parent
7452ec8035
commit
b5e45740c0
2 files changed
+8
-10
No files matched your search
@@ -180,12 +180,10 @@ func (g *gen) writeStatementIOBind(b *buffer, n *a.IOBind, depth uint32) error {
|
|||||||
// TODO: save / restore all ioptr vars, not just for local IO vars? How
|
// TODO: save / restore all ioptr vars, not just for local IO vars? How
|
||||||
// does this work if the io_bind body advances these pointers, either
|
// does this work if the io_bind body advances these pointers, either
|
||||||
// directly or by calling other funcs?
|
// directly or by calling other funcs?
|
||||||
//
|
|
||||||
// TODO: rename ioptr1 to ioptr, etc.
|
|
||||||
if e.Operator() == 0 {
|
if e.Operator() == 0 {
|
||||||
b.printf("uint8_t *%s%d_ioptr1_%s%s = ioptr_%s;\n",
|
b.printf("uint8_t *%s%d_ioptr_%s%s = ioptr_%s;\n",
|
||||||
oPrefix, ioBindNum, prefix, name, name)
|
oPrefix, ioBindNum, prefix, name, name)
|
||||||
b.printf("uint8_t *%s%d_ioptr2_%s%s = iobounds1_%s;\n",
|
b.printf("uint8_t *%s%d_iobounds1_%s%s = iobounds1_%s;\n",
|
||||||
oPrefix, ioBindNum, prefix, name, name)
|
oPrefix, ioBindNum, prefix, name, name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -206,9 +204,9 @@ func (g *gen) writeStatementIOBind(b *buffer, n *a.IOBind, depth uint32) error {
|
|||||||
b.printf("%s%s = %s%d_%s%s;\n",
|
b.printf("%s%s = %s%d_%s%s;\n",
|
||||||
prefix, name, oPrefix, ioBindNum, prefix, name)
|
prefix, name, oPrefix, ioBindNum, prefix, name)
|
||||||
if e.Operator() == 0 {
|
if e.Operator() == 0 {
|
||||||
b.printf("ioptr_%s = %s%d_ioptr1_%s%s;\n",
|
b.printf("ioptr_%s = %s%d_ioptr_%s%s;\n",
|
||||||
name, oPrefix, ioBindNum, prefix, name)
|
name, oPrefix, ioBindNum, prefix, name)
|
||||||
b.printf("iobounds1_%s = %s%d_ioptr2_%s%s;\n",
|
b.printf("iobounds1_%s = %s%d_iobounds1_%s%s;\n",
|
||||||
name, oPrefix, ioBindNum, prefix, name)
|
name, oPrefix, ioBindNum, prefix, name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-4
@@ -2935,8 +2935,8 @@ static wuffs_gif__status wuffs_gif__decoder__decode_id(
|
|||||||
{
|
{
|
||||||
wuffs_base__io_reader o_0_a_src = a_src;
|
wuffs_base__io_reader o_0_a_src = a_src;
|
||||||
wuffs_base__io_writer o_0_v_w = v_w;
|
wuffs_base__io_writer o_0_v_w = v_w;
|
||||||
uint8_t* o_0_ioptr1_v_w = ioptr_w;
|
uint8_t* o_0_ioptr_v_w = ioptr_w;
|
||||||
uint8_t* o_0_ioptr2_v_w = iobounds1_w;
|
uint8_t* o_0_iobounds1_v_w = iobounds1_w;
|
||||||
wuffs_base__io_writer__set(
|
wuffs_base__io_writer__set(
|
||||||
&v_w, &u_w, &ioptr_w, &iobounds1_w,
|
&v_w, &u_w, &ioptr_w, &iobounds1_w,
|
||||||
wuffs_base__slice_u8__subslice_i(
|
wuffs_base__slice_u8__subslice_i(
|
||||||
@@ -2972,8 +2972,8 @@ static wuffs_gif__status wuffs_gif__decoder__decode_id(
|
|||||||
})
|
})
|
||||||
.len)));
|
.len)));
|
||||||
v_w = o_0_v_w;
|
v_w = o_0_v_w;
|
||||||
ioptr_w = o_0_ioptr1_v_w;
|
ioptr_w = o_0_ioptr_v_w;
|
||||||
iobounds1_w = o_0_ioptr2_v_w;
|
iobounds1_w = o_0_iobounds1_v_w;
|
||||||
a_src = o_0_a_src;
|
a_src = o_0_a_src;
|
||||||
}
|
}
|
||||||
if ((v_z == 0) || (v_z == WUFFS_GIF__SUSPENSION_SHORT_WRITE)) {
|
if ((v_z == 0) || (v_z == WUFFS_GIF__SUSPENSION_SHORT_WRITE)) {
|
||||||
|
|||||||
Reference in new issue
Block a user