aboutsummaryrefslogtreecommitdiff
path: root/strbuf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Create "cjson" Lua module, support UCS-2 escapesMark Pulford2011-05-011-3/+4
| | | | | | | | | | - Convert lua_json_init() into luaopen_cjson() to support dynamic .so loading. - Rename "json" to "cjson" to reduce conflicts with other JSON modules. - Remove unnecessary *_pcall_* API. Lua calls are fast enough, even through C. - Encode empty tables as objects - Add support for decoding all UCS-2 escape codes.
* Grow decode stack, prealloc strings during encodeMark Pulford2011-04-251-3/+1
| | | | | | - Check stack usage during decode to prevent crashing in excessively nested data structures. - Preallocate the required memory for json_append_string().
* Add support for growing strbufs exponentiallyMark Pulford2011-04-251-11/+69
| | | | | - Change default to 1024 byte strings and doubling in size - Add strbuf debug statistics
* Add functions for new strbuf API and tidyMark Pulford2011-04-151-21/+43
| | | | | | | | - 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-151-0/+130
Split Lua JSON from parent project to create standalone module. Remove unnecesssary files from new repo.