4 #define SCDOC_PARSE_FULL 0
5 #define SCDOC_PARSE_PARTIAL 1
6 #define SCDOC_PARSE_METADATA 2
8 typedef struct DocNode
{
12 struct DocNode
**children
;
15 char *strmerge(char *a
, char *b
);
17 DocNode
* doc_node_make_take_children(const char *id
, char *text
, DocNode
*src
);
18 DocNode
* doc_node_make(const char *id
, char *text
, DocNode
*child
);
19 DocNode
* doc_node_add_child(DocNode
*n
, DocNode
*child
);
20 DocNode
* doc_node_create(const char *id
);
21 void doc_node_free_tree(DocNode
*n
);
23 DocNode
* scdoc_parse_file(char *fn
, int mode
);
24 void doc_node_dump(DocNode
*n
);
26 extern char * scdoc_current_file
;