]> gitweb.ps.run Git - ps-cgit/commit
html.c: add various strbuf and varadic helpers
authorJohn Keeping <john@keeping.me.uk>
Sun, 7 Apr 2013 13:40:50 +0000 (14:40 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 8 Apr 2013 14:10:11 +0000 (16:10 +0200)
commitfd00d2f9d6088223f57006949dc6ce7c36316a79
tree46092821a261964a35b36f0e22b924fdd144bf75
parent57d09bf448990b3a67436e928807e854e491756f
html.c: add various strbuf and varadic helpers

This adds the fmtalloc helper, html_txtf, html_vtxtf, and html_attrf.

These takes a printf style format string like htmlf but escapes the
resulting string.  The html_vtxtf variant takes a va_list whereas
html_txtf is variadic.

Signed-off-by: John Keeping <john@keeping.me.uk>
cgit.h
html.c
html.h