Indent the io_bind block

This commit is contained in:
Nigel Tao committed 2018-04-28 11:48:07 +10:00
1 parent 395890c287
commit 4588cdcf5f
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -130,13 +130,13 @@ func (g *gen) writeStatement(b *buffer, n *a.Node, depth uint32) error {
case a.KIOBind: case a.KIOBind:
n := n.IOBind() n := n.IOBind()
b.writes("// io_bind placeholder {\n") b.writes("{\n")
for _, o := range n.Body() { for _, o := range n.Body() {
if err := g.writeStatement(b, o, depth); err != nil { if err := g.writeStatement(b, o, depth); err != nil {
return err return err
} }
} }
b.writes("// io_bind placeholder }\n") b.writes("}\n")
return nil return nil
case a.KIf: case a.KIf:
+2 -2
View File
@@ -2955,7 +2955,7 @@ static wuffs_gif__status wuffs_gif__decoder__decode_id(
} }
while (true) { while (true) {
wuffs_base__io_reader__mark(&a_src, b_rptr_src); wuffs_base__io_reader__mark(&a_src, b_rptr_src);
// io_bind placeholder { {
v_r = a_src; v_r = a_src;
{ {
WUFFS_BASE__COROUTINE_SUSPENSION_POINT(15); WUFFS_BASE__COROUTINE_SUSPENSION_POINT(15);
@@ -2980,7 +2980,7 @@ static wuffs_gif__status wuffs_gif__decoder__decode_id(
} }
v_z = t_14; v_z = t_14;
} }
// io_bind placeholder } }
if (v_z == 0) { if (v_z == 0) {
goto label_1_break; goto label_1_break;
} }