aboutsummaryrefslogtreecommitdiff
path: root/manual.txt
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-01-01 23:30:34 +1030
committerMark Pulford <mark@kyne.com.au>2012-01-01 23:30:34 +1030
commit77408a81a696472338c2f90147e41fff3e81005d (patch)
treea4972c000f94d416df20f8786f4e75e3ded5d263 /manual.txt
parent929c814b12e3575859fa0d5a8ea9950ae2187c56 (diff)
downloadlua-cjson-77408a81a696472338c2f90147e41fff3e81005d.tar.gz
lua-cjson-77408a81a696472338c2f90147e41fff3e81005d.tar.bz2
lua-cjson-77408a81a696472338c2f90147e41fff3e81005d.zip
Add build option to disable invalid numbers
Windows MinGW doesn't convert Infinity/NaN/hexadecimal numbers. Add DISABLE_INVALID_NUMBERS build option option to disable invalid numbers.
Diffstat (limited to 'manual.txt')
-rw-r--r--manual.txt21
1 files changed, 12 insertions, 9 deletions
diff --git a/manual.txt b/manual.txt
index 3ccbce3..33fcc56 100644
--- a/manual.txt
+++ b/manual.txt
@@ -42,15 +42,6 @@ RPM:: Linux
42LuaRocks:: Unix, Windows 42LuaRocks:: Unix, Windows
43 43
44 44
45Build Options (#define)
46~~~~~~~~~~~~~~~~~~~~~~~
47
48[horizontal]
49USE_INTERNAL_ISINF:: Workaround for Solaris platforms missing isinf().
50DISABLE_CJSON_GLOBAL:: Do not store module table in global "cjson"
51 variable. Redundant from Lua 5.2 onwards.
52
53
54Make 45Make
55~~~~ 46~~~~
56 47
@@ -117,6 +108,18 @@ Review the http://luarocks.org/en/Documentation[LuaRocks documentation]
117for further details. 108for further details.
118 109
119 110
111Build Options (#define)
112~~~~~~~~~~~~~~~~~~~~~~~
113
114[horizontal]
115USE_INTERNAL_ISINF:: Workaround for Solaris platforms missing ++isinf++(3).
116DISABLE_CJSON_GLOBAL:: Do not store module table in global "cjson"
117 variable. Redundant from Lua 5.2 onwards.
118DISABLE_INVALID_NUMBERS:: Recommended on platforms where ++strtod++(3) /
119 ++sprintf++(3) are not POSIX compliant (Eg, Windows MinGW). Restricts
120 the +cjson.refuse_invalid_numbers+ runtime configuration to +true+.
121
122
120API (Functions) 123API (Functions)
121--------------- 124---------------
122 125