28 */ |
28 */ |
29 |
29 |
30 #ifndef C2HTML_HIGHLIGHTER_H |
30 #ifndef C2HTML_HIGHLIGHTER_H |
31 #define C2HTML_HIGHLIGHTER_H |
31 #define C2HTML_HIGHLIGHTER_H |
32 |
32 |
33 #include "ucx/buffer.h" |
33 #include <cx/buffer.h> |
34 |
34 |
35 #ifdef __cplusplus |
35 #ifdef __cplusplus |
36 extern "C" { |
36 extern "C" { |
37 #endif |
37 #endif |
38 |
38 |
39 typedef struct { |
39 typedef struct { |
40 int multiline_comment; |
40 int multiline_comment; |
41 UcxBuffer* primary_buffer; |
41 CxBuffer primary_buffer; |
42 UcxBuffer* secondary_buffer; |
42 CxBuffer secondary_buffer; |
43 } c2html_highlighter_data; |
43 } c2html_highlighter_data; |
44 |
44 |
45 #define C2HTML_HIGHLIGHTER_SIGNATURE \ |
45 #define C2HTML_HIGHLIGHTER_SIGNATURE \ |
46 char*,UcxBuffer*, c2html_highlighter_data* |
46 char const*, CxBuffer*, c2html_highlighter_data* |
47 |
47 |
48 typedef void(*c2html_highlighter_func)(C2HTML_HIGHLIGHTER_SIGNATURE); |
48 typedef void(*c2html_highlighter_func)(C2HTML_HIGHLIGHTER_SIGNATURE); |
49 |
49 |
50 void c2html_plain_highlighter(C2HTML_HIGHLIGHTER_SIGNATURE); |
50 void c2html_plain_highlighter(C2HTML_HIGHLIGHTER_SIGNATURE); |
51 void c2html_c_highlighter(C2HTML_HIGHLIGHTER_SIGNATURE); |
51 void c2html_c_highlighter(C2HTML_HIGHLIGHTER_SIGNATURE); |