Ruby: internal/util.h Source File

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

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