summaryrefslogtreecommitdiff
path: root/json_pointer.c
Commit message (Collapse)AuthorAgeFilesLines
* clang-format the filesdota172020-04-031-40/+65
|
* add the disabling formatting coments and adjust the partial code manulydota172020-04-031-6/+10
|
* Fixed typosjanczer2018-04-241-1/+1
|
* Issue #407: fix incorrect casts in calls to ctype functions (isdigit and ↵Eric Haszlakiewicz2018-03-251-2/+2
| | | | isspace) so we don't crash when asserts are enabled on certain platforms and characters > 128 are parsed.
* build: make `strerror()` override-ableAlexandru Ardelean2017-07-131-1/+2
| | | | | | | | | | | | | | | If we want to override `strerror()` in libjson-c to make tests consistent across platforms, we need to do it build-wide as configure/build option. Apple linkers make it really hard to override functions at link-time, and this seems to be locked down on travis-ci.org [ for security reasons I assume ]. While I got it to work locally, it did not work when running on travis. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Add cast to int in calls to isdigit() since some platforms complain about ↵Eric Haszlakiewicz2017-02-051-2/+2
| | | | char being used as an array index.
* Change a memcpy that should be a memmove within json_pointer_get, and fix ↵Eric Haszlakiewicz2016-12-181-1/+1
| | | | memory leaks in of one the json_pointer tests.
* vasprintf_compat.h: spin-off this compat header ; use math_compat.h as templateAlexandru Ardelean2016-11-221-0/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* strdup_compat.h: re-spin this compat header ; use math_compat.h as templateAlexandru Ardelean2016-11-221-0/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* json_pointer: add json_pointer_getf/setf() function variantsAlexandru Ardelean2016-11-221-0/+85
| | | | | | | | | | | | These include support for printf() style args for path. Adds support for calling with 'json_pointer_getf(obj, &res, "/foo/%d/%s", 0, bar)' style args. Makes it easier for doing more dynamic stuff/magic, without needing to use vasprintf() externally. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* json_pointer.c: fix whitespaceAlexandru Ardelean2016-11-161-1/+1
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* json_pointer: add first revisionAlexandru Ardelean2016-11-041-0/+239
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>