Eric Haszlakiewicz
bfb329223a
Add a runtime check to see if parse_int64 needs to workaround sscanf bugs. If that workaround is not needed parsing is nearly twice as fast.
12 years ago
Eric Haszlakiewicz
ca8b27d183
Enable -Werror and fix a number of minor warnings that existed.
12 years ago
Eric Haszlakiewicz
92d289f5d3
Add a comment briefly describing json_object_object_length()
12 years ago
Eric Haszlakiewicz
c6b399194d
Merge pull request #62 from ghazel/master
json_object_object_length
12 years ago
Eric Haszlakiewicz
ebeb6a40c9
Merge pull request #66 from ichernev/fix-test-parse
Fixed test_parse for \f
12 years ago
Iskren Chernev
78b089bc1e
Fixed test_parse for \f
12 years ago
Greg Hazel
cca74c6de6
add json_object_object_length
12 years ago
Eric Haszlakiewicz
3ae296f694
Merge pull request #60 from ghazel/master
rename _errno
12 years ago
Alexander Klauer
2be921d883
Fixed json_object_object_add().
* Return value of json_object_object_add() changed from void to int.
Return value now indicates success or failure.
* Check whether allocations are successful.
* Do not exit program from within the library.
12 years ago
Greg Hazel
77d0493b70
rename _errno
12 years ago
Eric Haszlakiewicz
85da28c534
Merge pull request #58 from Abioy/master
escape '\f' in json_escape_str
12 years ago
Abioy
7eaa849e9a
escape '\f' in json_escape_str
'\f' is a llegal char and should be escape in printbuf
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
2943691181
Merge branch 'master' of https://github.com/json-c/json-c
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
Eric Haszlakiewicz
56166e2dff
Merge pull request #51 from remicollet/issue-dyndepth
Make maximum recursion depth a runtime option
12 years ago
Eric Haszlakiewicz
d7de3aa24b
Update the release checklist to include the INSTALL file, and adjust the git command to add the doc directory.
12 years ago
Eric Haszlakiewicz
2e9fef38c2
Revert the test_null test back to emitted to stdout, and update the expected output to match.
12 years ago
Eric Haszlakiewicz
86aedc2d2a
Merge pull request #56 from TheCount/develop
Some houskeeping
12 years ago
Alexander Klauer
18abf6e509
More warnings, fewer errors, C99
12 years ago
Alexander Klauer
024d86c07f
Prepend DESTDIR to paths for staged installs
12 years ago
Alexander Klauer
57f36ed32a
Write additional test info to stderr instead of stdout so as not to mar the expected output
12 years ago
Alexander Klauer
827a4a97b9
Fixed memory leak in testReplaceExisting
12 years ago
Alexander Klauer
beb12d49e1
Make macro json_object_object_foreach multiple-use safe
12 years ago
Alexander Klauer
20ef1bd980
Remove and ignore autogenerated installation instructions
12 years ago
Alexander Klauer
8f58f09c69
Ignore editor swap files
12 years ago
Alexander Klauer
54d551c810
Ignore doc dir for now
12 years ago
Alexander Klauer
b1d61d10e1
Library is now called libjson-c
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
Alexander Klauer
e176965c1c
Ignore valgrind output files
12 years ago
Remi Collet
32d149c8f6
probably worth an option for this
12 years ago
Remi Collet
8c847968c7
Save space, drop unuseful trailing zeroes
12 years ago
Remi Collet
4014fe86d9
Simple fix to double encode
12 years ago
Remi Collet
a01b659ace
move locale change to be global for perf
12 years ago
Eric Haszlakiewicz
4e4af93d66
Fix issue #53 - ensure explicit length string are still NUL terminated, and fix json_tokener_parse() to work properly with embedded unicode \u0000 values in strings.
Adjust test_null to check for this case.
See also http://bugs.debian.org/687269
12 years ago
Eric Haszlakiewicz
7a4506d6df
Remove configure as part of maintainer-clean instead of distclean. Addresses issue #48 .
12 years ago
Eric Haszlakiewicz
7653d4952a
Add PACKAGE_URL to config.h.in
12 years ago
Eric Haszlakiewicz
aec876357c
Add a missing json_object_get() so we don't try to use a freed object in test1.
13 years ago
Eric Haszlakiewicz
447b88a115
Fix a memory leak in the test_printbuf test.
13 years ago
Eric Haszlakiewicz
23461c75dd
Include json_object_iterator.c in the list of sources.
13 years ago
Remi Collet
16a4a32e29
float parsing must be locale independent
13 years ago
Remi Collet
197cb1d1c1
Make maximum recursion depth a runtime option
13 years ago
Eric Haszlakiewicz
f6b27cbb6c
Make it safe to delete keys while iterating with the json_object_object_foreach macro.
13 years ago
Eric Haszlakiewicz
5abc0ea444
Reformat the json_object_object_foreach macro so it is readable, and document what is allowed to be done with the object while iterating.
13 years ago
Eric Haszlakiewicz
e36e562872
Reformat json_object_object_get() and json_object_object_get_ex().
13 years ago
Eric Haszlakiewicz
5450bed051
Fix json_object_object_get() so it returns NULL if the incoming json_object is NULL.
13 years ago
Eric Haszlakiewicz
5f4739e2eb
Change json_object_put to return 1 if the object passed was actually freed. (or 0 if only the reference count was decremented)
13 years ago
Eric Haszlakiewicz
c3d1d597ab
Fix a memory leak in test1 with respect to how json_object_object_del was used.
13 years ago
Eric Haszlakiewicz
c3068bfd09
Reformat the test sources. No functional change.
13 years ago