Fixing markdown licensing && compilation issues.

This commit is contained in:
Black Hat
2019-02-02 14:25:25 +08:00
parent 1c76f2653b
commit 495dbf2ba2
37 changed files with 23485 additions and 26 deletions

27
include/cmark/iterator.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef CMARK_ITERATOR_H
#define CMARK_ITERATOR_H
#ifdef __cplusplus
extern "C" {
#endif
#include "cmark.h"
#include "memory.h"
typedef struct {
cmark_event_type ev_type;
cmark_node *node;
} cmark_iter_state;
struct cmark_iter {
cmark_mem *mem;
cmark_node *root;
cmark_iter_state cur;
cmark_iter_state next;
};
#ifdef __cplusplus
}
#endif
#endif