fpconv.h 644 B

1234567891011121314151617181920212223242526
  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. #define LUAT_FLOATPOINT_SUPPORT 1
  8. #define inline
  9. // #ifdef USE_INTERNAL_FPCONV
  10. // static inline void fpconv_init()
  11. // {
  12. // /* Do nothing - not required */
  13. // }
  14. // #else
  15. // extern inline void fpconv_init();
  16. // #endif
  17. extern int fpconv_g_fmt(char*, double, int);
  18. extern int fpconv_f_fmt(char*, double, int);
  19. extern double fpconv_strtod(const char*, char**);
  20. /* vi:ai et sw=4 ts=4:
  21. */