]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tools: add csv_enc_append() to preserve the original chunk
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Jan 2016 17:07:04 +0000 (18:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Jan 2016 19:58:55 +0000 (20:58 +0100)
commit898529b4a8ed14b61af14785d27f293b79653627
tree1d3e5975e2aeb0f2addc6d075ca590c885ac1955
parent70af633ebe8627fdf6b448f96c0e457adc93b1d1
MEDIUM: tools: add csv_enc_append() to preserve the original chunk

We have csv_enc() but there's no way to append some CSV-encoded data
to an existing chunk, so here we modify the existing function for this
and create an inlined version of csv_enc() which first resets the output
chunk. It will be handy to append data to an existing chunk without
having to use an extra temporary chunk, or to encode multiple strings
into a single chunk with chunk_newstr().

The patch is quite small, in fact most changes are typo fixes in the
comments.
include/common/standard.h
src/standard.c