wrap-json: Improvements 77/18877/1 6.99.3 guppy/6.99.3 guppy_6.99.3
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 13 Dec 2018 18:39:24 +0000 (19:39 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 13 Dec 2018 18:39:24 +0000 (19:39 +0100)
commitb3a54dd8653fa672650229dd2498308ffcc3e943
tree001e329443b3761a3bf1a2cab570a46ef51f411a
parent69cb192279e8f49b3b680a8f5a45aac9e3315151
wrap-json: Improvements

* Most call "d = skip(++d);"  are replaced by
  "d = skip(d + 1);" that is equivalent but that
  virtually doesn't assign transiently d with d+1.

* make use of JSON_C_TO_STRING_NOSLASHESCAPE in
  test to improve output. Use a macro to reduce the
  code.

* enforce 'wrap_json_check' to use 'wrap_json_vcheck'
  and 'wrap_json_match' to use 'wrap_json_vmatch'.

Change-Id: I6e823da40415db4b54ec809455c93b39a8c5e9a5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
wrap-json.c