cmark: patch allocator to accept a context object

This is necessary to be able to use arbitrary zig allocators as the
cmark allocator. I'm not sure if this patch is worth trying to
upstream.
This commit is contained in:
2023-09-04 15:17:29 -07:00
parent 24810cbbbd
commit 20b3ef3515
12 changed files with 61 additions and 56 deletions

View File

@@ -322,7 +322,7 @@ static void iterator_delete(test_batch_runner *runner) {
cmark_mem *allocator = cmark_get_default_mem_allocator();
allocator->free(html);
allocator->free(allocator->ctx, html);
cmark_iter_free(iter);
cmark_node_free(doc);
}