diff options
author | John MacFarlane <[email protected]> | 2014-11-25 14:51:54 -0800 |
---|---|---|
committer | John MacFarlane <[email protected]> | 2014-11-25 14:51:54 -0800 |
commit | a5a55657ad8c1da1e17eda8e0a321612e61c311e (patch) | |
tree | eeffae63dff482617227c435e63bff63f2611fb7 /src/node.c | |
parent | e31e2d2fe1d28223eee9f406b82d6f48552f5be7 (diff) |
Rename NODE_STRING -> NODE_TEXT.
In JS, use 'Text' instead of 'Str'.
In spec, use "plain textual content" instead of "strings."
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -59,7 +59,7 @@ S_type_string(cmark_node *node) case CMARK_NODE_HEADER: return "HEADER"; case CMARK_NODE_HRULE: return "HRULE"; case CMARK_NODE_REFERENCE_DEF: return "REFERENCE_DEF"; - case CMARK_NODE_STRING: return "STRING"; + case CMARK_NODE_TEXT: return "TEXT"; case CMARK_NODE_SOFTBREAK: return "SOFTBREAK"; case CMARK_NODE_LINEBREAK: return "LINEBREAK"; case CMARK_NODE_INLINE_CODE: return "INLINE_CODE"; @@ -118,7 +118,7 @@ cmark_node_get_string_content(cmark_node *node) { case NODE_HTML: return cmark_strbuf_cstr(&node->string_content); - case NODE_STRING: + case NODE_TEXT: case NODE_INLINE_HTML: case NODE_INLINE_CODE: return cmark_chunk_to_cstr(&node->as.literal); @@ -138,7 +138,7 @@ cmark_node_set_string_content(cmark_node *node, const char *content) { cmark_strbuf_sets(&node->string_content, content); return 1; - case NODE_STRING: + case NODE_TEXT: case NODE_INLINE_HTML: case NODE_INLINE_CODE: cmark_chunk_set_cstr(&node->as.literal, content); @@ -622,7 +622,7 @@ void cmark_free_nodes(cmark_node *e) case NODE_CODE_BLOCK: strbuf_free(&e->as.code.info); break; - case NODE_STRING: + case NODE_TEXT: case NODE_INLINE_HTML: case NODE_INLINE_CODE: cmark_chunk_free(&e->as.literal); |