aboutsummaryrefslogtreecommitdiff
path: root/jsmn.h
Commit message (Collapse)AuthorAge
* Squashed 'dependencies/jsmn/' changes from 053d3cd..1aa2e8fToni Uhlig2021-09-15
| | | | | | | | | 1aa2e8f Update README.md (#203) b85f161 Update README.md (#213) 23f13d2 Merge pull request #108 from olmokramer/patch-1 git-subtree-dir: dependencies/jsmn git-subtree-split: 1aa2e8f80849c983466b165d53542da9b1bd1b32
* jsmn: declare struct names to allow forward declsPatrick Steinhardt2019-11-08
| | | | | | | | | | | | | | | Both `jsmntok_t` and `jsmn_parser` are declared as anonymous structures that are typedeffed to their actual name. This forces all downstream users of jsmn to always use the typedef name, instead of using e.g. `struct jsmn_parser`. While this might be considered a matter of taste, using typedefs only has the technical downside of disallowing forward declarations. E.g. if a dependent whishes to declare a pointer to `jsmntok_t` without actually pulling in the "jsmn.h" header, then he is not able to do so because there is no way in C to provide a forward declaration for typedefs to anonymous structs. Fix this by providing names for both `jsmntok_t` and `jsmn_parser` structures.
* Quieten a warning from the compilerSanjeev Gupta2019-07-13
| | | | | gcc (and others) like a default case for switch statement, even if it is empty.
* Modernize (#149)Serge Zaitsev2019-04-20
| | | | | | | | | | | | | | | * 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
* Fix issue in documentation.Dario Lombardo2016-10-06
|
* changed jsmnerr_t type to intSerge A. Zaitsev2015-10-17
|
* json token type enum doesn't start with zero value anymore, fixes #24Serge A. Zaitsev2015-10-17
|
* including stddef.h in the jsmn.h, fixed issue #28Serge A. Zaitsev2014-11-17
|
* jsmn.h:28:22: warning: commas at the end of enumerator lists are a ↵Wizard Tai2014-08-23
| | | | | | | | C99-specific feature [-Wc99-extensions] WITH: -std=c89 -Wall -pedantic -Wno-declaration-after-statement
* Added "extern C" to use it with CPP.Gabriel Gritsch2014-02-21
|
* Integrate changes made by Serge Zaitsev.Gabriel Gritsch2014-02-21
|
* - Added possibility to specify the lenght of the input buffer (if not ↵Gabriel Gritsch2014-02-16
| | | | | | null-terminated). - Added "extern C" to use it with CPP.
* - Added possibility to specify the lenght of the input buffer (if not ↵Gabriel Gritsch2014-02-12
| | | | | | null-terminated). - Added "extern C" to use it with CPP.
* a proper fix for signed comparisonSerge A. Zaitsev2014-02-09
|
* fixed typoSerge A. Zaitsev2012-10-01
|
* added optional parent token pointer support. Increases parsing speedSerge A. Zaitsev2012-09-26
|
* fixed: superior node size is now an index, not a pointer (safe to realloc)Serge A. Zaitsev2012-02-02
|
* tested partial parser for strings, added primitive string parser test, fixed ↵Serge A. Zaitsev2012-02-01
| | | | token allocation
* removed JSON string and token array from parser internals, because they must ↵Serge A. Zaitsev2012-02-01
| | | | not be saved between parse() calls
* changed API: parse now is more flexible, but init jsut resets the parser; ↵Serge A. Zaitsev2012-02-01
| | | | added new test macro to compate strings, fixed Makefile
* Complex types (objects and arrays) now have also size - number of child elementsSerge A. Zaitsev2010-12-28
|
* All objects renamed using jsmn prefix to keep consistency and not be mixed ↵Serge A. Zaitsev2010-12-27
| | | | with other json libraries. Demo is now called just demo.
* Token manipulation functions changes. size_t replaced with unsigned int.Serge A. Zaitsev2010-11-17
|
* Design: primitive type implemented as a replacement to boolean/number/null. ↵Serge A. Zaitsev2010-11-17
| | | | String tokens point to the unquoted string
* Design: rewritten using parser structureSerge A. Zaitsev2010-11-16
|
* Design: some error codes addedSerge A. Zaitsev2010-11-16
|
* Feature: make difference between numbers and other primitivesSerge A. Zaitsev2010-11-16
|
* Fix: errpos has got a correct type nowSerge A. Zaitsev2010-11-15
|
* Demo separated from the jsmn code. Makefile changed. Some comments addedSerge A. Zaitsev2010-11-15
|
* Initial commit. Demo program is included in the jsmn.c code. Ugly names and ↵Serge A. Zaitsev2010-11-15
no comments. Please, don't read this changeset