19#define DECIMAL_SIZE_OF_BITS(n) (((n) * 3010 + 9998) / 9999)
22#define scan_oct(s,l,e) ((int)ruby_scan_oct((s),(l),(e)))
24#define scan_hex(s,l,e) ((int)ruby_scan_hex((s),(l),(e)))
27#ifdef HAVE_GNU_QSORT_R
28# define ruby_qsort qsort_r
31 int (*)(
const void *,
const void *,
void *),
void *);
39#define strdup(s) ruby_strdup(s)
45#define strtod(s,e) ruby_strtod((s),(e))
47void ruby_each_words(
const char *,
void (*)(
const char*,
int,
void*),
void *);
Tewaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Thin wrapper to ruby/config.h.
unsigned long ruby_scan_oct(const char *, size_t, size_t *)
char * ruby_strdup(const char *)
unsigned long ruby_scan_hex(const char *, size_t, size_t *)
void ruby_setenv(const char *, const char *)
double ruby_strtod(const char *, char **)
void ruby_unsetenv(const char *)
void ruby_qsort(void *, const size_t, const size_t, int(*)(const void *, const void *, void *), void *)
void ruby_each_words(const char *, void(*)(const char *, int, void *), void *)