| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| |
| |
| |
| |
| |
| | |
build-packages.sh has several advantages:
- Automatically bumps version numbers
- Builds HTML documentation on the fly
|
| |
| |
| |
| |
| |
| |
| |
| | |
Merge quirks section into:
- Build overview (locales)
- API docs
Add API section for variables.
|
| | |
|
| |
| |
| |
| |
| | |
Display failed tests, and successful/total test counts.
Use "awk" to provide a portable "ggrep -E" with context.
|
| | |
|
| |
| |
| |
| |
| | |
The external #define complicates compilation but is only used in
lua_cjson.c and Makefile.
|
| |
| |
| |
| | |
Update runtests.sh to exit if an old copy of cjson.so is found.
|
| | |
|
| |
| |
| |
| |
| | |
Previously the the RPM build would overwrite CJSON_CFLAGS but didn't
provide the necessary default CFLAGS (-fpic -DVERSION ..).
|
| |
| |
| |
| |
| |
| |
| | |
- 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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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).
|
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Luarocks does not support a "solaris" platform - USE_INTERNAL_ISINF must
stay commented.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| | |
Also update release date in RPM spec file.
|
| |
| |
| |
| | |
Improve text for clarity.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Louis-Philippe Perron (@loopole)
- Mac OSX bug report
Steve Donovan <steve.j.donovan@gmail.com>
- Window build testing
- Luarocks assistance
Zhang "agentzh" Yichun <agentzh@gmail.com>
- Whitespace suggestion
- Solaris isinf() bug
- Array detection bug
|
| |
| |
| |
| |
| |
| |
| | |
Some versions of Solaris (Eg, Solaris 11 / GCC 3.4.3) are missing
isinf(). Provide a work around when MISSING_ISINF is defined.
Reported by: Zhang "agentzh" Yichun <agentzh@gmail.com>
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
lua_array_length() recognised some objects with numeric string
keys as arrays since it was incorrectly using lua_isnumber().
When an object was incorrectly recognised as an array,
json_append_array() would not find any entries and generate a
result like:
[null,null,...]
Reported by: Zhang "agentzh" Yichun <agentzh@gmail.com>
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Roughly calculate the number of iterations required to run the benchmark
for the chosen duration.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Add cjson.encode_number_precision(). Reducing the number precision from
14 to 3 can increase performance up to 50% with number heavy
conversions.
|
| |
| |
| |
| | |
Windows has poor support for "tar.gz", but all platforms support "zip".
|
| | |
|
| | |
|
| | |
|