Ruby 3.5.0dev (2025-01-10 revision 5fab31b15e32622c4b71d1d347a41937e9f9c212)
util.h
1#ifndef INTERNAL_UTIL_H /*-*-C-*-vi:se ft=c:*/
2#define INTERNAL_UTIL_H
12#include "ruby/internal/config.h"
13#include <stddef.h> /* for size_t */
14
15#ifdef HAVE_SYS_TYPES_H
16# include <sys/types.h> /* for ssize_t (note: on Windows ssize_t is */
17#endif /* `#define`d in ruby/config.h) */
18
19/* util.c */
20char *ruby_dtoa(double d_, int mode, int ndigits, int *decpt, int *sign, char **rve);
21char *ruby_hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, char **rve);
22
23RUBY_SYMBOL_EXPORT_BEGIN
24/* util.c (export) */
25RUBY_SYMBOL_EXPORT_END
26
27#endif /* INTERNAL_UTIL_H */