fpconv.h 600 B

12345678910111213141516171819202122232425262728
  1. /* Lua CJSON floating point conversion routines */
  2. /* Buffer required to store the largest string representation of a double.
  3. *
  4. * Longest double printed with %.14g is 21 characters long:
  5. * -1.7976931348623e+308 */
  6. # define FPCONV_G_FMT_BUFSIZE 32
  7. #ifdef _MSC_VER
  8. #define snprintf _snprintf
  9. #undef inline
  10. #define inline __inline
  11. #endif
  12. #ifdef USE_INTERNAL_FPCONV
  13. static void fpconv_init()
  14. {
  15. /* Do nothing - not required */
  16. }
  17. #else
  18. extern void fpconv_init();
  19. #endif
  20. extern int fpconv_g_fmt(char*, double, int);
  21. extern double fpconv_strtod(const char*, char**);
  22. /* vi:ai et sw=4 ts=4:
  23. */