summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-19 16:18:44 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-19 16:18:44 +0100
commit18169a8174cd0c49d64d95a3b9509a66d359da27 (patch)
treef87d29dbaf2d2e693ec9bef4d031e6496b9ec0f0
parenta595a84f691009808d58226ba0ada52e995ff224 (diff)
Rename {get|set}_content to {get|set}_string_content
-rw-r--r--api_test/main.c6
-rw-r--r--src/cmark.h4
-rw-r--r--src/node.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/api_test/main.c b/api_test/main.c
index 1f4e298..9f1059f 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -22,17 +22,17 @@ create_tree(test_batch_runner *runner)
INT_EQ(runner, cmark_node_check(doc), 0, "prepend1 consistent");
cmark_node *str1 = cmark_node_new(CMARK_NODE_STRING);
- cmark_node_set_content(str1, "Hello, ");
+ cmark_node_set_string_content(str1, "Hello, ");
OK(runner, cmark_node_prepend_child(p, str1), "prepend2");
INT_EQ(runner, cmark_node_check(doc), 0, "prepend2 consistent");
cmark_node *str3 = cmark_node_new(CMARK_NODE_STRING);
- cmark_node_set_content(str3, "!");
+ cmark_node_set_string_content(str3, "!");
OK(runner, cmark_node_append_child(p, str3), "append2");
INT_EQ(runner, cmark_node_check(doc), 0, "append2 consistent");
cmark_node *str2 = cmark_node_new(CMARK_NODE_STRING);
- cmark_node_set_content(str2, "world");
+ cmark_node_set_string_content(str2, "world");
OK(runner, cmark_node_append_child(emph, str2), "append3");
INT_EQ(runner, cmark_node_check(doc), 0, "append3 consistent");
diff --git a/src/cmark.h b/src/cmark.h
index 18081db..e677ed0 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -90,10 +90,10 @@ CMARK_EXPORT cmark_node_type
cmark_node_get_type(cmark_node *node);
CMARK_EXPORT const char*
-cmark_node_get_content(cmark_node *node);
+cmark_node_get_string_content(cmark_node *node);
CMARK_EXPORT int
-cmark_node_set_content(cmark_node *node, const char *content);
+cmark_node_set_string_content(cmark_node *node, const char *content);
CMARK_EXPORT const char*
cmark_node_get_url(cmark_node *node);
diff --git a/src/node.c b/src/node.c
index c5ce642..9119c63 100644
--- a/src/node.c
+++ b/src/node.c
@@ -96,7 +96,7 @@ S_strdup(const char *str) {
}
const char*
-cmark_node_get_content(cmark_node *node) {
+cmark_node_get_string_content(cmark_node *node) {
switch (node->type) {
case NODE_STRING:
case NODE_INLINE_HTML:
@@ -110,7 +110,7 @@ cmark_node_get_content(cmark_node *node) {
}
int
-cmark_node_set_content(cmark_node *node, const char *content) {
+cmark_node_set_string_content(cmark_node *node, const char *content) {
switch (node->type) {
case NODE_STRING:
case NODE_INLINE_HTML: