~mdw
/
mLib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
96e10f2
)
codec/url.c (encode): Rewrite more compactly and perspicuously.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 11 Jun 2018 23:17:12 +0000
(
00:17
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 11 Jun 2018 23:17:12 +0000
(
00:17
+0100)
The condition in the `default' case was a bit gnarly: rewrite it as a
ladder of if/else. Take the opportunity to compress the code, because
the individual case labels really don't deserve all of that vertical space.
No differences found