diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-11-14 16:33:36 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-11-14 16:33:36 +0000 |
commit | d0026afc4baa7dbc6afc1cf672e5568023147fb0 (patch) | |
tree | 129ac8bb41f8ddd33c612460e1a4d42901fc898c | |
parent | e3af24ed520db1bc6f3f7af3fdad7f99b4982ae7 (diff) | |
download | neon-0.30.x.tar.gz |
Merge r2040, r2041, r2043 from trunk:0.30.x
* 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
-rw-r--r-- | src/ne_uri.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |