From f7f010070d59bd2bd9334ef1f5f18e6d1631f9cc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 23 Nov 2014 07:21:25 -0800 Subject: Added 'fenced' flag to cmark_code struct, renamed from cmark_fenced_code. Technically we could do without this, since we can check for cmark_fence_length > 0. But it makes the code clearer and doesn't really increase the size of the node struct (because the size of the union is set by the data for lists). --- src/node.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/node.h') diff --git a/src/node.h b/src/node.h index 7bf6b2e..b842ed8 100644 --- a/src/node.h +++ b/src/node.h @@ -22,11 +22,12 @@ typedef struct { } cmark_list; typedef struct { + bool fenced; int fence_length; int fence_offset; unsigned char fence_char; cmark_strbuf info; -} cmark_fenced_code; +} cmark_code; typedef struct { int level; @@ -58,7 +59,7 @@ struct cmark_node { union { cmark_chunk literal; cmark_list list; - cmark_fenced_code code; + cmark_code code; cmark_header header; cmark_link link; } as; -- cgit v1.2.3