diff options
author | Timothy Gu <timothygu99@gmail.com> | 2017-03-16 05:33:08 +0300 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2017-03-30 08:19:33 +0300 |
commit | 4ddd23f0ec5202b131b7070d543b20cd031f052a (patch) | |
tree | 4bbedb43cf28e416ae955a98b2f5b8fa9b49bb59 /src/node_url.h | |
parent | 7139b93a8b4e9115167954fbb507feaa01d79129 (diff) |
src: WHATWG URL C++ parser cleanup
- Clarify port state
- Remove scheme flag
- Clarify URL_FLAG_TERMINATED
PR-URL: https://github.com/nodejs/node/pull/11917
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/node_url.h')
-rw-r--r-- | src/node_url.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/node_url.h b/src/node_url.h index 809bf557be1..b17d81778fa 100644 --- a/src/node_url.h +++ b/src/node_url.h @@ -451,13 +451,12 @@ static inline void PercentDecode(const char* input, XX(URL_FLAGS_INVALID_PARSE_STATE, 0x04) \ XX(URL_FLAGS_TERMINATED, 0x08) \ XX(URL_FLAGS_SPECIAL, 0x10) \ - XX(URL_FLAGS_HAS_SCHEME, 0x20) \ - XX(URL_FLAGS_HAS_USERNAME, 0x40) \ - XX(URL_FLAGS_HAS_PASSWORD, 0x80) \ - XX(URL_FLAGS_HAS_HOST, 0x100) \ - XX(URL_FLAGS_HAS_PATH, 0x200) \ - XX(URL_FLAGS_HAS_QUERY, 0x400) \ - XX(URL_FLAGS_HAS_FRAGMENT, 0x800) + XX(URL_FLAGS_HAS_USERNAME, 0x20) \ + XX(URL_FLAGS_HAS_PASSWORD, 0x40) \ + XX(URL_FLAGS_HAS_HOST, 0x80) \ + XX(URL_FLAGS_HAS_PATH, 0x100) \ + XX(URL_FLAGS_HAS_QUERY, 0x200) \ + XX(URL_FLAGS_HAS_FRAGMENT, 0x400) #define ARGS(XX) \ XX(ARG_FLAGS) \ |