summaryrefslogtreecommitdiff
path: root/src/iterator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/iterator.c')
-rw-r--r--src/iterator.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/iterator.c b/src/iterator.c
index b0ac9d2..2c15246 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -48,6 +48,14 @@ int S_is_leaf(cmark_node *node)
}
}
+void
+cmark_iter_reset(cmark_iter *iter, cmark_node *current,
+ cmark_event_type event_type)
+{
+ iter->event_type = event_type;
+ iter->current = current;
+}
+
cmark_node*
cmark_iter_get_node(cmark_iter *iter)
{