Petri Lehtinen
047a1417fb
jansson 1.2.1
2010-04-03 13:49:56 +03:00
Petri Lehtinen
ce42e30b8c
doc: Distribute conformance.rst
2010-04-03 13:49:56 +03:00
Petri Lehtinen
024106bbfb
Require autoconf 2.60
...
The AC_TYPE_INT32_T macro first appeared in autoconf 2.60.
2010-03-28 21:19:40 +03:00
Petri Lehtinen
29ee3832cf
Support compilers that don't have the "inline" keyword
...
Use AC_C_INLINE autoconf macro, include config.h where needed, and add
a define of JSON_INLINE to jansson.h that has the correct "inline"
keyword.
2010-03-28 21:14:08 +03:00
Petri Lehtinen
c7c2edae8a
doc: Add chapter on RFC conformance
...
Thanks to Deron Meranda for providing the initial text.
2010-03-26 22:03:26 +02:00
Petri Lehtinen
bb89a5d4d3
Estimate real number underflows with 0.0
...
Earlier it was a decoding error.
2010-03-26 21:59:56 +02:00
Petri Lehtinen
f76966b438
Enhance tests for null byte
2010-03-26 21:29:36 +02:00
Petri Lehtinen
f284e3c069
Fix reference counting on true, false and null
...
Initialize their reference counts to (unsigned int)-1 to disable
reference counting on them. It already was meant to work like this,
but the reference counts were just initialized to 1 instead of -1.
Thanks to Andrew Thompson for reporting this issue.
2010-03-23 08:12:32 +02:00
Petri Lehtinen
a2a9107600
Don't include stdint.h anywhere
...
This should have fixed by commit 28682322
, but there was one #include
left in utf.c. It now includes utf.h instead of stdint.h.
2010-03-18 07:22:43 +02:00
Petri Lehtinen
286823227c
Make int32_t available on all systems
...
Use AC_TYPE_INT32_T and include inttypes.h (if it exists) instead of
stdint.h for maximum portability.
2010-02-06 21:11:41 +02:00
Petri Lehtinen
08dc8d9baf
Add year 2010 to copyright notices
2010-02-02 21:26:11 +02:00
Petri Lehtinen
f5662a82cd
test/suites/api/test_object.c: Enhance tests for iterators
2010-01-28 21:04:21 +02:00
Petri Lehtinen
ab2e567685
test/suites/api: Fail when a test fails
...
The valgrind fix a while back apparently made the test system not
notice normal failures in suites/api.
2010-01-28 20:58:26 +02:00
Petri Lehtinen
d8ea2f8c4b
run-tests.sh: Print the test name correctly when VERBOSE=1
2010-01-28 20:57:52 +02:00
Petri Lehtinen
aaae37afba
doc/Makefile.am: Don't remove changes.rst in clean
2010-01-26 21:19:48 +02:00
Petri Lehtinen
8c2ca3fae6
jansson 1.2
2010-01-21 21:49:10 +02:00
Petri Lehtinen
2ae279e0d4
test/run-suites: Be less picky when searching for tests
...
This is to better catch distribution errors. It's easier to notice
that run-tests fails than to notice that one of many test suites is
silently skipped.
2010-01-21 21:49:04 +02:00
Petri Lehtinen
4c6cb6afd1
Distribute some missing files
2010-01-21 21:48:31 +02:00
Petri Lehtinen
78594e9bd3
Remove CHANGES preprocessing, as it didn't work with VPATH builds
...
The problem is that Sphinx can only read input files from a single
directory. In VPATH builds, the source and build trees are separate,
and the changes.rst went into the build tree.
This patch solves the issue by using cfunc as the Sphinx default role.
2010-01-21 20:53:05 +02:00
Petri Lehtinen
e921e63b54
CHANGES: Update for v1.2
2010-01-19 21:19:37 +02:00
Petri Lehtinen
f9febb64c5
Merge branch '1.1'
...
Conflicts:
Makefile.am
2010-01-17 13:57:20 +02:00
Petri Lehtinen
b76ee75aad
doc: Convert CHANGES to reStructuredText and add it to HTML docs
...
CHANGES is preprocessed to convert json_*() function names to Sphinx
:cfunc: cross references. This is to keep CHANGES more readable in
both plain text and HTML.
2010-01-14 22:03:48 +02:00
Petri Lehtinen
b077d7988e
Update documentation
...
* Python is no longer required to run the tests
* Mention pkg-config support
* Fix some errors
2010-01-12 21:29:16 +02:00
Petri Lehtinen
7f8684828d
Fix memory leaks in json_equal() tests
2010-01-10 21:02:08 +02:00
Petri Lehtinen
93ac06c902
Fix memory leaks in json_*_deep_copy()
2010-01-10 21:01:07 +02:00
Petri Lehtinen
b21f07b35c
Enable Valgrind support in the API suite
...
It was accidentally left out when the test system was refactored.
2010-01-10 16:18:46 +02:00
Petri Lehtinen
508873de9b
Use _nocheck functions internally for speed
...
There are some places where we copy a string from an existing JSON
value. In these cases the string has already been checked for valid
UTF-8.
2010-01-10 14:39:11 +02:00
Petri Lehtinen
aeb5b481c9
Add pkg-config support
...
Thanks to Sean Middleditch for contributing.
2010-01-07 19:30:20 +02:00
Petri Lehtinen
9db34dc31a
Add functions for shallow and deep copying JSON values
2009-12-31 18:50:39 +02:00
Petri Lehtinen
95a468cebb
Add equality test for JSON values
2009-12-31 18:50:36 +02:00
Petri Lehtinen
22173c1d8b
Add check-exports test
2009-12-23 22:29:59 +02:00
Petri Lehtinen
dd2fe1ebe8
Add _nocheck functions
...
Added functions are:
* json_string_nocheck()
* json_string_set_nocheck()
* json_object_set_nocheck()
* json_object_set_new_nocheck()
These functions don't check that their string argument is valid UTF-8,
but assume that the user has already performed the check.
2009-12-23 22:28:24 +02:00
Petri Lehtinen
6637b976ed
Merge branch '1.1'
2009-12-21 14:13:05 +02:00
Petri Lehtinen
f5202bedef
Remove const qualifier from the json_t parameter in json_*_set() functions.
...
It's incorrect as these functions modify the value.
2009-12-21 14:12:06 +02:00
Petri Lehtinen
2db2f2cfb6
Fix tests for real
...
The tests were broken by the "%.17g" fix that was merged from the 1.1
branch.
2009-12-21 12:52:29 +02:00
Petri Lehtinen
e7a5dc58e6
Merge branch '1.1'
...
Conflicts:
configure.ac
doc/conf.py
2009-12-21 12:52:25 +02:00
Petri Lehtinen
3889af476b
Enhance tests
...
* Now that JSON_SORT_KEYS is implemented, take it into use with the
valid and valid-strip suites. This is to ensure that the tests
remain valid even if the string hash function is changed in the
future.
* Remove test_dump API test. Instead, implement the same tests more
elegantly in the encoding-flags suite.
2009-12-21 12:50:49 +02:00
Petri Lehtinen
34fb97998c
jansson 1.1.3
2009-12-18 21:43:12 +02:00
Petri Lehtinen
ec96cbf016
Encode reals correctly
...
This patch changes the sprintf format from "%0.17f" to "%.17g", as the
f format specifier doesn't print the exponent at all. This caused
losing precision in all but the most simple cases.
Because the g specifier doesn't print the decimal fraction or exponent
if they're not needed, a ".0" has to be appended by hand in these
cases. Otherwise the value's type changes from real to integer when
decoding again.
Thanks to Philip Grandinetti for reporting this issue.
2009-12-18 00:05:06 +02:00
Petri Lehtinen
19a606d736
Implement JSON_SORT_KEYS encoding flag
...
With this flag, the objects are sorted by key when encoding.
2009-12-16 23:12:39 +02:00
Petri Lehtinen
3add1cf361
Refactor the test system
2009-12-16 22:45:29 +02:00
Petri Lehtinen
50031440a3
Implement JSON_ENSURE_ASCII encoding flag
...
With this flag, all Unicode characters outside the ASCII range are
escaped.
2009-12-05 22:55:30 +02:00
Petri Lehtinen
d67aeb9739
Use int32_t instead of plain int with Unicode code points
...
On some architectures, int just isn't big enough to hold all Unicode
code points.
2009-12-02 23:53:54 +02:00
Petri Lehtinen
7c707a73a2
Only export symbols starting with "json_" in libjansson.la
...
This way we don't pollute the symbol namespace with internal symbols.
2009-11-29 13:04:12 +02:00
Petri Lehtinen
330e892ff6
Make parse_json static
2009-11-29 13:00:47 +02:00
Petri Lehtinen
d857fd08a5
doc/github_commits.c Add copyright notice
2009-11-28 13:39:06 +02:00
Petri Lehtinen
e0a88d19d1
Merge branch '1.1'
...
Conflicts:
configure.ac
doc/conf.py
2009-11-08 22:01:02 +02:00
Petri Lehtinen
842bc2128b
jansson 1.1.2
2009-11-08 14:13:32 +02:00
Petri Lehtinen
ca6d26a1c2
Don't include stdint.h in jansson.h
...
It's not needed
2009-11-07 14:45:46 +02:00
Petri Lehtinen
17d913307e
Merge branch '1.1'
...
Conflicts:
test/.gitignore
test/testprogs/Makefile.am
2009-11-04 22:10:46 +02:00