Neovim Home
src
cjson
fpconv.h
Go to the documentation of this file.
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
10
static
inline
void
fpconv_init
()
11
{
12
/* Do nothing - not required */
13
}
14
#else
15
extern
void
fpconv_init
(
void
);
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
*/
fpconv_strtod
double fpconv_strtod(const char *, char **)
Definition:
fpconv.c:112
fpconv_init
void fpconv_init(void)
Definition:
fpconv.c:205
fpconv_g_fmt
int fpconv_g_fmt(char *, double, int)
Definition:
fpconv.c:180