mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Add std/json while.string_loop_inner loop name
This commit is contained in:
1 parent
4ee19eb807
commit
02b2ecd29e
2 files changed
+18
-18
No files matched your search
@@ -19424,7 +19424,7 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
goto label__string_loop__continue;
|
goto label__string_loop__continue;
|
||||||
}
|
}
|
||||||
v_string_length = 0;
|
v_string_length = 0;
|
||||||
label__0__continue:;
|
label__string_loop_inner__continue:;
|
||||||
while (true) {
|
while (true) {
|
||||||
if (((uint64_t)(io2_a_src - iop_a_src)) <= 0) {
|
if (((uint64_t)(io2_a_src - iop_a_src)) <= 0) {
|
||||||
if (v_string_length > 0) {
|
if (v_string_length > 0) {
|
||||||
@@ -19462,7 +19462,7 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
goto label__string_loop__continue;
|
goto label__string_loop__continue;
|
||||||
}
|
}
|
||||||
v_string_length += 1;
|
v_string_length += 1;
|
||||||
goto label__0__continue;
|
goto label__string_loop_inner__continue;
|
||||||
} else if (v_char == 1) {
|
} else if (v_char == 1) {
|
||||||
if (v_string_length != 0) {
|
if (v_string_length != 0) {
|
||||||
*iop_a_dst++ = wuffs_base__make_token(
|
*iop_a_dst++ = wuffs_base__make_token(
|
||||||
@@ -19675,7 +19675,7 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
goto label__string_loop__continue;
|
goto label__string_loop__continue;
|
||||||
}
|
}
|
||||||
v_string_length += 2;
|
v_string_length += 2;
|
||||||
goto label__0__continue;
|
goto label__string_loop_inner__continue;
|
||||||
}
|
}
|
||||||
} else if (v_char == 4) {
|
} else if (v_char == 4) {
|
||||||
if (((uint64_t)(io2_a_src - iop_a_src)) < 3) {
|
if (((uint64_t)(io2_a_src - iop_a_src)) < 3) {
|
||||||
@@ -19721,7 +19721,7 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
goto label__string_loop__continue;
|
goto label__string_loop__continue;
|
||||||
}
|
}
|
||||||
v_string_length += 3;
|
v_string_length += 3;
|
||||||
goto label__0__continue;
|
goto label__string_loop_inner__continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (v_char == 5) {
|
} else if (v_char == 5) {
|
||||||
@@ -19768,7 +19768,7 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
goto label__string_loop__continue;
|
goto label__string_loop__continue;
|
||||||
}
|
}
|
||||||
v_string_length += 4;
|
v_string_length += 4;
|
||||||
goto label__0__continue;
|
goto label__string_loop_inner__continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19791,7 +19791,7 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
label__string_loop__break:;
|
label__string_loop__break:;
|
||||||
label__1__continue:;
|
label__0__continue:;
|
||||||
while (true) {
|
while (true) {
|
||||||
if (((uint64_t)(io2_a_src - iop_a_src)) <= 0) {
|
if (((uint64_t)(io2_a_src - iop_a_src)) <= 0) {
|
||||||
if (a_src && a_src->meta.closed) {
|
if (a_src && a_src->meta.closed) {
|
||||||
@@ -19801,13 +19801,13 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
status =
|
status =
|
||||||
wuffs_base__make_status(wuffs_base__suspension__short_read);
|
wuffs_base__make_status(wuffs_base__suspension__short_read);
|
||||||
WUFFS_BASE__COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(11);
|
WUFFS_BASE__COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(11);
|
||||||
goto label__1__continue;
|
goto label__0__continue;
|
||||||
}
|
}
|
||||||
if (((uint64_t)(io2_a_dst - iop_a_dst)) <= 0) {
|
if (((uint64_t)(io2_a_dst - iop_a_dst)) <= 0) {
|
||||||
status =
|
status =
|
||||||
wuffs_base__make_status(wuffs_base__suspension__short_write);
|
wuffs_base__make_status(wuffs_base__suspension__short_write);
|
||||||
WUFFS_BASE__COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(12);
|
WUFFS_BASE__COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(12);
|
||||||
goto label__1__continue;
|
goto label__0__continue;
|
||||||
}
|
}
|
||||||
(iop_a_src += 1, wuffs_base__make_empty_struct());
|
(iop_a_src += 1, wuffs_base__make_empty_struct());
|
||||||
*iop_a_dst++ = wuffs_base__make_token(
|
*iop_a_dst++ = wuffs_base__make_token(
|
||||||
@@ -19815,9 +19815,9 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
<< WUFFS_BASE__TOKEN__VALUE_MINOR__SHIFT) |
|
<< WUFFS_BASE__TOKEN__VALUE_MINOR__SHIFT) |
|
||||||
(((uint64_t)(2)) << WUFFS_BASE__TOKEN__LINK__SHIFT) |
|
(((uint64_t)(2)) << WUFFS_BASE__TOKEN__LINK__SHIFT) |
|
||||||
(((uint64_t)(1)) << WUFFS_BASE__TOKEN__LENGTH__SHIFT));
|
(((uint64_t)(1)) << WUFFS_BASE__TOKEN__LENGTH__SHIFT));
|
||||||
goto label__1__break;
|
goto label__0__break;
|
||||||
}
|
}
|
||||||
label__1__break:;
|
label__0__break:;
|
||||||
if (0 == (v_expect & 16)) {
|
if (0 == (v_expect & 16)) {
|
||||||
v_expect = 8;
|
v_expect = 8;
|
||||||
goto label__outer__continue;
|
goto label__outer__continue;
|
||||||
@@ -19862,7 +19862,7 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
<< WUFFS_BASE__TOKEN__VALUE_MINOR__SHIFT) |
|
<< WUFFS_BASE__TOKEN__VALUE_MINOR__SHIFT) |
|
||||||
(((uint64_t)(v_number_length))
|
(((uint64_t)(v_number_length))
|
||||||
<< WUFFS_BASE__TOKEN__LENGTH__SHIFT));
|
<< WUFFS_BASE__TOKEN__LENGTH__SHIFT));
|
||||||
goto label__2__break;
|
goto label__1__break;
|
||||||
}
|
}
|
||||||
while (v_number_length > 0) {
|
while (v_number_length > 0) {
|
||||||
v_number_length -= 1;
|
v_number_length -= 1;
|
||||||
@@ -19892,7 +19892,7 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
label__2__break:;
|
label__1__break:;
|
||||||
goto label__goto_parsed_a_leaf_value__break;
|
goto label__goto_parsed_a_leaf_value__break;
|
||||||
} else if (v_class == 5) {
|
} else if (v_class == 5) {
|
||||||
v_vminor = 2113553;
|
v_vminor = 2113553;
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string_length = 0
|
string_length = 0
|
||||||
while true,
|
while.string_loop_inner true,
|
||||||
pre args.dst.available() > 0,
|
pre args.dst.available() > 0,
|
||||||
{
|
{
|
||||||
if args.src.available() <= 0 {
|
if args.src.available() <= 0 {
|
||||||
@@ -205,7 +205,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader) {
|
|||||||
continue.string_loop
|
continue.string_loop
|
||||||
}
|
}
|
||||||
string_length += 1
|
string_length += 1
|
||||||
continue
|
continue.string_loop_inner
|
||||||
|
|
||||||
} else if char == 0x01 { // '"'
|
} else if char == 0x01 { // '"'
|
||||||
if string_length <> 0 {
|
if string_length <> 0 {
|
||||||
@@ -415,7 +415,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader) {
|
|||||||
continue.string_loop
|
continue.string_loop
|
||||||
}
|
}
|
||||||
string_length += 2
|
string_length += 2
|
||||||
continue
|
continue.string_loop_inner
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if char == 0x04 { // 3-byte UTF-8.
|
} else if char == 0x04 { // 3-byte UTF-8.
|
||||||
@@ -455,7 +455,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader) {
|
|||||||
continue.string_loop
|
continue.string_loop
|
||||||
}
|
}
|
||||||
string_length += 3
|
string_length += 3
|
||||||
continue
|
continue.string_loop_inner
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -495,7 +495,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader) {
|
|||||||
continue.string_loop
|
continue.string_loop
|
||||||
}
|
}
|
||||||
string_length += 4
|
string_length += 4
|
||||||
continue
|
continue.string_loop_inner
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -512,7 +512,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader) {
|
|||||||
return "#bad C0 control code"
|
return "#bad C0 control code"
|
||||||
}
|
}
|
||||||
return "#bad UTF-8"
|
return "#bad UTF-8"
|
||||||
}
|
} endwhile.string_loop_inner
|
||||||
} endwhile.string_loop
|
} endwhile.string_loop
|
||||||
|
|
||||||
// Emit the trailing '"'.
|
// Emit the trailing '"'.
|
||||||
|
|||||||
Reference in new issue
Block a user