summaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-16 22:53:06 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-16 22:53:06 -0800
commit43a607c5aec4bd8d10486861bf2bc627f8846753 (patch)
tree7f6b9218496b6e7d569f0503faa47e547efcb0b7 /src/ast.h
parent09c365fb0a75c9da46a1319aed1888665d6dc627 (diff)
Moved refmap from the top-level block node to the doc_parser.
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ast.h b/src/ast.h
index d97d7c7..baeaa3f 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -72,7 +72,6 @@ struct cmark_node_block {
struct cmark_node_block* children;
struct cmark_node_block* last_child;
struct cmark_node_block* parent;
- struct cmark_node_block* top;
cmark_strbuf string_content;
struct cmark_node_inl* inline_content;
@@ -82,9 +81,6 @@ struct cmark_node_block {
struct {
int level;
} header;
- struct {
- cmark_reference_map *refmap;
- } document;
} as;
struct cmark_node_block *next;
@@ -92,7 +88,8 @@ struct cmark_node_block {
};
struct cmark_doc_parser {
- struct cmark_node_block* head;
+ struct cmark_reference_map *refmap;
+ struct cmark_node_block* root;
struct cmark_node_block* current;
int line_number;
cmark_strbuf *curline;