Lines Matching refs:ch
65 int ch; in json_skip_whitespace() local
67 while ((ch = input()) && isspace(ch)) in json_skip_whitespace()
76 int ch; in json_parse_string() local
78 ch = input(); in json_parse_string()
79 if (ch != '"') { in json_parse_string()
84 while ((ch = input()) && ch != '"' && b - buf < sizeof(buf) - 1) in json_parse_string()
85 *b++ = ch; in json_parse_string()
88 if (!ch) in json_parse_string()
101 int ch; in json_parse_number() local
103 while ((ch = input()) && isdigit(ch) && b - buf < sizeof(buf) - 1) in json_parse_number()
104 *b++ = ch; in json_parse_number()
121 int ch; in json_parse_keyword() local
123 ch = input(); in json_parse_keyword()
124 switch (ch) { in json_parse_keyword()
143 while (*m && *m++ == ch) in json_parse_keyword()
144 ch = input(); in json_parse_keyword()
189 int ch; in json_parse_array() local
191 ch = input(); in json_parse_array()
192 if (ch != '[') { in json_parse_array()
215 ch = input(); in json_parse_array()
216 if (ch == ']') { in json_parse_array()
220 } while (ch == ','); in json_parse_array()
222 fprintf(stderr, "expected ',' got '%c'\n", ch); in json_parse_array()
232 int ch; in json_parse_object() local
234 ch = input(); in json_parse_object()
235 if (ch != '{') { in json_parse_object()
259 ch = input(); in json_parse_object()
260 if (ch == '}') { in json_parse_object()
263 } while (ch == ','); in json_parse_object()
272 int ch; in json_parse_property() local
284 ch = input(); in json_parse_property()
285 if (ch != ':') in json_parse_property()