summaryrefslogtreecommitdiff
path: root/strbuf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespace1.0.1Mark Pulford2011-05-101-3/+3
|
* Add runtime option for persistent encode bufferMark Pulford2011-05-101-1/+5
|
* Add strbuf_append_number()Mark Pulford2011-05-031-7/+18
| | | | | | | | The separate strbuf_append_number() function avoids a potential double call to the slow vsnprintf() function required by strbuf_append_fmt(). Also inline strbuf_append_mem() since it is very simple and will be used often.
* Add MIT license and update lua_cjson.c caveatsMark Pulford2011-05-011-0/+24
|
* 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.