Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Fix typos (lists, hexadecimal) | Mark Pulford | 2012-01-02 | 2 | -9/+9 | |
| | | ||||||
* | | Update all package descriptions for consistency | Mark Pulford | 2012-01-02 | 3 | -9/+19 | |
| | | ||||||
* | | Add build option to disable invalid numbers | Mark Pulford | 2012-01-01 | 4 | -16/+39 | |
| | | | | | | | | | | Windows MinGW doesn't convert Infinity/NaN/hexadecimal numbers. Add DISABLE_INVALID_NUMBERS build option option to disable invalid numbers. | |||||
* | | Sanitise locale code, comments and documentation | Mark Pulford | 2012-01-01 | 4 | -41/+71 | |
| | | ||||||
* | | Add Windows MinGW target to Makefile | Mark Pulford | 2012-01-01 | 1 | -4/+12 | |
| | | ||||||
* | | Add NDEBUG to performance CFLAGS | Mark Pulford | 2011-12-31 | 1 | -1/+1 | |
| | | ||||||
* | | Remove redundant comment from test.lua | Mark Pulford | 2011-12-31 | 1 | -7/+0 | |
| | | ||||||
* | | Update NEWS for 1.0.5 | Mark Pulford | 2011-12-31 | 1 | -1/+5 | |
| | | ||||||
* | | Minor code cleanup | Mark Pulford | 2011-12-31 | 1 | -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 function | Mark Pulford | 2011-12-31 | 2 | -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 buffer | Mark Pulford | 2011-12-31 | 1 | -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 analyzer | Mark Pulford | 2011-12-31 | 1 | -1/+1 | |
| | | ||||||
* | | Remove shared current_depth var from cfg struct | Mark Pulford | 2011-12-31 | 1 | -25/+17 | |
| | | ||||||
* | | Remove strbuf:die() from global symbol table | Mark Pulford | 2011-12-30 | 1 | -1/+1 | |
| | | ||||||
* | | Add support for Lua 5.2 and cjson.new | Mark Pulford | 2011-12-30 | 8 | -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 points | Mark Pulford | 2011-12-30 | 8 | -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 workaround | Mark Pulford | 2011-12-29 | 6 | -124/+4 | |
| | | ||||||
* | | Display success when all tests pass | Mark Pulford | 2011-12-30 | 1 | -3/+4 | |
| | | ||||||
* | | Display failed test count (test.lua) | Mark Pulford | 2011-12-26 | 1 | -1/+1 | |
| | | ||||||
* | | Generate git tag based version number for packages | Mark Pulford | 2011-12-26 | 1 | -20/+10 | |
| | | ||||||
* | | Fix typo in lua_cjson.c | Mark Pulford | 2011-12-24 | 1 | -1/+1 | |
| | | ||||||
* | | Clarify optional args and return values | Mark Pulford | 2011-12-20 | 1 | -0/+15 | |
| | | ||||||
* | | Add original JSON parser design outline | Mark Pulford | 2011-12-20 | 1 | -0/+50 | |
| | | ||||||
* | | Add .gitignore for object files, html, extra dirs | Mark Pulford | 2011-12-20 | 2 | -0/+9 | |
| | | ||||||
* | | Remove cjson prefix from function headings | Mark Pulford | 2011-12-20 | 1 | -18/+18 | |
| | | ||||||
* | | Add UTF-8 caution to manual (and misc changes) | Mark Pulford | 2011-12-20 | 1 | -10/+24 | |
| | | ||||||
* | | Update manual (various minor improvements) | Mark Pulford | 2011-12-15 | 1 | -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 documentation | Mark Pulford | 2011-12-15 | 1 | -7/+26 | |
| | | ||||||
* | | Remove TODO from releases | Mark Pulford | 2011-12-15 | 3 | -5/+2 | |
| | | ||||||
* | | Update examples in documentation | Mark Pulford | 2011-12-15 | 1 | -32/+16 | |
| | | | | | | | | | | - Remove block quotes - Add titles | |||||
* | | Rewrite cjson.encode_sparse_array documentation | Mark Pulford | 2011-12-15 | 1 | -29/+25 | |
| | | ||||||
* | | Clean up build options documentation in manual | Mark Pulford | 2011-12-15 | 1 | -8/+7 | |
| | | ||||||
* | | Automate package releases with build-packages.sh | Mark Pulford | 2011-12-15 | 8 | -29/+82 | |
| | | | | | | | | | | | | build-packages.sh has several advantages: - Automatically bumps version numbers - Builds HTML documentation on the fly | |||||
* | | Remove quirks section from manual | Mark Pulford | 2011-12-14 | 1 | -74/+55 | |
| | | | | | | | | | | | | | | | | Merge quirks section into: - Build overview (locales) - API docs Add API section for variables. | |||||
* | | Add support for building via CMake | Mark Pulford | 2011-12-13 | 2 | -0/+57 | |
| | | ||||||
* | | Update build testing to show test counts/failures | Mark Pulford | 2011-12-13 | 3 | -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 alphabetically | Mark Pulford | 2011-12-13 | 1 | -81/+81 | |
| | | ||||||
* | | Remove external VERSION #define for lua_cjson.c | Mark Pulford | 2011-12-13 | 3 | -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.so | Mark Pulford | 2011-12-13 | 1 | -6/+13 | |
| | | | | | | | | Update runtests.sh to exit if an old copy of cjson.so is found. | |||||
* | | Add automatic RPM build testing | Mark Pulford | 2011-12-13 | 1 | -1/+17 | |
| | | ||||||
* | | Fix RPM build | Mark Pulford | 2011-12-13 | 1 | -2/+2 | |
| | | | | | | | | | | Previously the the RPM build would overwrite CJSON_CFLAGS but didn't provide the necessary default CFLAGS (-fpic -DVERSION ..). | |||||
* | | Convert documentation to AsciiDoc | Mark Pulford | 2011-12-12 | 5 | -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 make | Mark Pulford | 2011-12-08 | 5 | -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 versions | Mark Pulford | 2011-12-08 | 1 | -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.4 | Mark Pulford | 2011-11-30 | 1 | -2/+2 | |
| | | ||||||
* | | Add automated build testing (LuaRocks, Makefile) | Mark Pulford | 2011-11-29 | 2 | -1/+46 | |
| | | ||||||
* | | Add workaround to handle platforms that print -nan | Mark Pulford | 2011-11-29 | 2 | -10/+11 | |
| | | ||||||
* | | Remove unused escape table init code | Mark Pulford | 2011-11-29 | 1 | -26/+0 | |
| | | ||||||
* | | Suppress isinf() define when it already exists | Mark Pulford | 2011-11-29 | 1 | -2/+2 | |
| | | ||||||
* | | Add platform specific overrides to rockspec | Mark Pulford | 2011-11-29 | 2 | -1/+21 | |
| | | | | | | | | | | Luarocks does not support a "solaris" platform - USE_INTERNAL_ISINF must stay commented. |