Alexandru Ardelean
f10a5ae4d7
.gitignore: add cmake generated files
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2017-05-03 12:00:38 +03:00
Alexandru Ardelean
4b5e39c89c
build,cmake: generate both static and shared libjson
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2017-05-03 12:00:38 +03:00
Alexandru Ardelean
cfbbb23141
build,cmake: add _GNU_SOURCE to CFLAGS
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2017-05-03 11:36:45 +03:00
Alexandru Ardelean
47f32a76ef
vasprintf_compat.h: spin-off this compat header ; use math_compat.h as template
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2016-11-22 16:37:30 +02:00
Alexandru Ardelean
8cb86a583a
strdup_compat.h: re-spin this compat header ; use math_compat.h as template
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2016-11-22 16:37:29 +02:00
Alexandru Ardelean
c0da680f13
test_json_pointer: update test with a few printf variants
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2016-11-22 16:37:18 +02:00
Alexandru Ardelean
742e059da1
json_pointer: add json_pointer_getf/setf() function variants
...
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 >
2016-11-22 16:33:49 +02:00
Alexandru Ardelean
97dd7d5103
json_pointer.c: fix whitespace
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2016-11-16 16:15:53 +02:00
Alexandru Ardelean
ee7fc26de1
tests: add test_json_pointer test
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2016-11-04 09:59:43 +02:00
Alexandru Ardelean
2fbdee19da
tests/strerror_override.c: fix compilation error
...
I got this on Mac OS X at least.
Not sure if it shows up in other envs
error:
```
strerror_override.c:53:13: error: incompatible redeclaration of library function 'strerror' [-Werror,-Wincompatible-library-redeclaration]
const char *strerror(int errno_in)
```
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2016-11-04 09:51:44 +02:00
Alexandru Ardelean
0e91183300
json_pointer: add first revision
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2016-11-04 09:51:36 +02:00
Alexandru Ardelean
aaba8c1080
compat/strdup.h: move common compat check for strdup() to own file
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2016-11-03 15:51:33 +02:00