b3bce4d594
Eliminate use of MC_ABORT in json-c code, and mark MC_ABORT/mc_abort deprecated. Also adjust an error message in json_util to make it unique. Fixes#87.
Eric Haszlakiewicz2013-06-29 15:31:18 -05:00
be002fbb96
Issue#84: explicitly remove old headers and include/json directory so creating the compat symlink can work.
Eric Haszlakiewicz2013-06-29 15:21:04 -05:00
c62965660b
Fix the _MSC_VER check so it compiles on non-windows compilers. Issue#91
Eric Haszlakiewicz2013-06-23 19:12:14 -05:00
5e8df40523
Mention that libtoolize is needed if you're not using a release tarball.
Eric Haszlakiewicz2013-06-23 18:55:02 -05:00
56c8bb9f6e
Add a copy of the json-c-0.11 docs in a form that should be browsable on github.
Eric Haszlakiewicz2013-04-02 21:28:12 -05:00
4207147c24
Bump the versions for the non-release branch; add a placeholder section to the change log.
Eric Haszlakiewicz2013-04-02 21:22:59 -05:00
20db5a4e84
Fill in a number of missing steps in the release process.
Eric Haszlakiewicz2013-04-02 21:21:38 -05:00
97ef11033a
Drop the libtool versions back down a bit to avoid changing the major number of the library. Programs compiled against v0.10 should work ok with v0.11.
json-c-0.11-20130402
Eric Haszlakiewicz2013-04-02 21:04:18 -05:00
d1645e378d
Regen the doc pages using the right version for the 0.11 release.
Eric Haszlakiewicz2013-03-31 21:34:53 -05:00
eee744cd7e
Update the changelog with changes since the 0.10 release.
Eric Haszlakiewicz2013-03-31 20:57:08 -05:00
f1b684971d
Update config.h.in to add the HAVE_SETLOCALE and HAVE_LOCALE_H lines.
Eric Haszlakiewicz2013-03-31 20:34:28 -05:00
e8161a11bb
Issue #15: add a way to set a JSON_TOKENER_STRICT flag to forbid commas at the end of arrays and objects.
Eric Haszlakiewicz2013-03-31 20:05:36 -05:00
32eddd66f5
Fix broken build by using ADVANCE_CHAR macro return.
William Dignazio2013-03-06 20:18:14 -05:00
bb492d4d69
Rename misnomer POP_CHAR to PEEK_CHAR. While parsing token data, we use the POP_CHAR macro to 'peek' at character data. This behaviour is noted in the comments for the macro, yet the definition is left as 'pop'. Changing to PEEK_CHAR does not imply that the character being observed is removed.
William Dignazio2013-03-06 12:29:33 -05:00
1aa29b655a
Issue #68: use -std=gnu99 because some versions of gcc seem to think that -std=c99 also implies -ansi, which causes warnings and build breakage.
Eric Haszlakiewicz2013-03-03 22:26:28 -06:00
36ec47db49
configure.in: mv AM_CONFIG_HEADER to AC_CONFIG_HEADER
Thomas Gstädtner2013-03-03 00:17:25 +01:00
9b64c05ff9
Mark the "val" variable in json_object_object_foreach as unused so the compiler doesn't complain. Fix warnings in the testReplaceExisting test.
Eric Haszlakiewicz2013-02-21 12:32:29 -06:00
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.
Eric Haszlakiewicz2013-02-09 17:35:33 -06:00
ca8b27d183
Enable -Werror and fix a number of minor warnings that existed.
Eric Haszlakiewicz2013-02-09 16:35:24 -06:00
92d289f5d3
Add a comment briefly describing json_object_object_length()
Eric Haszlakiewicz2013-02-09 16:18:05 -06:00
7eaa849e9a
escape '\f' in json_escape_str
Abioy2012-12-24 22:22:05 +08:00
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.
Eric Haszlakiewicz2012-12-23 11:09:20 -06:00
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.
Eric Haszlakiewicz2012-12-23 10:57:44 -06:00
d7de3aa24b
Update the release checklist to include the INSTALL file, and adjust the git command to add the doc directory.
Eric Haszlakiewicz2012-12-23 10:27:14 -06:00
2e9fef38c2
Revert the test_null test back to emitted to stdout, and update the expected output to match.
Eric Haszlakiewicz2012-12-23 10:25:03 -06:00
a01b659ace
move locale change to be global for perf
Remi Collet2012-12-13 09:47:33 +01:00
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/687269Eric Haszlakiewicz2012-12-09 16:32:11 -06:00
5c2a69a8b8
Added a bunch of missing HAVE_* defines tested with ./configure script to fix compilation on Linux with GCC 4.7.1. The issue likely caused by my previous commits related to Visual C++ port of the code.
json-c-0.10
Mateusz Loskot2012-06-19 20:15:44 +01:00
16a4a32e29
float parsing must be locale independent
Remi Collet2012-11-27 11:06:49 +01:00
197cb1d1c1
Make maximum recursion depth a runtime option
Remi Collet2012-11-27 09:01:45 +01:00
f6b27cbb6c
Make it safe to delete keys while iterating with the json_object_object_foreach macro.
Eric Haszlakiewicz2012-10-20 20:26:37 -05:00
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.
Eric Haszlakiewicz2012-10-20 20:10:15 -05:00
e36e562872
Reformat json_object_object_get() and json_object_object_get_ex().
Eric Haszlakiewicz2012-10-18 17:16:36 -05:00
5450bed051
Fix json_object_object_get() so it returns NULL if the incoming json_object is NULL.
Eric Haszlakiewicz2012-10-18 17:14:41 -05:00
5f4739e2eb
Change json_object_put to return 1 if the object passed was actually freed. (or 0 if only the reference count was decremented)
Eric Haszlakiewicz2012-10-18 17:10:09 -05:00
c3d1d597ab
Fix a memory leak in test1 with respect to how json_object_object_del was used.
Eric Haszlakiewicz2012-09-16 20:49:22 -05:00
e7e0600405
Add an autoconf test to test whether the .section .gnu<warning> works with the linker on the system, and define _warn_references to nothing if not.
Lin Xu2012-09-09 17:33:35 -07:00