diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-01 15:24:30 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-01-01 15:24:30 +1030 |
commit | 929c814b12e3575859fa0d5a8ea9950ae2187c56 (patch) | |
tree | c953eadc2fe8415ca85bf15175b6c3114fbc0622 /fpconv.h | |
parent | 4ce40cdccf28551f4b091cb8f9a735c2cc9f5513 (diff) | |
download | lua-cjson-929c814b12e3575859fa0d5a8ea9950ae2187c56.tar.gz lua-cjson-929c814b12e3575859fa0d5a8ea9950ae2187c56.tar.bz2 lua-cjson-929c814b12e3575859fa0d5a8ea9950ae2187c56.zip |
Sanitise locale code, comments and documentation
Diffstat (limited to 'fpconv.h')
-rw-r--r-- | fpconv.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,9 +1,12 @@ | |||
1 | /* Lua CJSON floating point conversion routines */ | 1 | /* Lua CJSON floating point conversion routines */ |
2 | 2 | ||
3 | /* Buffer larger than required to store the largest %.14g number */ | 3 | /* Buffer required to store the largest string representation of a double. |
4 | * | ||
5 | * Longest double printed with %.14g is 21 characters long: | ||
6 | * -1.7976931348623e+308 */ | ||
4 | # define FPCONV_G_FMT_BUFSIZE 32 | 7 | # define FPCONV_G_FMT_BUFSIZE 32 |
5 | 8 | ||
6 | extern void fpconv_update_locale(); | 9 | extern void fpconv_init(); |
7 | extern int fpconv_g_fmt(char*, double, int); | 10 | extern int fpconv_g_fmt(char*, double, int); |
8 | extern double fpconv_strtod(const char*, char**); | 11 | extern double fpconv_strtod(const char*, char**); |
9 | 12 | ||