]> git.ipfire.org Git - thirdparty/json-c.git/commit
Restore sprintbuf(), add macro for string literals 299/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 3 Feb 2017 21:43:59 +0000 (21:43 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Sat, 4 Feb 2017 01:02:00 +0000 (01:02 +0000)
commitf6f852fd9367a815a711b5097139002e7385b165
treeb73166603e4ab1a44cc85fb249497f2652846f52
parent9ff0f4987fc17f957f520623f8dcc811fe9ffd22
Restore sprintbuf(), add macro for string literals

Hawciz pointed out that the previous commit modifies the public
interface of printbuf. Per his suggestion, sprintbuf() was restored
and a new pair of macros was added that wraps printbuf_memappend().

Using a wrapper macro instead of modifying sprintbuf() also reduces
function call overhead, bringing total performance gains to
approximately 400%.
json_object.c
printbuf.c
printbuf.h
tests/test_printbuf.c
tests/test_printbuf.expected