From d0026afc4baa7dbc6afc1cf672e5568023147fb0 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 14 Nov 2018 16:33:36 +0000 Subject: Merge r2040, r2041, r2043 from trunk: * src/ne_uri.c: Save a few bytes by using shorts for uri_chars lookup table. * src/ne_uri.c: Note that only one bit is left for a 16-bit short. * src/ne_uri.c: Fix comment-in-comment. git-svn-id: http://svn.webdav.org/repos/projects/neon/branches/0.30.x@2045 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845 --- src/ne_uri.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ne_uri.c b/src/ne_uri.c index 4d0ab91..ebe1c41 100644 --- a/src/ne_uri.c +++ b/src/ne_uri.c @@ -66,6 +66,7 @@ * ... except "+" which is PS */ #define OT (0x4000) /* others */ +/* UNUSED (0x8000) .. only remaining bit. */ #define URI_ALPHA (AL) #define URI_DIGIT (DG) @@ -92,7 +93,7 @@ /* any characters which should be path-escaped: */ #define URI_ESCAPE ((URI_GENDELIM & ~(FS)) | URI_SUBDELIM | OT | PC) -static const unsigned int uri_chars[256] = { +static const unsigned short uri_chars[256] = { /* 0xXX x0 x2 x4 x6 x8 xA xC xE */ /* 0x */ OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, /* 1x */ OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, -- cgit v1.2.1