summaryrefslogtreecommitdiff
path: root/src/node.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-06-23 13:28:41 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-06-23 13:29:06 -0700
commit41b8c5b3a4c46d3c2beb1dae6e170c295c19b198 (patch)
tree928c6267fd9795c3f5ed998b18b2a50c674c6bd0 /src/node.c
parent2365a559d0bc9e6a212e1a1a3ab919b12e3c5e90 (diff)
Removed check for same mem allocator in S_can_contain.
This is too strict, as it prevents the use of dynamically loaded extensions: see https://github.com/jgm/cmark/pull/123#discussion_r67231518. Documented in man page and public header that one should use the same memory allocator for every node in a tree.
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/node.c b/src/node.c
index 62acf14..e722acf 100644
--- a/src/node.c
+++ b/src/node.c
@@ -30,9 +30,6 @@ static bool S_can_contain(cmark_node *node, cmark_node *child) {
if (node == NULL || child == NULL) {
return false;
}
- if (NODE_MEM(node) != NODE_MEM(child)) {
- return 0;
- }
// Verify that child is not an ancestor of node or equal to node.
cur = node;