]> granicus.if.org Git - json-c/commitdiff
Neither vertical tab nor formfeed are considered whitespace per the JSON spec, remove...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 2 Aug 2020 03:59:56 +0000 (03:59 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 2 Aug 2020 03:59:56 +0000 (03:59 +0000)
json_tokener.c

index ea61ce0a9aae24cd7356b4f03db10e2346805761..4722621d191050c2214f0918a781f16b0998112e 100644 (file)
  * 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')