aboutsummaryrefslogtreecommitdiff
path: root/fpconv.h
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-01-01 15:24:30 +1030
committerMark Pulford <mark@kyne.com.au>2012-01-01 15:24:30 +1030
commit929c814b12e3575859fa0d5a8ea9950ae2187c56 (patch)
treec953eadc2fe8415ca85bf15175b6c3114fbc0622 /fpconv.h
parent4ce40cdccf28551f4b091cb8f9a735c2cc9f5513 (diff)
downloadlua-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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/fpconv.h b/fpconv.h
index b8a6469..ea875c0 100644
--- a/fpconv.h
+++ b/fpconv.h
@@ -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
6extern void fpconv_update_locale(); 9extern void fpconv_init();
7extern int fpconv_g_fmt(char*, double, int); 10extern int fpconv_g_fmt(char*, double, int);
8extern double fpconv_strtod(const char*, char**); 11extern double fpconv_strtod(const char*, char**);
9 12