diff options
author | Vicent Marti <tanoku@gmail.com> | 2014-09-07 22:48:33 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2014-09-09 03:39:16 +0200 |
commit | 7426f9ae60272a19bd4611b8579647118033a1e6 (patch) | |
tree | d8265b6055052dc42fbf1a3f41454654b1199d2c /src/stmd.h | |
parent | 798f58a2b614280201141b398c8e498cecc8ab5e (diff) |
Abstract the Block union
Diffstat (limited to 'src/stmd.h')
-rw-r--r-- | src/stmd.h | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -96,14 +96,20 @@ struct node_block { struct node_block* top; strbuf string_content; node_inl* inline_content; + union { - struct ListData list_data; - struct FencedCodeData fenced_code_data; - int header_level; - reference** refmap; - } attributes; - struct node_block * next; - struct node_block * prev; + struct ListData list; + struct FencedCodeData code; + struct { + int level; + } header; + struct { + reference** refmap; + } document; + } as; + + struct node_block *next; + struct node_block *prev; }; typedef struct node_block node_block; |