src/c2html.h

changeset 88
15fe9c1d7f1a
parent 87
a53fa82bbdcf
--- a/src/c2html.h	Sat Feb 15 23:21:29 2025 +0100
+++ b/src/c2html.h	Sat Feb 15 23:26:08 2025 +0100
@@ -64,6 +64,26 @@
 /**
  * Writes the formatted source data to the output buffer.
  *
+ * @param inbuf the input buffer
+ * @param insize the size of the input buffer
+ * @param outbuf the output buffer
+ * @param wfnc a write function for the output buffer
+ * @param hltr the highlighter function
+ * @param showln zero, if line numbers shall be omitted, nonzero otherwise
+ *
+ * @return total amount of bytes written to the output buffer
+ *
+ * @see c2html_plain_highlighter()
+ * @see c2html_c_highlighter()
+ * @see c2html_java_highlighter()
+ */
+size_t c2html_bformat(char const* inbuf, size_t insize,
+                      void* outbuf, cx_write_func wfnc,
+                      c2html_highlighter_func hltr, int showln);
+
+/**
+ * Writes the formatted source data to the output buffer.
+ *
  * This function takes a list of \c char* that point to the beginning of each
  * line. These pointers may point directly into the source text and the strings
  * do not need to be zero-terminated, but the line-breaks must be included.

mercurial