Max Bruckner
281df6997c
Update copyright
8 years ago
Max Bruckner
65541b900c
Update space requirements of cJSON_PrintPreallocated
8 years ago
Max Bruckner
be0951dfa4
Move parse tests from test.c -> parse_example.c
8 years ago
Max Bruckner
86be961bb5
test.c: remove file related code
8 years ago
Max Bruckner
f09bdef15e
Revert "test.c: Fix buffer overrun found by coverity"
This reverts commit c866abd842
.
The length of this buffer was intentional. This looks like a false
positive.
8 years ago
Max Bruckner
c866abd842
test.c: Fix buffer overrun found by coverity
8 years ago
Max Bruckner
3d3bfc6a4d
Compiler flag -Wconversion
Makes type conversions explicit, if they alter a value
8 years ago
Max Bruckner
c49ffbfba8
cJSON_Version: returns a version string
This is useful to programmatically find out the version of cJSON that
has been used (useful in case of scripting language bindings for
example).
8 years ago
Max Bruckner
3d6ae11340
Make cJSON C++ compatible
8 years ago
Max Bruckner
d992cd46e6
test: Handle cJSON_PrintPreallocated return values correctly
8 years ago
Max Bruckner
f10e2f884a
test: exit on malloc failure
8 years ago
Stephan Gatzka
345d57e9e5
Make print_preallocated static.
Otherwise compilation failes due to missing prototypes.
8 years ago
Kyle Chisholm
3917fb5255
use print_preallocated function to test printout of JSON
8 years ago
Kyle Chisholm
99896d879c
function to print and compare to preallocated buffer
8 years ago
Kyle Chisholm
de93d76d0b
changed to cJSON_PrintPreallocated, added flag in printbuffer
8 years ago
Stephan Gatzka
a8e1368697
Make function static when possible.
This is a prerequisite to later enable -Wmissing-prototypes.
8 years ago
Max Bruckner
b88da9b0de
Initialize all variables
8 years ago
Max Bruckner
9e31049159
test and test_utils: Make compliant with ANSI C
8 years ago
Max Bruckner
8ac1ba416e
test: Fix unescaped quote
8 years ago
Max Bruckner
fcbeb1c36b
reformatting: test.c
8 years ago
Irwan Djajadi
224c2a8485
Fix compiler error when it encountered 1.0/0.0. It does not want to deal
with division by 0.
Tricked the compiler to use volatile local variable zero instead, so it
does not know for sure whether or not it's going to be zero.
9 years ago
Christian Schulze
52d7d14f6c
fixed segfault when the lib tries to parse HTML with embedded CSS; provided test case
9 years ago
Linus Wallgren
e4b96fa820
Handle invalid numbers
Previously cJSON generated invalid JSON when a number was infinite or
similar. This patch changes the behaviour to match javascript, that is
to render such a number as null.
9 years ago
DongwenHuang
4132e9301d
Update test.c
10 years ago
Dave Gamble
1d9b70e706
Fix comment style for proper ansi c compliance.
git-svn-id: svn://svn.code.sf.net/p/cjson/code@69 e3330c51-1366-4df0-8b21-3ccf24e3d50e
10 years ago
Dave Gamble
46e3724aa8
clean up test.c
git-svn-id: http://svn.code.sf.net/p/cjson/code@54 e3330c51-1366-4df0-8b21-3ccf24e3d50e
12 years ago
Kevin Branigan
ebba183f1e
updated README markdown, gitignore, added the Makefile and fixed weird comments in test.c
13 years ago
Kevin Branigan
fc0df31a18
init commit
13 years ago
Dave Gamble
6a58ba5285
Include some analysis so that you can debug a failed parse.
You really oughtn't go too far with this, because it's only loose information; as I've said before, cJSON +isn't+ a validating parser. But this might give you enough info to save yourself on some rare occasion ;)
git-svn-id: http://svn.code.sf.net/p/cjson/code@38 e3330c51-1366-4df0-8b21-3ccf24e3d50e
14 years ago
Dave Gamble
02d86ef778
Update to permit compilation with gcc -ansi flag
(changed all C++ // comments to C /* */ comments).
git-svn-id: http://svn.code.sf.net/p/cjson/code@34 e3330c51-1366-4df0-8b21-3ccf24e3d50e
14 years ago
Dave Gamble
69dca155a9
comment these out for clarity...
git-svn-id: http://svn.code.sf.net/p/cjson/code@16 e3330c51-1366-4df0-8b21-3ccf24e3d50e
15 years ago
Dave Gamble
6b51f927e9
two bizarre tweaks to demonstrate the replace functionality.
git-svn-id: http://svn.code.sf.net/p/cjson/code@15 e3330c51-1366-4df0-8b21-3ccf24e3d50e
15 years ago
Dave Gamble
5bd220c8dc
add macros. tighten code.
git-svn-id: http://svn.code.sf.net/p/cjson/code@3 e3330c51-1366-4df0-8b21-3ccf24e3d50e
15 years ago
Dave Gamble
a4a4e7cbff
make these PROPERLY ansi-c compliant ;)
git-svn-id: http://svn.code.sf.net/p/cjson/code@2 e3330c51-1366-4df0-8b21-3ccf24e3d50e
15 years ago
Dave Gamble
805b652e51
here it is, cJSON 1.0
git-svn-id: http://svn.code.sf.net/p/cjson/code@1 e3330c51-1366-4df0-8b21-3ccf24e3d50e
15 years ago