diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-23 07:21:25 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-23 07:21:25 -0800 |
commit | f7f010070d59bd2bd9334ef1f5f18e6d1631f9cc (patch) | |
tree | 85287f45145cf43f72c462edce4ef344b60ca6aa /src/node.h | |
parent | f28197a69d56eb0f60d5931de58cbbfbb65ee794 (diff) |
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).
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |