src/c2html.c

changeset 75
c72b250866ab
parent 71
d5af9261231d
equal deleted inserted replaced
74:831928419249 75:c72b250866ab
53 /* start code formatting */ 53 /* start code formatting */
54 written += wfnc("<div class=\"c2html-code\">\n", 1, 26, outbuf); 54 written += wfnc("<div class=\"c2html-code\">\n", 1, 26, outbuf);
55 55
56 /* process lines */ 56 /* process lines */
57 int lineno = 0; 57 int lineno = 0;
58 c2html_highlighter_data hd; 58 c2html_highlighter_data hd = {0};
59 hd.multiline_comment = 0;
60 cxBufferInit(&hd.primary_buffer, NULL, 256, NULL, CX_BUFFER_AUTO_EXTEND); 59 cxBufferInit(&hd.primary_buffer, NULL, 256, NULL, CX_BUFFER_AUTO_EXTEND);
61 cxBufferInit(&hd.secondary_buffer, NULL, 32, NULL, CX_BUFFER_AUTO_EXTEND); 60 cxBufferInit(&hd.secondary_buffer, NULL, 32, NULL, CX_BUFFER_AUTO_EXTEND);
62 CxBuffer out_line; 61 CxBuffer out_line;
63 cxBufferInit(&out_line, NULL, 128, NULL, CX_BUFFER_AUTO_EXTEND); 62 cxBufferInit(&out_line, NULL, 128, NULL, CX_BUFFER_AUTO_EXTEND);
64 63

mercurial