Age | Commit message (Collapse) | Author | Files | Lines |
|
* 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>
|
|
Enhance 'wrap_json_clone_depth' description by adding details about
clone depth using this function.
Change-Id: Iede8fa6a697f12e8a32c1e15afdcef445edbcfe4
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Library json-c now returns size_t instead of int.
Change-Id: Ib4f8bcd5dc6382fb3d189e83707a39dee8e14683
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
|
|
The new functions are
- wrap_json_clone_depth: clone with defined depth
- wrap_json_sort: sort an array accordingly to wrap_json_cmp
- wrap_json_keys: compute the array of sorted keys
- wrap_json_cmp: compare 2 items
- wrap_json_equal: test equallity
- wrap_json_contains: test inclusion
Change-Id: I9787bff6c262fa2702c27802d771e2d487ce6309
Signed-off-by: jose bollo <jose.bollo@iot.bzh>
|
|
This adds 3 new facilities:
- wrap_json_clone: clones any json object superficially
- wrap_json_clone_deep: clones any json object deeply
- wrap_json_add: adds to an object the fields of an other object
Change-Id: I3844d972aa6477c9dde6f66ad0b0604284a853a7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Reduced the number of warnings in native host configuration (here
Tumbleweed) in order to not hide true/real warnings that may appear
in the future.
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
|
|
Replaced some 'size_t' by 'int'
Change-Id: I07492dad242b2c8f608f9cc90a4a257e48acec6a
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
|
|
Signed-off-by: jobol <jose.bollo@iot.bzh>
|
|
Signed-off-by: jobol <jose.bollo@iot.bzh>
|
|
The function 'decode_base64' was buggy because
it freed 2 times the pointer 'result'.
This came from the fact realloc frees the
pointer and return NULL when the size if 0.
Signed-off-by: jobol <jose.bollo@iot.bzh>
|
|
The optional characters '*' and '?' weren't managed
so the packing of y/Y base64 wasn't really entire.
Signed-off-by: jobol <jose.bollo@iot.bzh>
|
|
Initialization done under a switch case statement within a "for"
loop which throw warning with GCC v6.
Change-Id: I47b51598cc68943bab6f98bd87b7ba6f40caeafc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Signed-off-by: jobol <jose.bollo@iot.bzh>
|
|
Change-Id: I831bac418f5c12c9a747b08ea8be72dcbe1d4ea3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I354a1c136a57e1ec8d511041fbd13a19b730c419
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|