Lines Matching refs:cfile

32 json_parse(struct parse *cfile)  in json_parse()  argument
39 stackPush(cfile, elem); in json_parse()
40 cfile->stack[0] = elem; in json_parse()
41 cfile->stack_top = 0; in json_parse()
43 token = next_token(&val, NULL, cfile); in json_parse()
47 TAILQ_CONCAT(&elem->comments, &cfile->comments); in json_parse()
51 TAILQ_CONCAT(&elem->comments, &cfile->comments); in json_parse()
62 parse_error(cfile, "unknown name %s", val); in json_parse()
63 TAILQ_CONCAT(&elem->comments, &cfile->comments); in json_parse()
66 elem = json_list_parse(cfile); in json_parse()
69 elem = json_map_parse(cfile); in json_parse()
72 parse_error(cfile, "unexpected end of file"); in json_parse()
74 parse_error(cfile, "unexpected %s", val); in json_parse()
80 json_list_parse(struct parse *cfile) in json_list_parse() argument
89 TAILQ_CONCAT(&list->comments, &cfile->comments); in json_list_parse()
90 stackPush(cfile, list); in json_list_parse()
92 token = peek_token(&val, NULL, cfile); in json_list_parse()
98 parse_error(cfile, "unexpected end of file"); in json_list_parse()
100 skip_token(&val, NULL, cfile); in json_list_parse()
102 parse_error(cfile, "unexpected ','"); in json_list_parse()
103 item = json_parse(cfile); in json_list_parse()
108 parse_error(cfile, "expected ','"); in json_list_parse()
109 item = json_parse(cfile); in json_list_parse()
114 skip_token(&val, NULL, cfile); in json_list_parse()
115 cfile->stack_top--; in json_list_parse()
120 json_map_parse(struct parse *cfile) in json_map_parse() argument
130 TAILQ_CONCAT(&map->comments, &cfile->comments); in json_map_parse()
131 stackPush(cfile, map); in json_map_parse()
133 token = peek_token(&val, NULL, cfile); in json_map_parse()
139 parse_error(cfile, "unexpected end of file"); in json_map_parse()
141 skip_token(&val, NULL, cfile); in json_map_parse()
143 parse_error(cfile, "unexpected ','"); in json_map_parse()
144 token = next_token(&val, NULL, cfile); in json_map_parse()
146 parse_error(cfile, "unexpected %s, " in json_map_parse()
149 token = next_token(&val, NULL, cfile); in json_map_parse()
151 parse_error(cfile, "unexpected %s, " in json_map_parse()
153 item = json_parse(cfile); in json_map_parse()
157 skip_token(&val, NULL, cfile); in json_map_parse()
159 parse_error(cfile, "unexpected \"%s\", " in json_map_parse()
162 token = next_token(&val, NULL, cfile); in json_map_parse()
164 parse_error(cfile, "unexpected %s, " in json_map_parse()
166 item = json_parse(cfile); in json_map_parse()
171 parse_error(cfile, "unexpected %s, " in json_map_parse()
175 parse_error(cfile, "unexpected %s, " in json_map_parse()
179 skip_token(&val, NULL, cfile); in json_map_parse()
180 cfile->stack_top--; in json_map_parse()