Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add support to USE_INTERNAL_DTOA to CMake build | Mark Pulford | 2012-03-04 | 1 | -7/+41 | |
| | | | | | - Provide build options for USE_INTERNAL_DTOA and MULTIPLE_THREADS - Link module with Lua library under Windows | |||||
* | Limit significant digits in numbers.json to 14 | Mark Pulford | 2012-03-04 | 1 | -6/+6 | |
| | | | | | | The dtoa.c strtod() function slows down significantly when the number of digits exceeds the accuracy of a "double". JSON containing excessive digits is an unrepresentative test, limit to 14 digits. | |||||
* | Add error checking to dtoa locking primitives | Mark Pulford | 2012-03-04 | 1 | -4/+12 | |
| | ||||||
* | Document dtoa build options | Mark Pulford | 2012-03-04 | 1 | -0/+16 | |
| | ||||||
* | Use internal dtoa/strtod for double conversion | Mark Pulford | 2012-03-04 | 6 | -16/+123 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The internal Lua CJSON dtoa/strtod routines have locale support disabled. This avoids problems under locales with comma decimal separators. Build changes: - CMake: Check for big endian architectures - Makefile: Provide option to build with dtoa.c Modifications to dtoa.c: - Include locale dtoa_config.h configuration - Rename Infinity/NaN to inf/nan to match common C libraries - Rename strtod() -> internal_strtod() to prevent conflict with libc function Modifications to g_fmt.c: - Return output string length (instead of original buffer pointer) - Provide precision as an argument to g_fmt() - Silence compilations warnings from vendor source - while(a = b) - Unused label "done:" - Only swap to scientific notation when once the number of decimal digits required exceeds the precision available. This matches standard printf format %g. - Display a "0" in front of numbers < 1. | |||||
* | Merge branch 'vendor-netlib-dtoa' | Mark Pulford | 2012-03-04 | 2 | -0/+4460 | |
|\ | ||||||
| * | Added Netlib dtoa.c/g_fmt.c routines (20110428) | Mark Pulford | 2011-12-29 | 2 | -0/+4460 | |
| | | | | | | | | See "www.netlib.org/fp/changes" for details. | |||||
* | | Add support for Lua 5.2 environments to lua2json | Mark Pulford | 2012-01-03 | 1 | -9/+23 | |
| | | ||||||
* | | Rename encode/decode scripts to lua2json/json2lua | Mark Pulford | 2012-01-03 | 2 | -6/+6 | |
| | | ||||||
* | | Convert common.lua into cjson-misc module | Mark Pulford | 2012-01-03 | 5 | -35/+43 | |
| | | ||||||
* | | Tidy Makefile sections and comments | Mark Pulford | 2012-01-02 | 1 | -17/+16 | |
| | | ||||||
* | | Fix Windows TARGET modifications | Mark Pulford | 2012-01-02 | 1 | -3/+3 | |
| | | ||||||
* | | 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. |