diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-17 20:13:20 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-17 21:43:46 -0800 |
commit | 24643bde1d2c79cc512242379868efadf653c1da (patch) | |
tree | ba859dea0838032ff5c1f7b6377f47fa74969e2e /src/node.h | |
parent | b66573cb303f9174a6b86138a7c8782eeb03b3ad (diff) |
Switch cmark_node_block over to cmark_node
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -86,6 +86,9 @@ struct cmark_node { bool open; bool last_line_blank; + // Temp + cmark_node_inl *inline_content; + cmark_strbuf string_content; union { @@ -96,8 +99,6 @@ struct cmark_node { } as; }; -typedef struct cmark_node cmark_node; - CMARK_EXPORT cmark_node_type cmark_node_get_type(cmark_node *node); @@ -135,6 +136,31 @@ cmark_node_prepend_child(cmark_node *node, cmark_node *child); CMARK_EXPORT int cmark_node_append_child(cmark_node *node, cmark_node *child); +#define NODE_DOCUMENT CMARK_NODE_DOCUMENT +#define NODE_BQUOTE CMARK_NODE_BQUOTE +#define NODE_LIST CMARK_NODE_LIST +#define NODE_LIST_ITEM CMARK_NODE_LIST_ITEM +#define NODE_FENCED_CODE CMARK_NODE_FENCED_CODE +#define NODE_INDENTED_CODE CMARK_NODE_INDENTED_CODE +#define NODE_HTML CMARK_NODE_HTML +#define NODE_PARAGRAPH CMARK_NODE_PARAGRAPH +#define NODE_ATX_HEADER CMARK_NODE_ATX_HEADER +#define NODE_SETEXT_HEADER CMARK_NODE_SETEXT_HEADER +#define NODE_HRULE CMARK_NODE_HRULE +#define NODE_REFERENCE_DEF CMARK_NODE_REFERENCE_DEF + +#define NODE_STRING CMARK_NODE_STRING +#define NODE_SOFTBREAK CMARK_NODE_SOFTBREAK +#define NODE_LINEBREAK CMARK_NODE_LINEBREAK +#define NODE_INLINE_CODE CMARK_NODE_INLINE_CODE +#define NODE_INLINE_HTML CMARK_NODE_INLINE_HTML +#define NODE_EMPH CMARK_NODE_EMPH +#define NODE_STRONG CMARK_NODE_STRONG +#define NODE_LINK CMARK_NODE_LINK +#define NODE_IMAGE CMARK_NODE_IMAGE + +#define NODE_LINK_LABEL CMARK_NODE_LINK_LABEL + #ifdef __cplusplus } #endif |