summaryrefslogtreecommitdiff
path: root/src/iterator.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2016-05-27 16:55:16 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2016-06-06 15:39:05 -0700
commit25429c96f6554ffac415f9d865934b1183f3398e (patch)
tree84d4eef404e99ff9e88d96a86d348a863d7c466f /src/iterator.h
parentab6c81b960e86b26c7fda366f51ff29d1683a555 (diff)
cmark: Implement support for custom allocators
Diffstat (limited to 'src/iterator.h')
-rw-r--r--src/iterator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/iterator.h b/src/iterator.h
index 9c6bca6..fc745df 100644
--- a/src/iterator.h
+++ b/src/iterator.h
@@ -6,6 +6,7 @@ extern "C" {
#endif
#include "cmark.h"
+#include "memory.h"
typedef struct {
cmark_event_type ev_type;
@@ -13,6 +14,7 @@ typedef struct {
} cmark_iter_state;
struct cmark_iter {
+ cmark_mem *mem;
cmark_node *root;
cmark_iter_state cur;
cmark_iter_state next;