2015-03-16 02:19:06 +01:00
|
|
|
/* Lua CJSON floating point conversion routines */
|
|
|
|
|
|
|
|
/* Buffer required to store the largest string representation of a double.
|
|
|
|
*
|
|
|
|
* Longest double printed with %.14g is 21 characters long:
|
|
|
|
* -1.7976931348623e+308 */
|
|
|
|
# define FPCONV_G_FMT_BUFSIZE 32
|
|
|
|
|
2016-06-09 10:40:56 +02:00
|
|
|
#if 0
|
2015-03-16 02:19:06 +01:00
|
|
|
#ifdef USE_INTERNAL_FPCONV
|
|
|
|
static inline void fpconv_init()
|
|
|
|
{
|
|
|
|
/* Do nothing - not required */
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
extern inline void fpconv_init();
|
|
|
|
#endif
|
2016-06-09 10:40:56 +02:00
|
|
|
#endif
|
2015-03-16 02:19:06 +01:00
|
|
|
|
|
|
|
extern int fpconv_g_fmt(char*, double, int);
|
|
|
|
extern double fpconv_strtod(const char*, char**);
|
|
|
|
|
|
|
|
/* vi:ai et sw=4 ts=4:
|
|
|
|
*/
|