diff options
Diffstat (limited to '')
| -rw-r--r-- | manual.txt | 15 |
1 files changed, 7 insertions, 8 deletions
| @@ -45,20 +45,19 @@ LuaRocks:: | |||
| 45 | POSIX (including Linux, BSD, Mac OSX & Solaris), Windows | 45 | POSIX (including Linux, BSD, Mac OSX & Solaris), Windows |
| 46 | 46 | ||
| 47 | 47 | ||
| 48 | Build configuration overview | 48 | Build options (#define) |
| 49 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 49 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| 50 | 50 | ||
| 51 | Lua CJSON uses +strtod+(3) and +snprintf+(3) to perform numeric | 51 | Lua CJSON uses +strtod+(3) and +snprintf+(3) to perform numeric |
| 52 | conversion as they are usually well supported, fast and bug free. | 52 | conversion as they are usually well supported, fast and bug free. To |
| 53 | 53 | ensure JSON encoding/decoding works correctly for locales using comma | |
| 54 | To ensure JSON encoding/decoding works correctly for locales using | 54 | decimal separators, Lua CJSON may optionally be compiled with one of |
| 55 | comma decimal separators, Lua CJSON must be compiled with one of the | 55 | the following (+#define+): |
| 56 | following ++#define++s: | ||
| 57 | 56 | ||
| 58 | USE_POSIX_USELOCALE:: | 57 | USE_POSIX_USELOCALE:: |
| 59 | Thread safe. Supported by Linux and Mac OSX. Recommended where available. | 58 | Thread safe. Supported by Linux and Mac OSX. Recommended where available. |
| 60 | USE_POSIX_SETLOCALE:: | 59 | USE_POSIX_SETLOCALE:: |
| 61 | Works on all ANSI C platforms. May be used when thread-safety isn't required. | 60 | Works on all ANSI C platforms. Only use with single threaded programs. |
| 62 | 61 | ||
| 63 | Also available: | 62 | Also available: |
| 64 | 63 | ||
