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>
9 years ago
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>
9 years ago
Emmanuele Bassi
7601f20d70
Revert "compat/strdup.h: move common compat check for strdup() to own file"
This reverts commit aaba8c1080
.
This commit breaks builddir != srcdir build, but, more importantly, it
also adds a dependency on a header, "config.h", which is not installed
and it's supposed to be private — since it's generated at configuration
time and it's not meant to be used by projects compiling against a
library.
9 years ago
Alexandru Ardelean
0e91183300
json_pointer: add first revision
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
9 years ago
Alexandru Ardelean
aaba8c1080
compat/strdup.h: move common compat check for strdup() to own file
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
9 years ago
Eric Haszlakiewicz
ecdc14f535
Add a json_c_visit() function to provide a way to iterate over a tree of json-c objects.
9 years ago
Nicola Spanti (RyDroid)
250a3987cf
Very minor changes not related to C source code
9 years ago
Eric Haszlakiewicz
b1d65b62db
Issue #113 : Add more files to EXTRA_DIST and a dist-hook to get distcheck to at least not fail.
9 years ago
Eric Haszlakiewicz
1071385896
Issue #113 : add "new" files to appropriate variables in Makefile, and note the need to run "make distcheck" as part of the release process.
Fix issues with the test script so it works under distcheck too.
9 years ago
Eric Haszlakiewicz
80c1f69b9e
Use AX_APPEND_COMPILE_FLAGS() to check the various compile flags, such as -Wall, to ensure the compile supports.
10 years ago
Christopher Meng
db833f2411
SONAME bump
The last json_tokener_errors change affects the binary package, we need a bump to solve the issue.
See [this bug of postgis.](https://bugzilla.redhat.com/show_bug.cgi?id=1123785 )
11 years ago
Michael Clark
64e36901a0
Patch to address the following issues:
* CVE-2013-6371: hash collision denial of service
* CVE-2013-6370: buffer overflow if size_t is larger than int
11 years ago
Eric Haszlakiewicz
b821f0e10f
Merge branch 'ebassi-master'
11 years ago
Eric Haszlakiewicz
c8e0497d47
Merge branch 'master' of https://github.com/ebassi/json-c into ebassi-master
Conflicts:
Makefile.am
11 years ago
Eric Haszlakiewicz
295bea21d0
Ignore and cleanup a few more files that automake creates.
11 years ago
Eric Haszlakiewicz
c8ee919642
Remove the old libjson.so name compatibility support. The library is only created as libjson-c.so now and headers are only installed into the ${prefix}/json-c directory.
11 years ago
Emmanuele Bassi
311686f63e
Add a check for the -Bsymbolic-functions linker flag
The -Bsymbolic-functions linker flag reduces the amount of PLT jumps in
a shared object, and has a side effect of preventing symbol collisions
in libraries and applications linking against two different shared
objects exposing the same symbol.
While the former is (generally) a performance win, the latter is less
rare than expected. For instance, PulseAudio started linking against
json-c a while ago; now, every project linking against PulseAudio is
leaking json-c symbols. In the GNOME platform, this means that projects
linking against PulseAudio cannot be safely linked against other
libraries depending on the GLib-based JSON parsing libraries JSON-GLib,
because of a symbol conflict. Nominally, this conflict would not be an
issue: libraries and applications do not need to depend on two different
JSON parsing libraries; the symbol leakage, though, ends up causing
either segmentation faults, or weird errors. For further reference,
please see: https://bugzilla.gnome.org/show_bug.cgi?id=703734
JSON-GLib already switched to using -Bsymbolic-functions, but it would
be safe if json-c did the same, wherever the linker flag is available.
12 years ago
Eric Haszlakiewicz
be002fbb96
Issue#84: explicitly remove old headers and include/json directory so creating the compat symlink can work.
12 years ago
Eric Haszlakiewicz
fcc768e667
Bump the version up to 0.10.99 to make it clear that the master branch is beyond anything on the 0.10 branch.
12 years ago
Eric Haszlakiewicz
1461b49385
Add a json_c_version.h header (included from json.h), and several macros and functions for retrieving the json-c version at compile-time and run-time.
12 years ago
Alexander Klauer
024d86c07f
Prepend DESTDIR to paths for staged installs
12 years ago
Alexander Klauer
a3a0f5b28d
Need to explicitly remove include/json-c directory
12 years ago
Alexander Klauer
b670f6f992
-d test is useless as symlinks are dereferenced
12 years ago
Eric Haszlakiewicz
7a4506d6df
Remove configure as part of maintainer-clean instead of distclean. Addresses issue #48 .
12 years ago
Eric Haszlakiewicz
23461c75dd
Include json_object_iterator.c in the list of sources.
13 years ago
Eric Haszlakiewicz
2f2180b70d
Take a guess as to the rename changes changes needed to the Android part of the build.
I think this should work, but I can't test it.
13 years ago
Eric Haszlakiewicz
1f9d199522
Re-add the "json" pkg-config file as a compatibility shim.
Also rename the json-c-uninstalled.pc file.
13 years ago
Eric Haszlakiewicz
9f16e25a3e
Bump the version of the new library since programs will need to be re-linked to use it.
13 years ago
Eric Haszlakiewicz
943b7a4de7
Add a compatibility symlink json->json-c in the include directory.
13 years ago
Eric Haszlakiewicz
075b783631
Add a --disable-oldname-compat option to configure to turn off the creation of the libjson.so library, and only include libjson-c.so
13 years ago
Eric Haszlakiewicz
b98aa6eaa3
Create an additional libjson.so library that simply links against libjson-c, but emits a warning encouraging the use of the new library.
13 years ago
Eric Haszlakiewicz
c2d3ccf3af
Merge branch 'rename_library' of https://github.com/kdopen/json-c into kdopen-rename_library
Conflicts:
.gitignore
Makefile.am
configure.in
printbuf.c
test1.c
test1.expected
13 years ago
Eric Haszlakiewicz
381f77c5bc
Merge pull request #26 from ford-prefect/master
Android build system
13 years ago
Eric Haszlakiewicz
4154c55eda
Add json_object_iterator.h to installed headers.
13 years ago
Arun Raghavan
a1221eba70
Add an Android-friendly build system
This dependson the Androgenizer project, which helps keep autofoo-based build
systems in sync with the Android build.
13 years ago
Eric Haszlakiewicz
c1b8891a13
Move the rest of the tests into the tests subdirectory.
13 years ago
Eric Haszlakiewicz
1e89ba68af
Create a tests subdirectory and move one of the test to there.
13 years ago
Keith Derrick
30dd367c0a
Modify install names for library and include files
Changing root name of library to json-c, and also the
directory where header files are installed to .../jsdon-c/*.
This avoids clashes with other implementations of JSON libraries.
13 years ago
Eric Haszlakiewicz
a7bd85caba
Remove a few more things in the distclean target to get rid of *all* generated files.
13 years ago
Eric Haszlakiewicz
30c6c4a1be
Split the json_tokener_parse tests off from test1 into their own test and add several more cases to check various incremental parsing situations.
13 years ago
Eric Haszlakiewicz
fbd207bd6b
Remove a few more things in the distclean target to get rid of *all* generated files.
13 years ago
Eric Haszlakiewicz
c5c623a546
Split the json_tokener_parse tests off from test1 into their own test and add several more cases to check various incremental parsing situations.
13 years ago
Eric Haszlakiewicz
b21b137805
Include json_inttypes.h in json_object.h since we use types like int32_t in the API and some systems need that header to compile.
As part of this create a public json_config.h with a custom define to
decide whether to include inttypes.h to avoid conflicting with other
projects config.h header.
13 years ago
Martin Storsjo
a577ba376f
Add -no-undefined to the libtool flags
This allows building DLLs for windows - libtool doesn't even
try to do that unless this flag is specified.
14 years ago
Eric Haszlakiewicz
7a593a0fa7
Bump up the libtool library version to "1:0:1" (aka libjson.0.1.0) since the API has been extended, but is still backwards compatible..
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@70 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Eric Haszlakiewicz
41e67d0f6f
Add a test_cast test case. This checks that the casting that is implied when calling the various json_object_get_FOO() functions on a differently typed object works correctly.
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@68 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Jehiah Czebotar
ac601b5b5f
update json_object_new_string_len, json_escape_str (internal). Writer handles \x00 correctly
Added parse_null test. This does not change anything with how the parser handles \u0000 or null characters
This commit is addapted from one by Adomas Paltanavičius <adomas@leanholding.com>
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@63 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Michael Clark
c4dceae1c5
* Add int64 support. Two new functions json_object_net_int64 and
json_object_get_int64. Binary compatibility preserved.
Eric Haszlakiewicz, EHASZLA at transunion com
Rui Miguel Silva Seabra, rms at 1407 dot org
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@56 327403b1-1117-474d-bef2-5cb71233fd97
15 years ago
Brent Miller
126ad95fc4
* Add handling of surrogate pairs
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@53 327403b1-1117-474d-bef2-5cb71233fd97
16 years ago
Michael Clark
51658855fb
Add json-c.vcproj to EXTRA_DIST
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@51 327403b1-1117-474d-bef2-5cb71233fd97
16 years ago