1 | #include "cmark.h" |
2 | #include "chunk.h" |
3 | |
4 | #ifdef __cplusplus |
5 | extern "C" { |
6 | #endif |
7 | |
8 | bufsize_t _scan_at(bufsize_t (*scanner)(const unsigned char *), cmark_chunk *c, |
9 | bufsize_t offset); |
10 | bufsize_t _scan_scheme(const unsigned char *p); |
11 | bufsize_t _scan_autolink_uri(const unsigned char *p); |
12 | bufsize_t _scan_autolink_email(const unsigned char *p); |
13 | bufsize_t _scan_html_tag(const unsigned char *p); |
14 | bufsize_t (const unsigned char *p); |
15 | bufsize_t _scan_html_pi(const unsigned char *p); |
16 | bufsize_t _scan_html_declaration(const unsigned char *p); |
17 | bufsize_t _scan_html_cdata(const unsigned char *p); |
18 | bufsize_t _scan_html_block_start(const unsigned char *p); |
19 | bufsize_t _scan_html_block_start_7(const unsigned char *p); |
20 | bufsize_t _scan_html_block_end_1(const unsigned char *p); |
21 | bufsize_t _scan_html_block_end_2(const unsigned char *p); |
22 | bufsize_t _scan_html_block_end_3(const unsigned char *p); |
23 | bufsize_t _scan_html_block_end_4(const unsigned char *p); |
24 | bufsize_t _scan_html_block_end_5(const unsigned char *p); |
25 | bufsize_t _scan_link_title(const unsigned char *p); |
26 | bufsize_t _scan_spacechars(const unsigned char *p); |
27 | bufsize_t _scan_atx_heading_start(const unsigned char *p); |
28 | bufsize_t _scan_setext_heading_line(const unsigned char *p); |
29 | bufsize_t _scan_open_code_fence(const unsigned char *p); |
30 | bufsize_t _scan_close_code_fence(const unsigned char *p); |
31 | bufsize_t _scan_entity(const unsigned char *p); |
32 | bufsize_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 (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 | |