From: Mark Wooding Date: Mon, 11 Jun 2018 23:17:12 +0000 (+0100) Subject: codec/url.c (encode): Rewrite more compactly and perspicuously. X-Git-Tag: 2.3.0~1 X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/commitdiff_plain/96e10f286c055c81d9474e727bf0231a94aa2b43?hp=96e10f286c055c81d9474e727bf0231a94aa2b43 codec/url.c (encode): Rewrite more compactly and perspicuously. 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. ---