aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add NDEBUG to performance CFLAGSMark Pulford2011-12-311-1/+1
|
* Remove redundant comment from test.luaMark Pulford2011-12-311-7/+0
|
* Update NEWS for 1.0.5Mark Pulford2011-12-311-1/+5
|
* Minor code cleanupMark Pulford2011-12-311-10/+12
| | | | | | - Sanitised arg ordering to encode functions - Commented json->tmp to explain why decode string processing uses strbuf_*_unsafe() functions.
* Remove "update_locale" Lua functionMark Pulford2011-12-312-10/+2
| | | | | | | Only update the locale when the module is initialised. cjson.new() can be used if the locale changes part way through program execution.
* Add option for private bufferMark Pulford2011-12-311-26/+44
| | | | | | When encode_keep_buffer is false, a private buffer will be used. This will allow multiple encoders to run within a single Lua state.
* Fix minor warning from Clang analyzerMark Pulford2011-12-311-1/+1
|
* Remove shared current_depth var from cfg structMark Pulford2011-12-311-25/+17
|
* Remove strbuf:die() from global symbol tableMark Pulford2011-12-301-1/+1
|
* Add support for Lua 5.2 and cjson.newMark Pulford2011-12-308-47/+122
| | | | | | | | | | | | | | Update all Lua scripts to use new module init style everywhere: local json = require "cjson" Lua CJSON does not register a global table under Lua 5.2. The global table can be disabled under Lua 5.1 with DISABLE_CJSON_GLOBAL. Other changes: - Store CJSON configuration as an upvalue for each function. - Add "cjson.new" function to create another module table with a separate configuration. - Add _NAME and _VERSION variables.
* Add fpconv to work around comma decimal pointsMark Pulford2011-12-308-20/+206
| | | | | | | | Create a separate buffer and translate comma <> dot before calling strtod(), and after calling sprintf() as required. - Add "update_locale" Lua API call and init locale on module load. - Move sprintf format string to fpconv
* Remove POSIX locale workaroundMark Pulford2011-12-296-124/+4
|
* Display success when all tests passMark Pulford2011-12-301-3/+4
|
* Display failed test count (test.lua)Mark Pulford2011-12-261-1/+1
|
* Generate git tag based version number for packagesMark Pulford2011-12-261-20/+10
|
* Fix typo in lua_cjson.cMark Pulford2011-12-241-1/+1
|
* Clarify optional args and return valuesMark Pulford2011-12-201-0/+15
|
* Add original JSON parser design outlineMark Pulford2011-12-201-0/+50
|
* Add .gitignore for object files, html, extra dirsMark Pulford2011-12-202-0/+9
|
* Remove cjson prefix from function headingsMark Pulford2011-12-201-18/+18
|
* Add UTF-8 caution to manual (and misc changes)Mark Pulford2011-12-201-10/+24
|
* Update manual (various minor improvements)Mark Pulford2011-12-151-84/+79
| | | | | | | - Fix typo (keep_encode_buffer -> encode_keep_buffer) - Update for consistency - Remove duplicate sparse table example - Change manual to use horizontal item lists
* Add CMake build documentationMark Pulford2011-12-151-7/+26
|
* Remove TODO from releasesMark Pulford2011-12-153-5/+2
|
* Update examples in documentationMark Pulford2011-12-151-32/+16
| | | | | - Remove block quotes - Add titles
* Rewrite cjson.encode_sparse_array documentationMark Pulford2011-12-151-29/+25
|
* Clean up build options documentation in manualMark Pulford2011-12-151-8/+7
|
* Automate package releases with build-packages.shMark Pulford2011-12-158-29/+82
| | | | | | build-packages.sh has several advantages: - Automatically bumps version numbers - Builds HTML documentation on the fly
* Remove quirks section from manualMark Pulford2011-12-141-74/+55
| | | | | | | | Merge quirks section into: - Build overview (locales) - API docs Add API section for variables.
* Add support for building via CMakeMark Pulford2011-12-132-0/+57
|
* Update build testing to show test counts/failuresMark Pulford2011-12-133-7/+28
| | | | | Display failed tests, and successful/total test counts. Use "awk" to provide a portable "ggrep -E" with context.
* Order API functions in manual alphabeticallyMark Pulford2011-12-131-81/+81
|
* Remove external VERSION #define for lua_cjson.cMark Pulford2011-12-133-5/+9
| | | | | The external #define complicates compilation but is only used in lua_cjson.c and Makefile.
* Ensure build tests only use the current cjson.soMark Pulford2011-12-131-6/+13
| | | | Update runtests.sh to exit if an old copy of cjson.so is found.
* Add automatic RPM build testingMark Pulford2011-12-131-1/+17
|
* Fix RPM buildMark Pulford2011-12-131-2/+2
| | | | | Previously the the RPM build would overwrite CJSON_CFLAGS but didn't provide the necessary default CFLAGS (-fpic -DVERSION ..).
* Convert documentation to AsciiDocMark Pulford2011-12-125-330/+468
| | | | | | | - Rename README to manual.txt and add AsciiDoc markup - Rewrite some sections of documentation (more outstanding) - Add "doc" Makefile target - Update RPM spec file to include HTML output
* Fix Makefile for use with non-GNU makeMark Pulford2011-12-085-36/+38
| | | | | | | | | | | | - Remove GNU make "override" statements. - Add OBJS variable since there is no portable way to specify all targets for linking. Also: - Put build defaults at the top to avoid potential confusion. - Don't assume a Linux platform. Default to USE_POSIX_SETLOCALE. - Change "install -d" to mkdir/install since the former isn't available on some platforms (Solaris).
* Silence genutf8.pl warnings across Perl versionsMark Pulford2011-12-081-14/+5
| | | | | | | - Use Perl filehandles directly since IO::Handle generates unicode warnings that can't be silenced. - Disable all warnings since the specific "nonchar" warning only exists in newer versions.
* Update NEWS for 1.0.4 release1.0.4Mark Pulford2011-11-301-2/+2
|
* Add automated build testing (LuaRocks, Makefile)Mark Pulford2011-11-292-1/+46
|
* Add workaround to handle platforms that print -nanMark Pulford2011-11-292-10/+11
|
* Remove unused escape table init codeMark Pulford2011-11-291-26/+0
|
* Suppress isinf() define when it already existsMark Pulford2011-11-291-2/+2
|
* Add platform specific overrides to rockspecMark Pulford2011-11-292-1/+21
| | | | | Luarocks does not support a "solaris" platform - USE_INTERNAL_ISINF must stay commented.
* Add common platform defaults/overrides to MakefileMark Pulford2011-11-291-19/+19
|
* Improve README documentation (minor)Mark Pulford2011-11-291-11/+10
|
* Improve build documentation and layoutMark Pulford2011-11-293-25/+40
|
* Update version to 1.0.4Mark Pulford2011-11-274-8/+11
|
* Update THANKS for locale bug reporterMark Pulford2011-11-271-0/+1
|