benchtests: Print string array elements, int and uint in json
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 22 Jun 2017 18:14:12 +0000 (23:44 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 22 Jun 2017 18:14:12 +0000 (23:44 +0530)
commit738a9914a066a31750925543a8c6d2661bd61345
tree9f4f46ad9eaa092269ebb3a94b4a87a54bfeaf64
parent5070551cbf0ba8f69e15e1a19f8989b812b6a651
benchtests: Print string array elements, int and uint in json

Enhance the json module in benchtests to print signed and unsigned
integers and string array elements.

* benchtests/json-lib.h: Include inttypes.h.
(json_attr_int, json_attr_int, json_element_string,
json_element_int, json_element_uint): New functions.
* benchtests/json-lib.c: (json_attr_int, json_attr_int,
json_element_string, json_element_int, json_element_uint): New
functions.
benchtests/json-lib.c
benchtests/json-lib.h