Ruby: internal/util.h Source File

Ruby 3.4.9p82 (2026-03-11 revision 76cca827ab52ab1d346a728f068d5b8da3e2952b)

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 */