Lines Matching refs:doc
53 static void multiline_comment(FILE *f, struct data_node *doc)
63 if (doc) {
68 if (data_node_array_add(doc, line))
69 WARN("doc string comment truncated");
103 static void maybe_doc_comment(FILE *f, struct data_node *doc)
120 multiline_comment(f, doc);
123 static void maybe_comment(FILE *f, struct data_node *doc)
132 maybe_doc_comment(f, doc);
140 static char *next_token2(FILE *f, char *buf, size_t buf_len, struct data_node *doc)
193 maybe_comment(f, doc);
215 static char *next_token(FILE *f, struct data_node *doc)
219 return next_token2(f, buf, sizeof(buf), doc);
475 static int parse_test_struct(FILE *f, struct data_node *doc, struct data_node *node)
483 if (!(token = next_token(f, doc)))
684 struct data_node *doc = data_node_array();
686 while ((token = next_token(f, doc))) {
691 token = next_token(f, doc);
708 parse_test_struct(f, doc, res);
711 if (data_node_array_len(doc)) {
712 data_node_hash_add(res, "doc", doc);
715 data_node_free(doc);