Serge Zaitsev
fdcef3ebf8
Modernize ( #149 )
...
* add .clang-format for automated code formatting
* automatic code formatting
* move config.mk below all target to allow custom non-default build targets
* add license to the top of the file
* use correct header file guards syntax
* convert to single-header, header-only library
* update makefile to use jsmn as a header-only library
* update readme
* add changed from PR #143
* fix clang warnings
* add changes from PR #142
* add consts as per PR #134
6 years ago
Nicola Spanti (RyDroid)
b80578ce08
Very minor changes to Makefile
8 years ago
Serge A. Zaitsev
9b4e33199f
moved tests into a subfolder, added table-driven tests
9 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
8a22e0a149
implemented key/value hierarchy; added 2 examples; fixed some warnings in tests
10 years ago
Peter Finlayson
ee10da0f1e
delete jsmn_test.exe when doing make clean
...
When building the jsmn test suite on Windows via mingw, the output executable is called "jsmn_test.exe" instead of just "jsmn_test".
11 years ago
Serge A. Zaitsev
30f932772e
tested partial parser for strings, added primitive string parser test, fixed token allocation
13 years ago
Serge A. Zaitsev
bed0a7a3e6
changed API: parse now is more flexible, but init jsut resets the parser; added new test macro to compate strings, fixed Makefile
13 years ago
Serge A. Zaitsev
4b5c5ed66a
switched to C unit-tests instead of bash
13 years ago
Serge A. Zaitsev
0c22b772ed
using system AR program, build options are moved to config.mk
13 years ago
Serge A. Zaitsev
c955364a95
All objects renamed using jsmn prefix to keep consistency and not be mixed with other json libraries. Demo is now called just demo.
14 years ago
Serge A. Zaitsev
d0d52f6847
Design: primitive type implemented as a replacement to boolean/number/null. String tokens point to the unquoted string
14 years ago
Serge A. Zaitsev
60509e2850
Design: rewritten using parser structure
14 years ago
Serge A. Zaitsev
0568be6e0b
Demo separated from the jsmn code. Makefile changed. Some comments added
14 years ago
Serge A. Zaitsev
f22c2d30b7
Initial commit. Demo program is included in the jsmn.c code. Ugly names and no comments. Please, don't read this changeset
14 years ago