15 #if defined(__cplusplus) 24 #include RUBY_EXTCONF_H 29 # ifndef HAVE_PROTOTYPES 30 # define HAVE_PROTOTYPES 1 32 # ifndef HAVE_STDARG_PROTOTYPES 33 # define HAVE_STDARG_PROTOTYPES 1 36 #ifdef HAVE_PROTOTYPES 41 #ifdef HAVE_STDARG_PROTOTYPES 42 # define __(args) args 50 #define DECIMAL_SIZE_OF_BITS(n) (((n) * 3010 + 9998) / 9999) 53 #define scan_oct(s,l,e) ((int)ruby_scan_oct((s),(l),(e))) 55 #define scan_hex(s,l,e) ((int)ruby_scan_hex((s),(l),(e))) 58 #ifdef HAVE_GNU_QSORT_R 59 # define ruby_qsort qsort_r 61 void ruby_qsort(
void *,
const size_t,
const size_t,
62 int (*)(
const void *,
const void *,
void *),
void *);
70 #define strdup(s) ruby_strdup(s) 73 #define my_getcwd() ruby_getcwd() 77 #define strtod(s,e) ruby_strtod((s),(e)) 79 void ruby_each_words(
const char *,
void (*)(
const char*,
int,
void*),
void *);
83 #if defined(__cplusplus) void ruby_each_words(const char *, void(*)(const char *, int, void *), void *)
double ruby_strtod(const char *, char **)
void ruby_setenv(const char *, const char *)
char * ruby_strdup(const char *)
#define RUBY_SYMBOL_EXPORT_END
void ruby_unsetenv(const char *)
void ruby_qsort(void *, const size_t, const size_t, int(*)(const void *, const void *, void *), void *)
#define RUBY_SYMBOL_EXPORT_BEGIN
unsigned long ruby_scan_hex(const char *, size_t, size_t *)
unsigned long ruby_scan_oct(const char *, size_t, size_t *)