src/highlighter.h

changeset 66
1b12cf799fee
parent 56
81d99e9ceb20
child 67
5da2cb5aea6b
equal deleted inserted replaced
60:9f25df78925e 66:1b12cf799fee
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);

mercurial