1#include "cmark.h"
2#include "chunk.h"
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8bufsize_t _scan_at(bufsize_t (*scanner)(const unsigned char *), cmark_chunk *c,
9 bufsize_t offset);
10bufsize_t _scan_scheme(const unsigned char *p);
11bufsize_t _scan_autolink_uri(const unsigned char *p);
12bufsize_t _scan_autolink_email(const unsigned char *p);
13bufsize_t _scan_html_tag(const unsigned char *p);
14bufsize_t _scan_html_comment(const unsigned char *p);
15bufsize_t _scan_html_pi(const unsigned char *p);
16bufsize_t _scan_html_declaration(const unsigned char *p);
17bufsize_t _scan_html_cdata(const unsigned char *p);
18bufsize_t _scan_html_block_start(const unsigned char *p);
19bufsize_t _scan_html_block_start_7(const unsigned char *p);
20bufsize_t _scan_html_block_end_1(const unsigned char *p);
21bufsize_t _scan_html_block_end_2(const unsigned char *p);
22bufsize_t _scan_html_block_end_3(const unsigned char *p);
23bufsize_t _scan_html_block_end_4(const unsigned char *p);
24bufsize_t _scan_html_block_end_5(const unsigned char *p);
25bufsize_t _scan_link_title(const unsigned char *p);
26bufsize_t _scan_spacechars(const unsigned char *p);
27bufsize_t _scan_atx_heading_start(const unsigned char *p);
28bufsize_t _scan_setext_heading_line(const unsigned char *p);
29bufsize_t _scan_open_code_fence(const unsigned char *p);
30bufsize_t _scan_close_code_fence(const unsigned char *p);
31bufsize_t _scan_entity(const unsigned char *p);
32bufsize_t _scan_dangerous_url(const unsigned char *p);
33
34#define scan_scheme(c, n) _scan_at(&_scan_scheme, c, n)
35#define scan_autolink_uri(c, n) _scan_at(&_scan_autolink_uri, c, n)
36#define scan_autolink_email(c, n) _scan_at(&_scan_autolink_email, c, n)
37#define scan_html_tag(c, n) _scan_at(&_scan_html_tag, c, n)
38#define scan_html_comment(c, n) _scan_at(&_scan_html_comment, c, n)
39#define scan_html_pi(c, n) _scan_at(&_scan_html_pi, c, n)
40#define scan_html_declaration(c, n) _scan_at(&_scan_html_declaration, c, n)
41#define scan_html_cdata(c, n) _scan_at(&_scan_html_cdata, c, n)
42#define scan_html_block_start(c, n) _scan_at(&_scan_html_block_start, c, n)
43#define scan_html_block_start_7(c, n) _scan_at(&_scan_html_block_start_7, c, n)
44#define scan_html_block_end_1(c, n) _scan_at(&_scan_html_block_end_1, c, n)
45#define scan_html_block_end_2(c, n) _scan_at(&_scan_html_block_end_2, c, n)
46#define scan_html_block_end_3(c, n) _scan_at(&_scan_html_block_end_3, c, n)
47#define scan_html_block_end_4(c, n) _scan_at(&_scan_html_block_end_4, c, n)
48#define scan_html_block_end_5(c, n) _scan_at(&_scan_html_block_end_5, c, n)
49#define scan_link_title(c, n) _scan_at(&_scan_link_title, c, n)
50#define scan_spacechars(c, n) _scan_at(&_scan_spacechars, c, n)
51#define scan_atx_heading_start(c, n) _scan_at(&_scan_atx_heading_start, c, n)
52#define scan_setext_heading_line(c, n) \
53 _scan_at(&_scan_setext_heading_line, c, n)
54#define scan_open_code_fence(c, n) _scan_at(&_scan_open_code_fence, c, n)
55#define scan_close_code_fence(c, n) _scan_at(&_scan_close_code_fence, c, n)
56#define scan_entity(c, n) _scan_at(&_scan_entity, c, n)
57#define scan_dangerous_url(c, n) _scan_at(&_scan_dangerous_url, c, n)
58
59#ifdef __cplusplus
60}
61#endif
62