From 43a607c5aec4bd8d10486861bf2bc627f8846753 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 16 Nov 2014 22:53:06 -0800 Subject: Moved refmap from the top-level block node to the doc_parser. --- src/ast.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/ast.h') 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; -- cgit v1.2.3