xref: /f-stack/app/redis-5.0.5/deps/lua/src/fpconv.h (revision 572c4311)
1 /* Lua CJSON floating point conversion routines */
2 
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 */
7 # define FPCONV_G_FMT_BUFSIZE   32
8 
9 #ifdef USE_INTERNAL_FPCONV
fpconv_init()10 static inline void fpconv_init()
11 {
12     /* Do nothing - not required */
13 }
14 #else
15 extern void fpconv_init();
16 #endif
17 
18 extern int fpconv_g_fmt(char*, double, int);
19 extern double fpconv_strtod(const char*, char**);
20 
21 /* vi:ai et sw=4 ts=4:
22  */
23