Browse Source

Neither vertical tab nor formfeed are considered whitespace per the JSON spec, remove them from is_ws_char().

tags/json-c-0.16-20220414
Eric Haszlakiewicz 5 years ago
parent
commit
f3d8006d34
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      json_tokener.c

+ 2
- 4
json_tokener.c View File

@@ -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')


Loading…
Cancel
Save