Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | Add common platform defaults/overrides to Makefile | Mark Pulford | 2011-11-29 | 1 | -19/+19 |
| | |||||
* | Improve README documentation (minor) | Mark Pulford | 2011-11-29 | 1 | -11/+10 |
| | |||||
* | Improve build documentation and layout | Mark Pulford | 2011-11-29 | 3 | -25/+40 |
| | |||||
* | Update version to 1.0.4 | Mark Pulford | 2011-11-27 | 4 | -8/+11 |
| | |||||
* | Update THANKS for locale bug reporter | Mark Pulford | 2011-11-27 | 1 | -0/+1 |
| | |||||
* | Add USE_POSIX_SETLOCALE option | Mark Pulford | 2011-10-07 | 5 | -13/+52 |
| | | | | | | | | | | Add USE_POSIX_SETLOCALE option for platforms missing uselocale(). Document locale options in README, Makefile & rockspec. Also: - Rename USE_POSIX_LOCALE define to USE_POSIX_USELOCALE. - Use uselocale() by default through Makefile (Linux, OSX). - Use setlocale() by default through rockspec (other platforms). | ||||
* | Rename MISSING_ISINF to USE_INTERNAL_ISINF | Mark Pulford | 2011-10-07 | 4 | -5/+8 |
| | |||||
* | Support locales which use comma decimal separators | Mark Pulford | 2011-10-05 | 5 | -3/+79 |
| | | | | | | | | | | | | | Some locales (cs_CZ, de_DE,..) use a comma as their decimal separator. This causes CJSON to generate incorrect JSON (Eg, [10,1]), and fail when parsing some valid JSON (Eg, [10,"test"]). Added USE_POSIX_LOCALE #define which harnesses the thread-safe POSIX.1-2008 locale support (newlocale(), uselocale(), freelocale()) to temporarily use the POSIX locale during JSON conversion. Some older POSIX operating systems with xlocale.h (MacOSX) are also supported. | ||||
* | Fix out of date comment (json_config_key) | Mark Pulford | 2011-10-05 | 1 | -1/+1 |
| | |||||
* | Add release notes for 1.0.31.0.3 | Mark Pulford | 2011-09-15 | 2 | -1/+5 |
| | | | | Also update release date in RPM spec file. | ||||
* | Add limitations section to documentation | Mark Pulford | 2011-09-15 | 1 | -35/+89 |
| | | | | Improve text for clarity. |