diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-08-02 03:59:56 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-08-02 03:59:56 +0000 |
commit | f3d8006d3487a806092f3379d8cdb6a8c9c5dce9 (patch) | |
tree | 5edc68cd6095c95fb81ff2e8ae2cedcb5fecb122 /json_tokener.c | |
parent | 8b43ff0c220d4615e0b6fe124fb248fd87c1c2ce (diff) | |
download | json-c-f3d8006d3487a806092f3379d8cdb6a8c9c5dce9.tar.gz |
Neither vertical tab nor formfeed are considered whitespace per the JSON spec, remove them from is_ws_char().
Diffstat (limited to 'json_tokener.c')
-rw-r--r-- | json_tokener.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/json_tokener.c b/json_tokener.c index ea61ce0..4722621 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -59,17 +59,15 @@ * compiler will also inline these functions, providing an additional * speedup by saving on function calls. */ -static int is_ws_char(char c) +static inline int is_ws_char(char c) { return c == ' ' || c == '\t' || c == '\n' - || c == '\v' - || c == '\f' || c == '\r'; } -static int is_hex_char(char c) +static inline int is_hex_char(char c) { return (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F') |