cmark

My personal build of CMark ✏️

iterator.h (344B)

 1 #ifndef CMARK_ITERATOR_H
 2 #define CMARK_ITERATOR_H
 3 
 4 #ifdef __cplusplus
 5 extern "C" {
 6 #endif
 7 
 8 #include "cmark.h"
 9 
10 typedef struct {
11   cmark_event_type ev_type;
12   cmark_node *node;
13 } cmark_iter_state;
14 
15 struct cmark_iter {
16   cmark_mem *mem;
17   cmark_node *root;
18   cmark_iter_state cur;
19   cmark_iter_state next;
20 };
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif