Ruby
2.5.0dev(2017-10-22revision60238)
|
#include "ruby/defines.h"
Go to the source code of this file.
Macros | |
#define | DECIMAL_SIZE_OF_BITS(n) (((n) * 3010 + 9998) / 9999) |
#define | scan_oct(s, l, e) ((int)ruby_scan_oct((s),(l),(e))) |
#define | scan_hex(s, l, e) ((int)ruby_scan_hex((s),(l),(e))) |
#define | strdup(s) ruby_strdup(s) |
#define | my_getcwd() ruby_getcwd() |
#define | strtod(s, e) ruby_strtod((s),(e)) |
Functions | |
unsigned long | ruby_scan_oct (const char *, size_t, size_t *) |
unsigned long | ruby_scan_hex (const char *, size_t, size_t *) |
void | ruby_qsort (void *, const size_t, const size_t, int(*)(const void *, const void *, void *), void *) |
void | ruby_setenv (const char *, const char *) |
void | ruby_unsetenv (const char *) |
char * | ruby_strdup (const char *) |
char * | ruby_getcwd (void) |
double | ruby_strtod (const char *, char **) |
void | ruby_each_words (const char *, void(*)(const char *, int, void *), void *) |
#define DECIMAL_SIZE_OF_BITS | ( | n | ) | (((n) * 3010 + 9998) / 9999) |
#define my_getcwd | ( | ) | ruby_getcwd() |
Definition at line 73 of file util.h.
Referenced by rb_dir_getwd_ospath().
#define scan_hex | ( | s, | |
l, | |||
e | |||
) | ((int)ruby_scan_hex((s),(l),(e))) |
#define scan_oct | ( | s, | |
l, | |||
e | |||
) | ((int)ruby_scan_oct((s),(l),(e))) |
#define strdup | ( | s | ) | ruby_strdup(s) |
Definition at line 70 of file util.h.
Referenced by dln_find_exe_r().
#define strtod | ( | s, | |
e | |||
) | ruby_strtod((s),(e)) |
Definition at line 77 of file util.h.
Referenced by rb_cstr_to_dbl().
Definition at line 3822 of file util.c.
Referenced by ruby_set_debug_option().
char* ruby_getcwd | ( | void | ) |
Definition at line 508 of file util.c.
References buf, DATA_PTR, Data_Wrap_Struct, errno, free(), NULL, PATH_MAX, RB_GC_GUARD, rb_sys_fail(), rb_syserr_fail(), RUBY_DEFAULT_FREE, ruby_strdup(), size, xfree(), xmalloc, and xrealloc.
void ruby_qsort | ( | void * | , |
const size_t | , | ||
const size_t | , | ||
int(*)(const void *, const void *, void *) | , | ||
void * | |||
) |
unsigned long ruby_scan_hex | ( | const char * | , |
size_t | , | ||
size_t * | |||
) |
unsigned long ruby_scan_oct | ( | const char * | , |
size_t | , | ||
size_t * | |||
) |
Definition at line 3497 of file hash.c.
References ALLOCV_END, ALLOCV_N, buf, fail, free(), GET_ENVIRON, len, malloc, NULL, PRIuSIZE, rb_sprintf(), rb_sys_fail_str(), snprintf, and strlen().
Referenced by ruby_unsetenv().
char* ruby_strdup | ( | const char * | ) |
Definition at line 496 of file util.c.
References len, strlen(), and xmalloc.
Referenced by compat_init_setproctitle(), and ruby_getcwd().
double ruby_strtod | ( | const char * | , |
char ** | |||
) |
void ruby_unsetenv | ( | const char * | ) |
Definition at line 3641 of file hash.c.
References ruby_setenv().