summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Grow decode stack, prealloc strings during encodeMark Pulford2011-04-253-18/+34
| | | | | | - Check stack usage during decode to prevent crashing in excessively nested data structures. - Preallocate the required memory for json_append_string().
* Move global table init into lua_jsonMark Pulford2011-04-251-2/+9
|
* Tidy Lua arg count verificationMark Pulford2011-04-251-3/+3
|
* Add support for growing strbufs exponentiallyMark Pulford2011-04-253-18/+79
| | | | | - Change default to 1024 byte strings and doubling in size - Add strbuf debug statistics
* Initialise lua_json lookup tables once (globally)Mark Pulford2011-04-161-3/+1
|
* Improve exception handling in lua_jsonMark Pulford2011-04-161-21/+60
| | | | | - Add json_encode_exception() - Update to throw exceptions during encoding
* Merge lua_json_encode/decode.c into lua_json.cMark Pulford2011-04-152-275/+282
|
* Add functions for new strbuf API and tidyMark Pulford2011-04-152-34/+86
| | | | | | | | - Support strbuf_free() when strbuf is not dynamically created. - Ensure strbuf_free_to_string() returns a null terminated string. - Tidy API function naming. - Add strbuf_append_string(), strbuf_string(). - Allocate initial buffer in strbuf_init().
* Initial commitMark Pulford2011-04-155-0/+1402
| | | | | Split Lua JSON from parent project to create standalone module. Remove unnecesssary files from new repo.
* Initial empty commit.emptyMark Pulford2011-12-240-0/+0