src/c2html.h

changeset 88
15fe9c1d7f1a
parent 87
a53fa82bbdcf
equal deleted inserted replaced
87:a53fa82bbdcf 88:15fe9c1d7f1a
62 c2html_highlighter_func hltr, int showln); 62 c2html_highlighter_func hltr, int showln);
63 63
64 /** 64 /**
65 * Writes the formatted source data to the output buffer. 65 * Writes the formatted source data to the output buffer.
66 * 66 *
67 * @param inbuf the input buffer
68 * @param insize the size of the input buffer
69 * @param outbuf the output buffer
70 * @param wfnc a write function for the output buffer
71 * @param hltr the highlighter function
72 * @param showln zero, if line numbers shall be omitted, nonzero otherwise
73 *
74 * @return total amount of bytes written to the output buffer
75 *
76 * @see c2html_plain_highlighter()
77 * @see c2html_c_highlighter()
78 * @see c2html_java_highlighter()
79 */
80 size_t c2html_bformat(char const* inbuf, size_t insize,
81 void* outbuf, cx_write_func wfnc,
82 c2html_highlighter_func hltr, int showln);
83
84 /**
85 * Writes the formatted source data to the output buffer.
86 *
67 * This function takes a list of \c char* that point to the beginning of each 87 * This function takes a list of \c char* that point to the beginning of each
68 * line. These pointers may point directly into the source text and the strings 88 * line. These pointers may point directly into the source text and the strings
69 * do not need to be zero-terminated, but the line-breaks must be included. 89 * do not need to be zero-terminated, but the line-breaks must be included.
70 * 90 *
71 * @param lines a list of pointers to the beginning of each line 91 * @param lines a list of pointers to the beginning of each line

mercurial