From 30eed7886769d838a5d51b70c764c532ca023b1c Mon Sep 17 00:00:00 2001 From: eunhhu Date: Mon, 19 Oct 2026 07:34:12 +0100 Subject: 140's apps written with the frictions gone: inflate's and linebreak's lists declared together, linebreak's 0x2010 and 0x25CC (their modules the same), DNS's records = [] and 0xc000, HTTP's trailers, j = fields(...), RFC 6298's abs and tick.period (G written once), layout's lists together, its boxes and root as targets together, boxes = []; lines 121 to 120, 148 to 146, 176 to 169, 116 to 110; instructions within 0.2% --- examples/http.aup | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples/http.aup') diff --git a/examples/http.aup b/examples/http.aup index e2c2045..863ff9b 100644 --- a/examples/http.aup +++ b/examples/http.aup @@ -124,10 +124,8 @@ fn request(d) -> Request, number { for k in semi .. c { require d[k] != 10 } require n <= 2147483648 # 2^31 at most: ours, not h11's if n == 0 { - let t, after = fields(d, c + 2) - if after < 0 { return Request {}, -1 } - for f in t { trailers.append(f) } - j = after + trailers, j = fields(d, c + 2) + if j < 0 { return Request {}, -1 } more = false } else { if d.bytes < c + 4 + n { return Request {}, -1 } -- cgit v1.2.3