summaryrefslogtreecommitdiff
path: root/src/cmark.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-11 13:40:03 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-11 13:40:03 -0800
commit93aeacca3061b490e77047e08def107c6ab1f7b2 (patch)
tree8d2d589140afd3719bc24f2ed2a0cf36e994eb23 /src/cmark.h
parentc9004ffe784577c39b680096883bc8f90524bf8a (diff)
cmark_node_replace - unlink, but don't free, oldnode.
Diffstat (limited to 'src/cmark.h')
-rw-r--r--src/cmark.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmark.h b/src/cmark.h
index dcd7e2c..4fa92ca 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -387,7 +387,8 @@ CMARK_EXPORT int cmark_node_insert_before(cmark_node *node,
*/
CMARK_EXPORT int cmark_node_insert_after(cmark_node *node, cmark_node *sibling);
-/** Replaces 'oldnode' with 'newnode' and frees the memory used by 'oldnode'.
+/** Replaces 'oldnode' with 'newnode' and unlinks 'oldnode' (but does
+ * not free its memory).
* Returns 1 on success, 0 on failure.
*/
CMARK_EXPORT int cmark_node_replace(cmark_node *oldnode, cmark_node *newnode);