summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-14 14:31:43 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-14 14:31:43 -0800
commit8a65a6ee011a29a319270d2294eea1d6e6a0e5b0 (patch)
tree94f1392164d80f4af7279af3303b4da42247825f /src
parent1e00e9b9f94b01744b1880f341162b05429f9c8f (diff)
Rename get/set_string_content -> get/set_literal.
Diffstat (limited to 'src')
-rw-r--r--src/cmark.h4
-rw-r--r--src/node.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cmark.h b/src/cmark.h
index d08d939..3b60d67 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -201,13 +201,13 @@ cmark_node_get_type(cmark_node *node);
/** Returns the string contents of 'node', or NULL if none.
*/
CMARK_EXPORT const char*
-cmark_node_get_string_content(cmark_node *node);
+cmark_node_get_literal(cmark_node *node);
/** Sets the string contents of 'node'. Returns 1 on success,
* 0 on failure.
*/
CMARK_EXPORT int
-cmark_node_set_string_content(cmark_node *node, const char *content);
+cmark_node_set_literal(cmark_node *node, const char *content);
/** Returns the header level of 'node', or 0 if 'node' is not a header.
*/
diff --git a/src/node.c b/src/node.c
index b83ea78..4c32548 100644
--- a/src/node.c
+++ b/src/node.c
@@ -177,7 +177,7 @@ S_strdup(const char *str) {
}
const char*
-cmark_node_get_string_content(cmark_node *node) {
+cmark_node_get_literal(cmark_node *node) {
if (node == NULL) {
return NULL;
}
@@ -198,7 +198,7 @@ cmark_node_get_string_content(cmark_node *node) {
}
int
-cmark_node_set_string_content(cmark_node *node, const char *content) {
+cmark_node_set_literal(cmark_node *node, const char *content) {
if (node == NULL) {
return 0;
}