| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
build-packages.sh has several advantages:
- Automatically bumps version numbers
- Builds HTML documentation on the fly
|
|
|
|
|
| |
The external #define complicates compilation but is only used in
lua_cjson.c and Makefile.
|
|
|
|
|
| |
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).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
| |
Windows has poor support for "tar.gz", but all platforms support "zip".
|
| |
|
|
|
|
|
|
| |
Remove "-lm" from LDFLAGS in Makefile since it breaks the build under
Windows and isn't required under Linux. Math lib fix suggested by:
Steve Donovan <steve.j.donovan@gmail.com>
|
| |
|
| |
|
| |
|
|
- Add Makefile and RPM spec file
- Add cjson.version variable
|