Jon Simons
e3f2629a56
tests: fix test_object JSMN_PRIMITIVE bug
...
Specify the argument after JSMN_PRIMITIVE as "0" instead of 0 so
that weird things don't happen on OSX due to using it later with
`va_arg(..., char *)` in `vtokeq`.
9 years ago
Serge Zaitsev
b77d84ba48
Merge pull request #75 from condemned77/master
...
Typo fix.
9 years ago
condemned77
76c9448ca8
Typo fix.
...
Minor typo fixed.
9 years ago
Serge Zaitsev
572ace5a43
Update README.md
9 years ago
Serge Zaitsev
09843be912
Merge pull request #66 from ivankravets/patch-1
...
@PlatformIO Library Registry manifest file
9 years ago
Ivan Kravets
86d595729c
@PlatformIO Library Registry manifest file
...
* This library in Web Registry: http://platformio.org/#!/lib/show/568/jsmn
* Specification: [library.json](http://docs.platformio.org/en/latest/librarymanager/config.html )
* Library Manager: http://docs.platformio.org/en/latest/librarymanager/index.html
9 years ago
Serge Zaitsev
78b1dca334
Merge pull request #65 from Smattr/02ab7ac3-79ee-4541-a80a-230e2ceae1dd
...
Fix trivial comment typo.
9 years ago
Matthew Fernandez
b7845b4ea4
Fix trivial comment typo.
9 years ago
Serge Zaitsev
4a54ae6987
Merge pull request #62 from baskerville/master
...
Fix deheader warnings
9 years ago
Bastien Dejean
e4d526a403
Fix deheader warnings
...
Prior to this commit the output of deheader was:
remove <stdlib.h> from ./jsmn.c
in ./example/jsondump.c, realloc() portability requires <unistd.h>.
in ./example/simple.c, strtol() portability requires <stdlib.h>.
saw 4 files, 16 includes, 1 removable
9 years ago
Serge Zaitsev
fdceddf685
Merge pull request #61 from elelay/master
...
fix jsmntype_t definition in README
9 years ago
Eric Le Lay
6bfa20872c
fix jsmntype_t definition in README
9 years ago
Serge Zaitsev
8da639a334
Merge pull request #60 from baskerville/master
...
Fix typo
9 years ago
Bastien Dejean
f06a10c1b7
Fix typo
9 years ago
Serge A. Zaitsev
076abddc19
fixed privitive value typo in tests
9 years ago
Serge A. Zaitsev
7fb89f1eb2
initialized ok variable in tests, parse should still return 1 if expected result is a failure
9 years ago
Serge A. Zaitsev
8a5ee3d41b
fixed a typo in the test name
9 years ago
Serge Zaitsev
2db03781c5
Merge pull request #55 from goriy/example_realloc_fix
...
small fix of jsondump example for cases of realloc failures
9 years ago
goriy
2d185aa465
tiny realloc function wrapper which handles cases of realloc failures
...
Memory reallocation with old data pointer handling is done by means
of realloc_it() function.
Tiny inline function realloc_it() is a wrapper function for standart
realloc() which frees old memory pointer and prints errno to stderr
if realloc fails.
9 years ago
goriy
e709651a20
small fix of jsondump example for cases of realloc failures
...
When realloc() function fails it returns NULL pointer.
But old data pointer remains valid in such a case.
It's a mistake to use old data pointer to store new
pointer returned by realloc. In case of realloc failure,
pointer is overwritten with NULL value, but old used memory
remains unreferenced and could not be even freed anymore.
Such mistakes could lead to memory leaks.
9 years ago
Serge A. Zaitsev
0c2d60b8e7
added and marked as fixme tests for false positives in objects
9 years ago
Serge A. Zaitsev
f7e6dcb7a2
added another test of invalid array
9 years ago
Serge A. Zaitsev
e5fb875b59
added another test of invalid array
9 years ago
Serge A. Zaitsev
aedc121ce8
added check for null pointer before fixing tokens after parsing is done
9 years ago
Serge A. Zaitsev
824d9a769c
applied fix from wireshark
9 years ago
Serge A. Zaitsev
d0664f9a2e
changed jsmnerr_t type to int
9 years ago
Serge A. Zaitsev
5e37daeec3
added issue 27 test case
9 years ago
Serge A. Zaitsev
edd751896d
fixed return value on incremental parting
9 years ago
Serge A. Zaitsev
9b4e33199f
moved tests into a subfolder, added table-driven tests
9 years ago
Serge A. Zaitsev
226f318224
json token type enum doesn't start with zero value anymore, fixes #24
9 years ago
Serge A. Zaitsev
d87c22d2cd
removed mixed declarations and code, fixes #45
9 years ago
Serge A. Zaitsev
6809c029aa
changed test function args to void, fixes #46
9 years ago
Serge A. Zaitsev
6cb9c3721d
test exit status depends on number of failed tests
9 years ago
Serge Zaitsev
bd9bd55c3a
Changed links to github
9 years ago
Serge A. Zaitsev
26193d39c2
updated README
10 years ago
Serge A. Zaitsev
cf38b7d171
added js string boundaries checks for string parser, fixes issue #31 ; added tests to cover it; fixed makefile to use custom cflags/ldflags
10 years ago
Serge A. Zaitsev
91d7389ec8
added some tests for key/values nodes and added some stricter validations
10 years ago
Serge A. Zaitsev
946a2b1e02
moved i declaration to the top of the block, issue #38 fixed
10 years ago
Serge A. Zaitsev
a0e2b876ca
including stddef.h in the jsmn.h, fixed issue #28
10 years ago
Serge A. Zaitsev
838061aa96
removed trailing spaces
10 years ago
Serge A. Zaitsev
8a22e0a149
implemented key/value hierarchy; added 2 examples; fixed some warnings in tests
10 years ago
Serge Zaitsev
e0847b52b5
Merged in setekhid/jsmn/setekhid/jsmnh2822-warning-commas-at-the-end-of-e-1408807731663 (pull request #11 )
...
jsmn.h:28:22: warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
10 years ago
Wizard Tai
cf39341a39
jsmn.h:28:22: warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
...
WITH:
-std=c89 -Wall -pedantic -Wno-declaration-after-statement
10 years ago
Serge A. Zaitsev
76cd398859
removed JSMN_SUCCESS value from the readme
11 years ago
Serge Zaitsev
f2864e69b9
Merged in MacGritsch/jsmn-patch (pull request #7 )
...
Added "extern C" to use it with CPP.
11 years ago
Gabriel Gritsch
db379ec124
Added "extern C" to use it with CPP.
11 years ago
Gabriel Gritsch
a89501b2fb
Integrate changes made by Serge Zaitsev.
11 years ago
Serge A. Zaitsev
5faee057cb
edited readme about what's inside the repo. closes issue #19
11 years ago
Serge A. Zaitsev
f0ae25f873
added way to specify json string length, added test for non-strict mode
11 years ago
Serge A. Zaitsev
809c7c6db1
added way to estimate number of tokens before parsing
11 years ago