src/c2html.c

changeset 101
265545607063
parent 88
15fe9c1d7f1a
--- a/src/c2html.c	Sun Nov 30 22:16:31 2025 +0100
+++ b/src/c2html.c	Wed Dec 31 17:43:11 2025 +0100
@@ -56,10 +56,10 @@
     /* process lines */
     int lineno = 0;
     c2html_highlighter_data hd = {0};
-    cxBufferInit(&hd.primary_buffer, NULL, 256, NULL, CX_BUFFER_AUTO_EXTEND);
-    cxBufferInit(&hd.secondary_buffer, NULL, 32, NULL, CX_BUFFER_AUTO_EXTEND);
+    cxBufferInit(&hd.primary_buffer, NULL, NULL, 256, CX_BUFFER_AUTO_EXTEND);
+    cxBufferInit(&hd.secondary_buffer, NULL, NULL, 32, CX_BUFFER_AUTO_EXTEND);
     CxBuffer out_line;
-    cxBufferInit(&out_line, NULL, 128, NULL, CX_BUFFER_AUTO_EXTEND);
+    cxBufferInit(&out_line, NULL, NULL, 128, CX_BUFFER_AUTO_EXTEND);
 
     CxIterator in_lines = cxListIterator(lines);
     cx_foreach(char*, in_line, in_lines) {
@@ -116,7 +116,7 @@
     size_t est_cap = 16 + insize / 40;
 
     /* create the line pointer array */
-    CxList *lines = cxArrayListCreateSimple(CX_STORE_POINTERS, est_cap);
+    CxList *lines = cxArrayListCreate(NULL, CX_STORE_POINTERS, est_cap);
     cxListAdd(lines, inbuf);
     for (size_t i = 0; i < insize; i++) {
         if (inbuf[i] == '\n' && i + 1 < insize) {

mercurial