Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Data Structures | |
struct | RBignum |
struct | RRational |
struct | RFloat |
struct | RComplex |
struct | RHash |
struct | RStruct |
struct | rb_deprecated_classext_struct |
struct | rb_subclass_entry |
struct | rb_classext_struct |
struct | RClass |
struct | RIMemo |
struct | vm_svar |
SVAR (Special VARiable) More... | |
struct | vm_throw_data |
THROW_DATA. More... | |
struct | vm_ifunc_argc |
struct | vm_ifunc |
IFUNC (Internal FUNCtion) More... | |
struct | rb_imemo_alloc_struct |
struct | MEMO |
MEMO. More... | |
struct | cmp_opt_data |
struct | rb_global_entry |
struct | RBasicRaw |
struct | rb_execarg |
Typedefs | |
typedef struct rb_subclass_entry | rb_subclass_entry_t |
typedef unsigned long | rb_serial_t |
typedef struct rb_classext_struct | rb_classext_t |
typedef struct rb_imemo_alloc_struct | rb_imemo_alloc_t |
typedef void | rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE) |
Enumerations | |
enum | { RSTRUCT_EMBED_LEN_MAX = 3, RSTRUCT_EMBED_LEN_MASK = (RUBY_FL_USER2|RUBY_FL_USER1), RSTRUCT_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+1), RSTRUCT_ENUM_END } |
enum | imemo_type { imemo_env = 0, imemo_cref = 1, imemo_svar = 2, imemo_throw_data = 3, imemo_ifunc = 4, imemo_memo = 5, imemo_ment = 6, imemo_iseq = 7, imemo_alloc = 8 } |
enum | { cmp_opt_Fixnum, cmp_opt_String, cmp_opt_Float, cmp_optimizable_count } |
enum | ruby_num_rounding_mode { RUBY_NUM_ROUND_HALF_UP, RUBY_NUM_ROUND_HALF_EVEN, RUBY_NUM_ROUND_HALF_DOWN, RUBY_NUM_ROUND_DEFAULT = ROUND_DEFAULT } |
enum | rb_int_parse_flags { RB_INT_PARSE_SIGN = 0x01, RB_INT_PARSE_UNDERSCORE = 0x02, RB_INT_PARSE_PREFIX = 0x04, RB_INT_PARSE_ALL = 0x07, RB_INT_PARSE_DEFAULT = 0x07 } |
Variables | |
const char | ruby_digitmap [] |
VALUE | rb_eEAGAIN |
VALUE | rb_eEWOULDBLOCK |
VALUE | rb_eEINPROGRESS |
VALUE * | ruby_initial_gc_stress_ptr |
int | ruby_disable_gc |
const char | ruby_exec_prefix [] |
const char | ruby_initial_load_paths [] |
int | ruby_enable_coredump |
VALUE | rb_cEncodingConverter |
rb_encoding | OnigEncodingUS_ASCII |
rb_encoding | OnigEncodingUTF_8 |
const char | ruby_engine [] |
const signed char | ruby_digit36_to_number_table [] |
const char | ruby_hexdigits [] |
#define __bool_true_false_are_defined 1 |
Definition at line 38 of file internal.h.
#define __has_extension __has_feature |
Definition at line 73 of file internal.h.
#define __has_feature | ( | x | ) | 0 |
Definition at line 69 of file internal.h.
#define ARGVSTR2ARGC | ( | argv_str | ) | (RSTRING_LEN(argv_str) / sizeof(char *) - 2) |
Definition at line 1563 of file internal.h.
Referenced by rb_execarg_commandline().
#define ARGVSTR2ARGV | ( | argv_str | ) | ((char **)RSTRING_PTR(argv_str) + 1) |
Definition at line 1564 of file internal.h.
Referenced by rb_execarg_commandline().
#define BDIGIT unsigned int |
Definition at line 526 of file internal.h.
#define BDIGIT_DBL unsigned LONG_LONG |
Definition at line 528 of file internal.h.
#define BDIGIT_DBL_SIGNED LONG_LONG |
Definition at line 529 of file internal.h.
#define BIGNUM_DIGITS | ( | b | ) |
Definition at line 616 of file internal.h.
Definition at line 607 of file internal.h.
Definition at line 608 of file internal.h.
#define BIGNUM_EMBED_LEN_MAX (SIZEOF_VALUE*3/SIZEOF_ACTUAL_BDIGIT) |
Definition at line 581 of file internal.h.
#define BIGNUM_EMBED_LEN_NUMBITS 3 |
Definition at line 578 of file internal.h.
#define BIGNUM_EMBED_LEN_SHIFT (FL_USHIFT+BIGNUM_EMBED_LEN_NUMBITS) |
Definition at line 609 of file internal.h.
#define BIGNUM_LEN | ( | b | ) |
Definition at line 610 of file internal.h.
Referenced by rb_absint_singlebit_p(), rb_absint_size(), rb_big_clone(), rb_big_comp(), rb_big_divrem_normal(), rb_big_eql(), rb_big_even_p(), rb_big_isqrt(), rb_big_mul_balance(), rb_big_mul_karatsuba(), rb_big_mul_normal(), rb_big_mul_toom3(), rb_big_odd_p(), rb_big_sq_fast(), and rb_integer_pack().
#define BIGNUM_LENINT | ( | b | ) | rb_long2int(BIGNUM_LEN(b)) |
Definition at line 620 of file internal.h.
#define BIGNUM_NEGATE | ( | b | ) | (RBASIC(b)->flags ^= BIGNUM_SIGN_BIT) |
Definition at line 605 of file internal.h.
Referenced by rb_big_uminus().
#define BIGNUM_NEGATIVE_P | ( | b | ) | (!BIGNUM_SIGN(b)) |
Definition at line 604 of file internal.h.
Referenced by rb_big_abs(), rb_big_bit_length(), rb_big_pow(), and rb_num_to_uint().
#define BIGNUM_POSITIVE_P | ( | b | ) | BIGNUM_SIGN(b) |
Definition at line 603 of file internal.h.
Referenced by rb_big_comp(), and rb_integer_pack().
#define BIGNUM_SET_SIGN | ( | b, | |
sign | |||
) |
Definition at line 600 of file internal.h.
#define BIGNUM_SIGN | ( | b | ) | ((RBASIC(b)->flags & BIGNUM_SIGN_BIT) != 0) |
Definition at line 599 of file internal.h.
Referenced by rb_big_divrem_normal(), rb_big_eql(), rb_big_minus(), rb_big_mul_balance(), rb_big_mul_karatsuba(), rb_big_mul_normal(), rb_big_mul_toom3(), rb_big_plus(), rb_big_sign(), and rb_cmpint().
Definition at line 597 of file internal.h.
#define bit_length | ( | x | ) |
Definition at line 518 of file internal.h.
#define bool signed char |
Definition at line 35 of file internal.h.
#define Check_Type | ( | v, | |
t | |||
) |
Definition at line 1847 of file internal.h.
#define CMP_OPTIMIZABLE | ( | data, | |
type | |||
) |
Definition at line 997 of file internal.h.
#define CMP_OPTIMIZABLE_BIT | ( | type | ) | (1U << TOKEN_PASTE(cmp_opt_,type)) |
Definition at line 996 of file internal.h.
#define COVERAGE_INDEX_BRANCHES 1 |
Definition at line 1695 of file internal.h.
#define COVERAGE_INDEX_LINES 0 |
Definition at line 1694 of file internal.h.
#define COVERAGE_INDEX_METHODS 2 |
Definition at line 1696 of file internal.h.
#define COVERAGE_TARGET_BRANCHES 2 |
Definition at line 1698 of file internal.h.
#define COVERAGE_TARGET_LINES 1 |
Definition at line 1697 of file internal.h.
#define COVERAGE_TARGET_METHODS 4 |
Definition at line 1699 of file internal.h.
#define DEPRECATED_INTERNAL_FEATURE | ( | func | ) | (ruby_deprecated_internal_feature(func), UNREACHABLE) |
Definition at line 1174 of file internal.h.
#define false 0 |
Definition at line 36 of file internal.h.
#define FIXNUM_NEGATIVE_P | ( | num | ) | ((SIGNED_VALUE)(num) < 0) |
Definition at line 1317 of file internal.h.
#define FIXNUM_POSITIVE_P | ( | num | ) | ((SIGNED_VALUE)(num) > (SIGNED_VALUE)INT2FIX(0)) |
Definition at line 1316 of file internal.h.
#define FIXNUM_ZERO_P | ( | num | ) | ((num) == INT2FIX(0)) |
Definition at line 1318 of file internal.h.
Referenced by rb_int_fdiv_double().
#define HASH_PROC_DEFAULT FL_USER2 |
Definition at line 1273 of file internal.h.
#define IFUNC_NEW | ( | a, | |
b, | |||
c | |||
) | ((struct vm_ifunc *)rb_imemo_new(imemo_ifunc, (VALUE)(a), (VALUE)(b), (VALUE)(c), 0)) |
Definition at line 925 of file internal.h.
Referenced by rb_vm_ifunc_new().
#define IMEMO_DEBUG 0 |
Definition at line 827 of file internal.h.
#define IMEMO_FL_USER0 FL_USER4 |
Definition at line 874 of file internal.h.
#define IMEMO_FL_USER1 FL_USER5 |
Definition at line 875 of file internal.h.
#define IMEMO_FL_USER2 FL_USER6 |
Definition at line 876 of file internal.h.
#define IMEMO_FL_USER3 FL_USER7 |
Definition at line 877 of file internal.h.
#define IMEMO_FL_USER4 FL_USER8 |
Definition at line 878 of file internal.h.
#define IMEMO_FL_USHIFT (FL_USHIFT + 4) |
Definition at line 873 of file internal.h.
#define IMEMO_MASK 0x0f |
Definition at line 849 of file internal.h.
#define INT_NEGATIVE_P | ( | x | ) | (FIXNUM_P(x) ? FIXNUM_NEGATIVE_P(x) : BIGNUM_NEGATIVE_P(x)) |
Definition at line 1320 of file internal.h.
Referenced by rb_rational_abs().
#define is_ascii_string | ( | str | ) | (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT) |
Definition at line 1654 of file internal.h.
Referenced by rb_str_conv_enc_opts().
#define is_broken_string | ( | str | ) | (rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN) |
Definition at line 1655 of file internal.h.
#define LIKELY | ( | x | ) | RB_LIKELY(x) |
Definition at line 42 of file internal.h.
Referenced by rb_memsearch(), and rb_str_concat_literals().
#define MAYBE_UNUSED | ( | x | ) | x |
Definition at line 46 of file internal.h.
Referenced by rb_debug_inspector_open().
#define MEMO_CAST | ( | m | ) | ((struct MEMO *)m) |
Definition at line 961 of file internal.h.
#define MEMO_FOR | ( | type, | |
value | |||
) | ((type *)RARRAY_PTR(value)) |
Definition at line 967 of file internal.h.
#define MEMO_NEW | ( | a, | |
b, | |||
c | |||
) | ((struct MEMO *)rb_imemo_new(imemo_memo, (VALUE)(a), (VALUE)(b), (VALUE)(c), 0)) |
Definition at line 963 of file internal.h.
#define MEMO_V1_SET | ( | m, | |
v | |||
) | RB_OBJ_WRITE((m), &(m)->v1, (v)) |
Definition at line 958 of file internal.h.
#define MEMO_V2_SET | ( | m, | |
v | |||
) | RB_OBJ_WRITE((m), &(m)->v2, (v)) |
Definition at line 959 of file internal.h.
#define MUL_OVERFLOW_FIXNUM_P | ( | a, | |
b | |||
) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, FIXNUM_MIN, FIXNUM_MAX) |
Definition at line 122 of file internal.h.
#define MUL_OVERFLOW_INT_P | ( | a, | |
b | |||
) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, INT_MIN, INT_MAX) |
Definition at line 132 of file internal.h.
#define MUL_OVERFLOW_LONG_LONG_P | ( | a, | |
b | |||
) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LLONG_MIN, LLONG_MAX) |
Definition at line 130 of file internal.h.
#define MUL_OVERFLOW_LONG_P | ( | a, | |
b | |||
) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LONG_MIN, LONG_MAX) |
Definition at line 131 of file internal.h.
#define MUL_OVERFLOW_SIGNED_INTEGER_P | ( | a, | |
b, | |||
min, | |||
max | |||
) |
Definition at line 107 of file internal.h.
#define NEW_CMP_OPT_MEMO | ( | type, | |
value | |||
) | NEW_PARTIAL_MEMO_FOR(type, value, cmp_opt) |
Definition at line 994 of file internal.h.
#define NEW_MEMO_FOR | ( | type, | |
value | |||
) | ((value) = rb_ary_tmp_new_fill(type_roomof(type, VALUE)), MEMO_FOR(type, value)) |
Definition at line 968 of file internal.h.
#define NEW_PARTIAL_MEMO_FOR | ( | type, | |
value, | |||
member | |||
) |
Definition at line 970 of file internal.h.
#define NEWOBJ_OF | ( | obj, | |
type, | |||
klass, | |||
flags | |||
) | RB_NEWOBJ_OF(obj,type,klass,flags) |
Definition at line 1254 of file internal.h.
#define numberof | ( | array | ) | ((int)(sizeof(array) / sizeof((array)[0]))) |
Definition at line 66 of file internal.h.
#define OBJ_BUILTIN_TYPE | ( | obj | ) | RB_OBJ_BUILTIN_TYPE(obj) |
Definition at line 1945 of file internal.h.
#define OPTIMIZED_CMP | ( | a, | |
b, | |||
data | |||
) |
Definition at line 1004 of file internal.h.
#define PRI_BDIGIT_DBL_PREFIX PRI_LL_PREFIX |
Definition at line 531 of file internal.h.
#define PRI_BDIGIT_PREFIX "" |
Definition at line 530 of file internal.h.
#define PRIdBDIGIT PRI_BDIGIT_PREFIX"d" |
Definition at line 561 of file internal.h.
#define PRIdBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"d" |
Definition at line 570 of file internal.h.
#define PRIiBDIGIT PRI_BDIGIT_PREFIX"i" |
Definition at line 562 of file internal.h.
#define PRIiBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"i" |
Definition at line 571 of file internal.h.
#define PRIoBDIGIT PRI_BDIGIT_PREFIX"o" |
Definition at line 563 of file internal.h.
#define PRIoBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"o" |
Definition at line 572 of file internal.h.
#define PRIuBDIGIT PRI_BDIGIT_PREFIX"u" |
Definition at line 564 of file internal.h.
#define PRIuBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"u" |
Definition at line 573 of file internal.h.
#define PRIxBDIGIT PRI_BDIGIT_PREFIX"x" |
Definition at line 565 of file internal.h.
#define PRIXBDIGIT PRI_BDIGIT_PREFIX"X" |
Definition at line 566 of file internal.h.
#define PRIxBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"x" |
Definition at line 574 of file internal.h.
#define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X" |
Definition at line 575 of file internal.h.
#define QUOTE | ( | str | ) | rb_str_quote_unprintable(str) |
Definition at line 1635 of file internal.h.
Referenced by rb_f_untrace_var(), and rb_path_to_class().
#define QUOTE_ID | ( | id | ) | rb_id_quote_unprintable(id) |
Definition at line 1636 of file internal.h.
Referenced by rb_autoload_str(), rb_const_set(), rb_const_warn_if_deprecated(), rb_cvar_get(), rb_cvar_set(), rb_f_untrace_var(), rb_gvar_readonly_setter(), rb_gvar_undef_getter(), and rb_ivar_get().
#define rb_cBignum rb_cInteger |
Definition at line 979 of file internal.h.
Referenced by Init_Bignum().
#define rb_cFixnum rb_cInteger |
Definition at line 978 of file internal.h.
#define rb_float_new | ( | d | ) | rb_float_new_inline(d) |
Definition at line 1449 of file internal.h.
Referenced by generic_to_value().
#define rb_float_value | ( | v | ) | rb_float_value_inline(v) |
Definition at line 1448 of file internal.h.
#define rb_fstring_lit | ( | str | ) | rb_fstring_new((str), rb_strlen_lit(str)) |
Definition at line 1608 of file internal.h.
#define rb_fstring_literal | ( | str | ) | rb_fstring_lit(str) |
Definition at line 1609 of file internal.h.
#define rb_key_err_raise | ( | mesg, | |
recv, | |||
name | |||
) | rb_exc_raise(rb_key_err_new(mesg, recv, name)) |
Definition at line 1171 of file internal.h.
#define RB_MAX_GROUPS (65536) |
Definition at line 1514 of file internal.h.
#define rb_name_err_raise | ( | mesg, | |
recv, | |||
name | |||
) | rb_name_err_raise_str(rb_fstring_cstr(mesg), (recv), (name)) |
Definition at line 1168 of file internal.h.
Referenced by rb_const_remove(), rb_cvar_get(), rb_deprecate_constant(), rb_mod_remove_const(), and rb_mod_remove_cvar().
#define rb_name_err_raise_str | ( | mesg, | |
recv, | |||
name | |||
) | rb_exc_raise(rb_name_err_new(mesg, recv, name)) |
Definition at line 1166 of file internal.h.
Referenced by rb_method_name_error(), rb_print_inaccessible(), rb_print_undef(), and rb_print_undef_str().
#define RB_NEWOBJ_OF | ( | obj, | |
type, | |||
klass, | |||
flags | |||
) |
Definition at line 1250 of file internal.h.
#define RB_OBJ_BUILTIN_TYPE | ( | obj | ) | rb_obj_builtin_type(obj) |
Definition at line 1944 of file internal.h.
#define RB_OBJ_GC_FLAGS_MAX 5 |
Definition at line 1919 of file internal.h.
#define rb_raise_cstr | ( | etype, | |
mesg | |||
) | rb_exc_raise(rb_exc_new_str(etype, rb_str_new_cstr(mesg))) |
Definition at line 1160 of file internal.h.
#define rb_raise_static | ( | etype, | |
mesg | |||
) | rb_exc_raise(rb_exc_new_str(etype, rb_str_new_static(mesg, rb_strlen_lit(mesg)))) |
Definition at line 1162 of file internal.h.
#define rb_sys_fail_path | ( | path | ) | rb_sys_fail_str(path) |
Definition at line 1216 of file internal.h.
Referenced by rb_io_set_nonblock().
#define rb_syserr_fail_path | ( | err, | |
path | |||
) | rb_syserr_fail_str((err), (path)) |
Definition at line 1217 of file internal.h.
#define RBASIC_CLEAR_CLASS | ( | obj | ) | memset(&(((struct RBasicRaw *)((VALUE)(obj)))->klass), 0, sizeof(VALUE)) |
Definition at line 1469 of file internal.h.
Referenced by rb_apply(), rb_hash_bulk_insert(), rb_obj_hide(), and rb_str_vcatf().
#define RBASIC_SET_CLASS | ( | obj, | |
cls | |||
) |
Definition at line 1471 of file internal.h.
Referenced by rb_obj_reveal(), and rb_obj_setup().
#define RBASIC_SET_CLASS_RAW | ( | obj, | |
cls | |||
) | memcpy(&((struct RBasicRaw *)((VALUE)(obj)))->klass, &(cls), sizeof(VALUE)) |
Definition at line 1470 of file internal.h.
Definition at line 622 of file internal.h.
#define RCLASS_CALLABLE_M_TBL | ( | c | ) | (RCLASS_EXT(c)->callable_m_tbl) |
Definition at line 792 of file internal.h.
#define RCLASS_CONST_TBL | ( | c | ) | (RCLASS_EXT(c)->const_tbl) |
Definition at line 790 of file internal.h.
Referenced by rb_const_lookup(), rb_const_remove(), rb_const_set(), and rb_mod_const_at().
#define RCLASS_EXT | ( | c | ) | (RCLASS(c)->ptr) |
Definition at line 788 of file internal.h.
#define RCLASS_IV_INDEX_TBL | ( | c | ) | (RCLASS_EXT(c)->iv_index_tbl) |
Definition at line 793 of file internal.h.
#define RCLASS_IV_TBL | ( | c | ) | (RCLASS_EXT(c)->iv_tbl) |
Definition at line 789 of file internal.h.
Referenced by rb_autoload_str(), rb_class_ivar_set(), rb_class_path_cached(), rb_ivar_count(), rb_ivar_defined(), rb_ivar_lookup(), rb_mod_remove_cvar(), rb_obj_remove_instance_variable(), and rb_singleton_class_attached().
#define RCLASS_M_TBL | ( | c | ) | (RCLASS(c)->m_tbl) |
Definition at line 791 of file internal.h.
Referenced by rb_class_has_methods(), rb_obj_singleton_methods(), and rb_undef_methods_from().
#define RCLASS_ORIGIN | ( | c | ) | (RCLASS_EXT(c)->origin_) |
Definition at line 794 of file internal.h.
Referenced by rb_freeze_singleton_class(), rb_mod_ancestors(), rb_mod_included_modules(), and rb_obj_singleton_methods().
#define RCLASS_REFINED_CLASS | ( | c | ) | (RCLASS_EXT(c)->refined_class) |
Definition at line 795 of file internal.h.
#define RCLASS_SERIAL | ( | c | ) | (RCLASS_EXT(c)->class_serial) |
Definition at line 796 of file internal.h.
Definition at line 647 of file internal.h.
#define RCOMPLEX_SET_IMAG | ( | cmp, | |
i | |||
) | RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i)) |
Definition at line 653 of file internal.h.
#define RCOMPLEX_SET_REAL | ( | cmp, | |
r | |||
) | RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r)) |
Definition at line 652 of file internal.h.
Definition at line 639 of file internal.h.
Definition at line 663 of file internal.h.
Referenced by rb_hash_aref(), rb_hash_aset(), rb_hash_assoc(), rb_hash_bulk_insert(), rb_hash_compare_by_id_p(), rb_hash_delete_entry(), rb_hash_foreach(), rb_hash_has_key(), rb_hash_keys(), rb_hash_lookup2(), rb_hash_new_with_size(), rb_hash_values(), and rb_ident_hash_new().
#define RHASH_IFNONE | ( | h | ) | (RHASH(h)->ifnone) |
Definition at line 670 of file internal.h.
#define RHASH_ITER_LEV | ( | h | ) | (RHASH(h)->iter_lev) |
Definition at line 669 of file internal.h.
#define RHASH_SIZE | ( | h | ) | (RHASH(h)->ntbl ? RHASH(h)->ntbl->num_entries : (st_index_t)0) |
Definition at line 671 of file internal.h.
#define RHASH_TBL_RAW | ( | h | ) | rb_hash_tbl_raw(h) |
Definition at line 1268 of file internal.h.
#define RICLASS_IS_ORIGIN FL_USER5 |
Definition at line 798 of file internal.h.
#define roomof | ( | x, | |
y | |||
) | (((x) + (y) - 1) / (y)) |
Definition at line 965 of file internal.h.
Referenced by rb_alloc_tmp_buffer().
#define ROUND_CALL | ( | mode, | |
name, | |||
args | |||
) |
Definition at line 1336 of file internal.h.
#define ROUND_DEFAULT RUBY_NUM_ROUND_HALF_UP |
Definition at line 1323 of file internal.h.
#define ROUND_FUNC | ( | mode, | |
name | |||
) | ROUND_TO(mode, name##_half_even, name##_half_up, name##_half_down) |
Definition at line 1334 of file internal.h.
#define ROUND_TO | ( | mode, | |
even, | |||
up, | |||
down | |||
) |
Definition at line 1331 of file internal.h.
Definition at line 630 of file internal.h.
#define RRATIONAL_SET_DEN | ( | rat, | |
d | |||
) | RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->den,(d)) |
Definition at line 632 of file internal.h.
#define RRATIONAL_SET_NUM | ( | rat, | |
n | |||
) | RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->num,(n)) |
Definition at line 631 of file internal.h.
Definition at line 714 of file internal.h.
#define RSTRUCT_CONST_PTR | ( | st | ) | rb_struct_const_ptr(st) |
Definition at line 710 of file internal.h.
#define RSTRUCT_EMBED_LEN | ( | st | ) |
Definition at line 705 of file internal.h.
#define RSTRUCT_EMBED_LEN_MASK RSTRUCT_EMBED_LEN_MASK |
Definition at line 680 of file internal.h.
#define RSTRUCT_EMBED_LEN_MAX RSTRUCT_EMBED_LEN_MAX |
Definition at line 679 of file internal.h.
#define RSTRUCT_EMBED_LEN_SHIFT RSTRUCT_EMBED_LEN_SHIFT |
Definition at line 681 of file internal.h.
#define RSTRUCT_GET | ( | st, | |
idx | |||
) | (RSTRUCT_CONST_PTR(st)[idx]) |
Definition at line 713 of file internal.h.
#define RSTRUCT_LEN | ( | st | ) | rb_struct_len(st) |
Definition at line 708 of file internal.h.
#define RSTRUCT_LENINT | ( | st | ) | rb_long2int(RSTRUCT_LEN(st)) |
Definition at line 709 of file internal.h.
#define RSTRUCT_PTR | ( | st | ) | ((VALUE *)RSTRUCT_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(STRUCT, st))) |
Definition at line 711 of file internal.h.
#define RSTRUCT_SET | ( | st, | |
idx, | |||
v | |||
) | RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[idx], (v)) |
Definition at line 712 of file internal.h.
#define RUBY_BIT_ROTL | ( | v, | |
n | |||
) | (((v) << (n)) | ((v) >> ((sizeof(v) * 8) - n))) |
Definition at line 1378 of file internal.h.
#define RUBY_BIT_ROTR | ( | v, | |
n | |||
) | (((v) >> (n)) | ((v) << ((sizeof(v) * 8) - n))) |
Definition at line 1379 of file internal.h.
#define RUBY_DTRACE_CREATE_HOOK | ( | name, | |
arg | |||
) | RUBY_DTRACE_HOOK(name##_CREATE, arg) |
Definition at line 1932 of file internal.h.
Referenced by rb_str_resurrect().
#define RUBY_DTRACE_HOOK | ( | name, | |
arg | |||
) |
Definition at line 1934 of file internal.h.
Referenced by rb_clear_method_cache_by_class(), and rb_require_internal().
#define SERIALT2NUM ULONG2NUM |
Definition at line 752 of file internal.h.
#define SIGNED_INTEGER_MAX | ( | sint_type | ) |
Definition at line 83 of file internal.h.
#define SIGNED_INTEGER_MIN | ( | sint_type | ) | (-SIGNED_INTEGER_MAX(sint_type)-1) |
Definition at line 87 of file internal.h.
#define SIGNED_INTEGER_TYPE_P | ( | int_type | ) | (0 > ((int_type)0)-1) |
Definition at line 82 of file internal.h.
#define SIZED_REALLOC_N | ( | var, | |
type, | |||
n, | |||
old_n | |||
) | ((var)=(type*)ruby_sized_xrealloc((char*)(var), (n) * sizeof(type), (old_n) * sizeof(type))) |
Definition at line 1244 of file internal.h.
#define SIZEOF_ACTUAL_BDIGIT SIZEOF_BDIGIT |
Definition at line 557 of file internal.h.
#define SIZEOF_BDIGIT SIZEOF_INT |
Definition at line 527 of file internal.h.
Definition at line 79 of file internal.h.
#define STR_EMBED_P | ( | str | ) | (!FL_TEST_RAW((str), STR_NOEMBED)) |
Definition at line 1652 of file internal.h.
Referenced by rb_fstring(), rb_str_free(), and rb_str_tmp_frozen_release().
#define STR_NOEMBED FL_USER1 |
Definition at line 1650 of file internal.h.
Referenced by rb_str_memsize().
#define STR_SHARED FL_USER2 /* = ELTS_SHARED */ |
Definition at line 1651 of file internal.h.
Referenced by rb_str_free(), rb_str_memsize(), and rb_str_tmp_frozen_release().
#define STR_SHARED_P | ( | s | ) | FL_ALL_RAW((s), STR_NOEMBED|ELTS_SHARED) |
Definition at line 1653 of file internal.h.
#define STRING_P | ( | s | ) | (RB_TYPE_P((s), T_STRING) && CLASS_OF(s) == rb_cString) |
Definition at line 975 of file internal.h.
#define swap16 | ( | x | ) | ((uint16_t)((((x)&0xFF)<<8) | (((x)>>8)&0xFF))) |
Definition at line 142 of file internal.h.
#define swap32 | ( | x | ) |
Definition at line 152 of file internal.h.
#define THROW_DATA_CONSUMED IMEMO_FL_USER0 |
Definition at line 892 of file internal.h.
Definition at line 903 of file internal.h.
#define TIMET_MAX_PLUS_ONE (2*(double)(TIMET_MAX/2+1)) |
Definition at line 97 of file internal.h.
#define true 1 |
Definition at line 37 of file internal.h.
#define type_roomof | ( | x, | |
y | |||
) | roomof(sizeof(x), sizeof(y)) |
Definition at line 966 of file internal.h.
#define UNLIKELY | ( | x | ) | RB_UNLIKELY(x) |
Definition at line 43 of file internal.h.
Referenced by rb_jump_tag(), rb_str_concat_literals(), and ruby_register_rollback_func_for_ensure().
#define UNSIGNED_INTEGER_MAX | ( | uint_type | ) | (~(uint_type)0) |
Definition at line 88 of file internal.h.
#define USE_SYMBOL_GC 1 |
Definition at line 1478 of file internal.h.
#define VALGRIND_MAKE_MEM_DEFINED | ( | p, | |
n | |||
) | 0 |
Definition at line 62 of file internal.h.
#define VALGRIND_MAKE_MEM_UNDEFINED | ( | p, | |
n | |||
) | 0 |
Definition at line 63 of file internal.h.
#define WARN_UNUSED_RESULT | ( | x | ) | x |
Definition at line 50 of file internal.h.
Definition at line 1777 of file internal.h.
typedef struct rb_classext_struct rb_classext_t |
Definition at line 774 of file internal.h.
typedef struct rb_imemo_alloc_struct rb_imemo_alloc_t |
typedef unsigned long rb_serial_t |
Definition at line 751 of file internal.h.
typedef struct rb_subclass_entry rb_subclass_entry_t |
Definition at line 737 of file internal.h.
anonymous enum |
Enumerator | |
---|---|
RSTRUCT_EMBED_LEN_MAX | |
RSTRUCT_EMBED_LEN_MASK | |
RSTRUCT_EMBED_LEN_SHIFT | |
RSTRUCT_ENUM_END |
Definition at line 682 of file internal.h.
anonymous enum |
Enumerator | |
---|---|
cmp_opt_Fixnum | |
cmp_opt_String | |
cmp_opt_Float | |
cmp_optimizable_count |
Definition at line 982 of file internal.h.
enum imemo_type |
Enumerator | |
---|---|
imemo_env | |
imemo_cref | class reference |
imemo_svar | special variable |
imemo_throw_data | |
imemo_ifunc | iterator function |
imemo_memo | |
imemo_ment | |
imemo_iseq | |
imemo_alloc |
Definition at line 838 of file internal.h.
enum rb_int_parse_flags |
Enumerator | |
---|---|
RB_INT_PARSE_SIGN | |
RB_INT_PARSE_UNDERSCORE | |
RB_INT_PARSE_PREFIX | |
RB_INT_PARSE_ALL | |
RB_INT_PARSE_DEFAULT |
Definition at line 1834 of file internal.h.
Enumerator | |
---|---|
RUBY_NUM_ROUND_HALF_UP | |
RUBY_NUM_ROUND_HALF_EVEN | |
RUBY_NUM_ROUND_HALF_DOWN | |
RUBY_NUM_ROUND_DEFAULT |
Definition at line 1325 of file internal.h.
CONSTFUNC | ( | const char * | rb_insns_nameint i | ) |
CONSTFUNC | ( | void | rb_gc_mark_encodingsvoid | ) |
CONSTFUNC | ( | VALUE | rb_obj_equalVALUE obj1, VALUE obj2 | ) |
CONSTFUNC | ( | VALUE | rb_obj_notVALUE obj | ) |
void Init_BareVM | ( | void | ) |
Definition at line 3122 of file vm.c.
References EXIT_FAILURE, MEMZERO, rb_thread_set_current_raw, and ruby_mimmalloc().
Referenced by ruby_setup().
void Init_enc | ( | void | ) |
Definition at line 5 of file dmyenc.c.
References rb_encdb_alias(), rb_encdb_declare(), and require.
int Init_enc_set_filesystem_encoding | ( | void | ) |
Definition at line 118 of file localeinit.c.
References alias, ENCINDEX_ASCII, ENCINDEX_US_ASCII, ENCINDEX_UTF_8, name, rb_default_external_encoding(), rb_enc_find_index(), rb_enc_to_index(), rb_encdb_alias(), and rb_encdb_declare().
void Init_eval_method | ( | void | ) |
Definition at line 2086 of file vm_method.c.
References rb_define_method(), and rb_mKernel.
void Init_File | ( | void | ) |
Definition at line 6081 of file file.c.
References rb_cFile, rb_cIO, rb_define_class(), rb_define_module(), and rb_mFileTest.
void Init_heap | ( | void | ) |
void Init_native_thread | ( | void | ) |
void Init_newline | ( | void | ) |
void Init_prelude | ( | void | ) |
void Init_vm_backtrace | ( | void | ) |
Definition at line 986 of file vm_backtrace.c.
void Init_vm_eval | ( | void | ) |
Definition at line 2155 of file vm_eval.c.
References rb_define_global_function(), and rb_f_eval().
void Init_vm_objects | ( | void | ) |
Definition at line 3145 of file vm.c.
References rb_vm_struct::defined_module_hash, rb_vm_struct::frozen_strings, GET_VM, rb_vm_struct::loading_table, rb_vm_struct::mark_object_ary, rb_ary_tmp_new(), rb_hash_new(), st_init_strtable, and st_init_table_with_size.
Referenced by ruby_setup().
NORETURN | ( | void | rb_async_bug_errnoconst char *, int | ) |
NORETURN | ( | void | ruby_deprecated_internal_featureconst char * | ) |
NORETURN | ( | void | rb_load_failVALUE, const char * | ) |
NORETURN | ( | void | rb_undefined_allocVALUE klass | ) |
NORETURN | ( | void | rb_unexpected_typeVALUE, int | ) |
PRINTF_ARGS | ( | void | ruby_debug_printfconst char *,..., |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | void | rb_sys_warnconst char *fmt,..., |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | void | rb_syserr_warnint err, const char *fmt,..., |
2 | , | ||
3 | |||
) |
PRINTF_ARGS | ( | void | rb_enc_warnrb_encoding *enc, const char *fmt,..., |
2 | , | ||
3 | |||
) |
PRINTF_ARGS | ( | void | rb_syserr_enc_warnint err, rb_encoding *enc, const char *fmt,..., |
3 | , | ||
4 | |||
) |
PUREFUNC | ( | int | rb_data_is_encodingVALUE obj | ) |
PUREFUNC | ( | int | rb_is_const_symVALUE sym | ) |
PUREFUNC | ( | VALUE | rb_vm_top_selfvoid | ) |
PUREFUNC | ( | st_table * | rb_vm_fstring_tablevoid | ) |
Definition at line 1332 of file array.c.
References NUM2LONG, and rb_ary_entry().
Referenced by rb_ary_dig().
Definition at line 3036 of file array.c.
References RARRAY_AREF, RARRAY_LEN, and rb_ary_store().
Definition at line 1380 of file array.c.
References Qnil, RARRAY_AREF, and RARRAY_LEN.
Referenced by rb_gc_register_mark_object().
size_t rb_ary_memsize | ( | VALUE | ) |
Definition at line 571 of file array.c.
References ARY_CAPA, and ARY_OWNS_HEAP_P.
void rb_ary_set_len | ( | VALUE | , |
long | |||
) |
Definition at line 1625 of file array.c.
Referenced by rb_hash_keys(), and rb_hash_values().
Definition at line 1266 of file variable.c.
Definition at line 1895 of file variable.c.
References Check_Type, PRIsVALUE, Qundef, QUOTE_ID, rb_const_lookup(), rb_const_set(), rb_eArgError, rb_eNameError, rb_is_const_id(), rb_raise(), RCLASS_IV_TBL, RSTRING_LEN, st_data_t, st_lookup, T_STRING, and rb_const_entry_struct::value.
Referenced by rb_autoload().
void rb_backref_set_string | ( | VALUE | string, |
long | pos, | ||
long | len | ||
) |
Definition at line 796 of file vm_backtrace.c.
int rb_backtrace_p | ( | VALUE | obj | ) |
Definition at line 410 of file vm_backtrace.c.
References rb_typeddata_is_kind_of().
Referenced by rb_check_backtrace().
void rb_backtrace_print_as_bugreport | ( | void | ) |
Definition at line 754 of file vm_backtrace.c.
References oldbt_arg::func.
Referenced by rb_vm_bugreport().
Definition at line 625 of file vm_backtrace.c.
References GetCoreDataFromValue, and rb_backtrace_struct::locary.
Definition at line 578 of file vm_backtrace.c.
References bt_iter_arg::bt, GetCoreDataFromValue, and rb_backtrace_struct::strary.
Definition at line 6700 of file bignum.c.
References BIGNUM_NEGATIVE_P, BIGNUM_SET_POSITIVE_SIGN, and rb_big_clone().
Definition at line 6728 of file bignum.c.
References BDIGIT, bdigit_roomof, BIGNUM_NEGATIVE_P, CHAR_BIT, LONG2FIX, rb_absint_singlebit_p(), rb_absint_size(), SIZE_MAX, and SIZET2NUM.
Definition at line 5512 of file bignum.c.
References BDIGIT, BDIGITS, BIGNUM_LEN, BIGNUM_POSITIVE_P, INT2FIX, and rb_big_clone().
Definition at line 2696 of file bignum.c.
References BARY_TRUNC, BDIGIT, BDIGITS, BIGDIVREM_EXTRA_WORDS, bignew, BIGNUM_LEN, BIGNUM_SIGN, LONG2FIX, rb_assoc_new(), rb_num_zerodiv(), and big_div_struct::yn.
Definition at line 6778 of file bignum.c.
References BDIGIT, BDIGIT_DBL, BDIGITS, BIGNUM_LEN, Qfalse, Qtrue, rb_bdigit_dbl_isqrt, and rb_ulong_isqrt().
Definition at line 6154 of file bignum.c.
Referenced by rb_big_fdiv().
Definition at line 1671 of file bignum.c.
References bignew, BIGNUM_LEN, and BIGNUM_SIGN.
Definition at line 1852 of file bignum.c.
References bignew, BIGNUM_LEN, BIGNUM_SIGN, KARATSUBA_BALANCED, rb_eArgError, and rb_raise().
Definition at line 1543 of file bignum.c.
References bignew, BIGNUM_LEN, and BIGNUM_SIGN.
Definition at line 2249 of file bignum.c.
References bignew, BIGNUM_LEN, BIGNUM_SIGN, rb_eArgError, rb_raise(), and TOOM3_BALANCED.
Definition at line 6064 of file bignum.c.
References FIX2LONG, FIXNUM_P, RB_BIGNUM_TYPE_P, rb_int2big(), rb_intern, and rb_num_coerce_bin().
size_t rb_big_size | ( | VALUE | ) |
Definition at line 6722 of file bignum.c.
References rb_big_size(), and SIZET2NUM.
Definition at line 1612 of file bignum.c.
References bignew, and BIGNUM_LEN.
Definition at line 5502 of file bignum.c.
References BIGNUM_NEGATE, and rb_big_clone().
int rb_block_min_max_arity | ( | int * | max | ) |
Definition at line 1070 of file proc.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, GET_THREAD, rb_eArgError, rb_raise(), rb_vm_frame_block_handler(), and VM_BLOCK_HANDLER_NONE.
Definition at line 1248 of file proc.c.
References PRIsVALUE, rb_obj_class(), and rb_sprintf().
void rb_call_end_proc | ( | VALUE | data | ) |
Definition at line 11 of file eval_jump.c.
References rb_ary_new(), and rb_proc_call().
void rb_call_inits | ( | void | ) |
Definition at line 395 of file vm_eval.c.
References CLASS_OF, GET_THREAD, and rescue_funcall_args::me.
Referenced by rb_check_funcall(), and rb_get_path_check_to_string().
VALUE rb_check_funcall_with_hook | ( | VALUE | recv, |
ID | mid, | ||
int | argc, | ||
const VALUE * | argv, | ||
rb_check_funcall_hook * | hook, | ||
VALUE | arg | ||
) |
Definition at line 417 of file vm_eval.c.
References CLASS_OF, GET_THREAD, and rescue_funcall_args::me.
Definition at line 4086 of file file.c.
Referenced by rb_file_s_absolute_path().
Definition at line 3104 of file variable.c.
References RCLASS_IV_TBL.
Referenced by rb_singleton_class_attached().
void rb_clear_trace_func | ( | void | ) |
Definition at line 206 of file vm_trace.c.
References GET_VM, and rb_vm_struct::living_threads.
Referenced by ruby_options().
Definition at line 1747 of file variable.c.
References rb_funcallv, rb_intern, and rb_vm_inc_const_missing_count().
Definition at line 6104 of file gc.c.
References rb_objspace.
Definition at line 4219 of file bignum.c.
References NULL, rb_int_parse_cstr(), and RB_INT_PARSE_DEFAULT.
Referenced by rb_cstr_to_inum(), and rb_str_to_inum().
Definition at line 2559 of file rational.c.
VALUE rb_current_realfilepath | ( | void | ) |
Definition at line 2145 of file vm_eval.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, and GET_THREAD.
Referenced by rb_f_require_relative().
VALUE rb_dbl_hash | ( | double | d | ) |
Definition at line 1419 of file numeric.c.
References LONG2FIX, and rb_dbl_long_hash().
long rb_dbl_long_hash | ( | double | d | ) |
Definition at line 144 of file hash.c.
References rb_hash_start(), rb_memhash(), and rb_objid_hash().
Referenced by rb_dbl_hash().
Definition at line 3327 of file file.c.
Referenced by rb_file_expand_path_internal().
Definition at line 2749 of file variable.c.
References CONST_DEPRECATED, rb_const_entry_struct::flag, id, len, NULL, rb_check_id_cstr(), rb_const_lookup(), rb_frozen_class_p(), rb_fstring_new(), rb_name_err_raise, and strlen().
Referenced by Init_Bignum().
VALUE rb_dir_getwd_ospath | ( | void | ) |
Definition at line 1089 of file dir.c.
References DATA_PTR, Data_Wrap_Struct, my_getcwd, NULL, OBJ_TAINT, dir_data::path, Qnil, rb_tainted_str_new2, RUBY_DEFAULT_FREE, strlen(), and xfree().
Referenced by rb_dir_getwd().
int rb_divert_reserved_fd | ( | int | fd | ) |
size_t rb_econv_memsize | ( | rb_econv_t * | ) |
Definition at line 1716 of file transcode.c.
References rb_econv_t::num_trans, rb_econv_t::replacement_allocated, rb_econv_t::replacement_len, and size.
Referenced by rb_io_memsize().
rb_encoding* rb_enc_check_str | ( | VALUE | str1, |
VALUE | str2 | ||
) |
Definition at line 868 of file encoding.c.
Referenced by rb_str_plus().
rb_encoding* rb_enc_get_from_index | ( | int | index | ) |
Definition at line 628 of file encoding.c.
Definition at line 389 of file encoding.c.
References rb_enc_registered().
int rb_enc_set_dummy | ( | int | index | ) |
Definition at line 400 of file encoding.c.
Definition at line 572 of file encoding.c.
void rb_encdb_declare | ( | const char * | name | ) |
Definition at line 357 of file encoding.c.
int rb_encdb_dummy | ( | const char * | name | ) |
Definition at line 476 of file encoding.c.
Definition at line 454 of file encoding.c.
References rb_enc_registered().
void rb_encdb_set_unicode | ( | int | index | ) |
Definition at line 583 of file encoding.c.
References ONIGENC_FLAG_UNICODE, and rb_enc_from_index().
Definition at line 1447 of file vm_insnhelper.c.
References rb_call_cache::class_serial, idEqlP, rb_call_cache::me, rb_call_cache::method_state, rb_call_info::mid, and NULL.
Definition at line 1434 of file vm_insnhelper.c.
References rb_call_cache::class_serial, idEq, rb_call_cache::me, rb_call_cache::method_state, rb_call_info::mid, and NULL.
int rb_exec_async_signal_safe | ( | const struct rb_execarg * | e, |
char * | errmsg, | ||
size_t | errmsg_buflen | ||
) |
Definition at line 3150 of file process.c.
References NULL, rb_execarg_run_options(), and rb_execarg::use_shell.
Definition at line 1669 of file process.c.
References id, rb_execarg::new_pgroup_flag, rb_execarg::new_pgroup_given, NUM2PIDT, rb_execarg::pgroup_given, rb_execarg::pgroup_pgid, Qtrue, rb_check_id(), rb_eArgError, rb_execarg_get(), RB_GC_GUARD, rb_raise(), RTEST, ST_CONTINUE, ST_STOP, T_SYMBOL, and TYPE.
Definition at line 1928 of file process.c.
References Qnil, rb_hash_tbl_raw(), RHASH_EMPTY_P, and st_foreach.
struct rb_execarg* rb_execarg_get | ( | VALUE | execarg_obj | ) |
Definition at line 2268 of file process.c.
References TypedData_Get_Struct.
Referenced by rb_execarg_addopt(), rb_execarg_init(), rb_execarg_setenv(), and rb_f_exec().
Definition at line 2276 of file process.c.
References ALLOCV_N, argv, rb_execarg::argv_buf, env, MEMCPY, Qnil, and rb_execarg_get().
Definition at line 2257 of file process.c.
References rb_cData, and TypedData_Make_Struct.
Referenced by rb_f_exec().
void rb_execarg_parent_start | ( | VALUE | execarg_obj | ) |
Definition at line 2457 of file process.c.
References rb_protect().
int rb_execarg_run_options | ( | const struct rb_execarg * | e, |
struct rb_execarg * | s, | ||
char * | errmsg, | ||
size_t | errmsg_buflen | ||
) |
Definition at line 3021 of file process.c.
References MEMZERO, rb_execarg::pgroup_given, Qfalse, Qnil, rb_execarg::redirect_fds, rb_execarg::rlimit_limits, rb_execarg::unsetenv_others_do, and rb_execarg::unsetenv_others_given.
Referenced by rb_exec_async_signal_safe().
Definition at line 2293 of file process.c.
References NIL_P, and rb_execarg_get().
void rb_fiber_reset_root_local_storage | ( | VALUE | ) |
Definition at line 1612 of file cont.c.
Referenced by ruby_vm_destruct().
Definition at line 5713 of file file.c.
References rb_define_const().
Definition at line 3782 of file file.c.
References expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_feature_provided().
Definition at line 3397 of file file.c.
References buf, BUFCHECK, BUFINIT, ENC_CODERANGE_CLEAR, isdirsep, nextdirsep, NIL_P, OBJ_TAINTED, PRIsVALUE, Qnil, rb_default_home_dir(), rb_eArgError, rb_enc_associate(), rb_enc_copy(), rb_enc_get(), rb_enc_raise(), rb_file_expand_path_internal(), rb_filesystem_encoding(), rb_home_dir_of(), rb_is_absolute_path(), rb_raise(), rb_str_set_len(), RSTRING_LEN, RSTRING_PTR, StringValuePtr, and TOLOWER.
Referenced by rb_file_expand_path_internal().
int rb_file_load_ok | ( | const char * | ) |
Definition at line 5852 of file file.c.
References free(), INVALID_FILE_ATTRIBUTES, len, mbstr_to_wstr, NULL, O_NONBLOCK, rb_cloexec_open(), rb_update_max_fd(), and ruby_is_fd_loadable().
Definition at line 1692 of file numeric.c.
References DBL2NUM, RFLOAT_VALUE, and val.
Definition at line 1378 of file numeric.c.
References isnan, Qfalse, rb_integer_float_eq(), RB_TYPE_P, RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, and T_FLOAT.
Definition at line 1497 of file numeric.c.
References FIX2INT, FIXNUM_P, isnan, Qfalse, Qtrue, rb_integer_float_cmp(), rb_num_coerce_relop(), RB_TYPE_P, RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, and T_FLOAT.
Definition at line 1293 of file numeric.c.
References FIX2LONG, rb_big2dbl(), RB_TYPE_P, RFLOAT_VALUE, round(), T_BIGNUM, T_FIXNUM, and T_FLOAT.
Definition at line 1038 of file numeric.c.
References DBL2NUM, and RFLOAT_VALUE.
rb_pid_t rb_fork_async_signal_safe | ( | int * | status, |
int(*)(void *, char *, size_t) | chfunc, | ||
void * | charg, | ||
VALUE | fds, | ||
char * | errmsg, | ||
size_t | errmsg_buflen | ||
) |
rb_pid_t rb_fork_ruby | ( | int * | status | ) |
Definition at line 306 of file string.c.
References BARE_STRING_P, Check_Type, FL_TEST, OBJ_FREEZE_RAW, RSTRING_FSTR, STR_EMBED_P, and T_STRING.
Referenced by rb_iseq_pathobj_new().
Definition at line 388 of file string.c.
References rb_fstring_new(), and strlen().
Referenced by rb_autoload(), rb_insns_name_array(), rb_iseq_new_main(), and ruby_set_inplace_mode().
Definition at line 374 of file string.c.
Referenced by rb_deprecate_constant(), and rb_fstring_cstr().
VALUE rb_func_lambda_new | ( | rb_block_call_func_t | func, |
VALUE | val, | ||
int | min_argc, | ||
int | max_argc | ||
) |
Definition at line 676 of file proc.c.
References rb_vm_ifunc_new().
VALUE rb_func_proc_new | ( | rb_block_call_func_t | func, |
VALUE | val | ||
) |
int rb_gc_for_fd | ( | int | err | ) |
void rb_gc_mark_global_tbl | ( | void | ) |
Definition at line 594 of file variable.c.
References rb_id_table_foreach_values().
Definition at line 4097 of file gc.c.
References rb_objspace.
Referenced by rb_execution_context_mark(), and rb_vm_mark().
void rb_gc_writebarrier_remember | ( | VALUE | obj | ) |
Definition at line 6041 of file gc.c.
References gc_report, and rb_objspace.
Referenced by rb_hash_keys(), and rb_hash_values().
Definition at line 1922 of file rational.c.
Referenced by rb_int_fdiv_double().
Definition at line 355 of file rational.c.
size_t rb_generic_ivar_memsize | ( | VALUE | ) |
Definition at line 1150 of file variable.c.
VALUE rb_get_expanded_load_path | ( | void | ) |
Definition at line 107 of file load.c.
References GET_VM, rb_vm_struct::load_path, rb_vm_struct::load_path_snapshot, Qtrue, and rb_ary_shared_with_p().
Definition at line 213 of file file.c.
References rb_get_path_check_convert(), and rb_get_path_check_to_string().
Referenced by rb_get_path(), rb_get_path_no_checksafe(), and rb_require_internal().
Definition at line 197 of file file.c.
Referenced by rb_get_path_check().
Definition at line 178 of file file.c.
References CONST_ID, insecure_obj_p, rb_check_funcall_default(), rb_insecure_operation(), RB_TYPE_P, StringValue, and T_STRING.
Referenced by rb_get_path_check().
struct rb_global_entry* rb_global_entry | ( | ID | ) |
Definition at line 482 of file variable.c.
References ALLOC, rb_global_variable::block_trace, rb_global_variable::counter, rb_global_variable::data, rb_global_variable::getter, id, rb_global_entry::id, rb_global_variable::marker, rb_gvar_undef_getter(), rb_gvar_undef_marker(), rb_gvar_undef_setter(), rb_id_table_insert(), rb_id_table_lookup(), rb_global_variable::setter, rb_global_variable::trace, and rb_global_entry::var.
Referenced by rb_alias_variable(), rb_f_trace_var(), rb_gv_get(), and rb_gv_set().
VALUE rb_gvar_defined | ( | struct rb_global_entry * | ) |
Definition at line 860 of file variable.c.
References rb_global_variable::getter, Qfalse, Qtrue, rb_gvar_undef_getter(), and rb_global_entry::var.
VALUE rb_gvar_get | ( | struct rb_global_entry * | ) |
Definition at line 792 of file variable.c.
References rb_global_variable::data, rb_global_variable::getter, rb_global_entry::id, and rb_global_entry::var.
VALUE rb_gvar_set | ( | struct rb_global_entry * | , |
VALUE | |||
) |
Definition at line 825 of file variable.c.
References rb_global_variable::block_trace, rb_global_variable::data, rb_global_entry::id, rb_ensure(), rb_global_variable::setter, rb_global_variable::trace, trace_data::trace, trace_data::val, val, and rb_global_entry::var.
Definition at line 3150 of file hash.c.
References rb_hash_tbl_raw().
Definition at line 2169 of file st.c.
References NULL, st_table::num_entries, rb_hash_new_with_size(), RBASIC_CLEAR_CLASS, RHASH, and st_assert.
Definition at line 803 of file hash.c.
References CLASS_OF, and rb_method_basic_definition_p().
Referenced by rb_hash_aref().
Definition at line 2131 of file hash.c.
References RARRAY_PTR_USE, rb_ary_new_capa(), rb_ary_set_len(), rb_gc_writebarrier_remember(), rb_hash_foreach(), RHASH, RHASH_SIZE, size, ST_DATA_COMPATIBLE_P, and st_keys().
VALUE rb_hash_new_with_size | ( | st_index_t | size | ) |
Definition at line 430 of file hash.c.
References rb_hash_new(), RHASH, and st_init_table_with_size.
Referenced by rb_hash_bulk_insert().
st_index_t rb_hash_proc | ( | st_index_t | hash, |
VALUE | proc | ||
) |
Definition at line 779 of file hash.c.
References rb_eRuntimeError, rb_raise(), and RHASH_ITER_LEV.
Definition at line 482 of file hash.c.
Referenced by rb_execarg_extract_options(), rb_hash_add_new_element(), and rb_reset_coverages().
Definition at line 2175 of file hash.c.
References RARRAY_PTR_USE, rb_ary_new_capa(), rb_ary_set_len(), rb_gc_writebarrier_remember(), rb_hash_foreach(), RHASH, RHASH_SIZE, size, ST_DATA_COMPATIBLE_P, and st_values().
Definition at line 3287 of file file.c.
Referenced by rb_file_expand_path_internal().
ID rb_id_encoding | ( | void | ) |
Definition at line 753 of file encoding.c.
References CONST_ID.
Definition at line 10129 of file string.c.
References rb_id2str, and rb_str_quote_unprintable().
VALUE rb_ident_hash_new | ( | void | ) |
Definition at line 2924 of file hash.c.
References rb_hash_new(), RHASH, and st_init_table.
Referenced by Init_sym(), and rb_uninterruptible().
Definition at line 2020 of file gc.c.
References FL_USHIFT, and T_IMEMO.
Referenced by rb_alloc_tmp_buffer_with_count().
st_table* rb_init_identtable | ( | void | ) |
Definition at line 2932 of file hash.c.
References st_init_table.
st_table* rb_init_identtable_with_size | ( | st_index_t | size | ) |
Definition at line 2938 of file hash.c.
References st_init_table_with_size.
VALUE rb_insns_name_array | ( | void | ) |
Definition at line 6976 of file compile.c.
References rb_ary_new(), rb_ary_push(), rb_fstring_cstr(), and rb_obj_freeze().
Definition at line 3471 of file numeric.c.
References FIXNUM_P, rb_any_to_s(), rb_big2str(), rb_fix2str(), RB_TYPE_P, and T_BIGNUM.
Definition at line 3637 of file numeric.c.
References FIXNUM_P, FIXNUM_ZERO_P, rb_gcd(), rb_int_idiv(), and RB_INTEGER_TYPE_P.
Referenced by rb_int_fdiv().
VALUE rb_int_parse_cstr | ( | const char * | str, |
ssize_t | len, | ||
char ** | endp, | ||
size_t * | ndigits, | ||
int | base, | ||
int | flags | ||
) |
Definition at line 4021 of file bignum.c.
References ADV, ASSERT_LEN, bad, ISSPACE, len, Qnil, RB_INT_PARSE_PREFIX, RB_INT_PARSE_SIGN, and val.
Referenced by rb_cstr_parse_inum().
VALUE rb_int_round | ( | VALUE | num, |
int | ndigits, | ||
enum ruby_num_rounding_mode | mode | ||
) |
Definition at line 5285 of file bignum.c.
References FIX2LONG, FIXNUM_MAX, FIXNUM_MIN, FIXNUM_P, INT2FIX, isinf(), isnan, Qnil, rb_big_cmp(), rb_dbl2big(), RFLOAT_VALUE, and big_div_struct::yn.
Referenced by rb_float_gt().
Definition at line 5335 of file bignum.c.
References FIX2LONG, FIXNUM_P, isinf(), isnan, LONG_MAX, LONG_MIN, Qfalse, Qtrue, rb_big_eq(), rb_dbl2big(), RFLOAT_VALUE, and big_div_struct::yn.
Referenced by rb_float_equal().
Definition at line 46 of file compar.c.
References rb_exec_recursive().
ssize_t rb_io_bufread | ( | VALUE | io, |
void * | buf, | ||
size_t | size | ||
) |
Definition at line 2178 of file io.c.
References bufread_arg::fptr, GetOpenFile, and rb_io_check_readable().
Definition at line 1553 of file io.c.
References binwrite_arg::fptr, rb_funcall(), RB_TYPE_P, and T_FILE.
Referenced by rb_io_flush().
Definition at line 4439 of file io.c.
References rb_io_t::cbuf, rb_econv_memsize(), rb_io_t::rbuf, rb_io_t::readconv, size, rb_io_t::wbuf, and rb_io_t::writeconv.
Definition at line 1175 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, len, Qundef, RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, st_data_t, st_lookup, T_CLASS, T_MODULE, T_OBJECT, and val.
Referenced by rb_attr_get(), and rb_ivar_get().
VALUE rb_lambda_call | ( | VALUE | obj, |
ID | mid, | ||
int | argc, | ||
const VALUE * | argv, | ||
rb_block_call_func_t | bl_proc, | ||
int | min_argc, | ||
int | max_argc, | ||
VALUE | data2 | ||
) |
Definition at line 1194 of file vm_eval.c.
References argc, iter_method_arg::argc, argv, iter_method_arg::argv, iter_method_arg::mid, iter_method_arg::obj, rb_eArgError, rb_raise(), and rb_vm_ifunc_new().
void rb_last_status_clear | ( | void | ) |
Definition at line 494 of file process.c.
References GET_THREAD, and Qnil.
Definition at line 1941 of file rational.c.
VALUE rb_make_backtrace | ( | void | ) |
Definition at line 813 of file vm_backtrace.c.
References GET_THREAD, and rb_threadptr_backtrace_str_ary().
void rb_mark_end_proc | ( | void | ) |
Definition at line 80 of file eval_jump.c.
References link().
void rb_mark_generic_ivar | ( | VALUE | ) |
Definition at line 1123 of file variable.c.
void rb_maygvl_fd_fix_cloexec | ( | int | fd | ) |
Definition at line 210 of file io.c.
References errno, F_GETFD, F_SETFD, fcntl(), FD_CLOEXEC, rb_bug(), and strerror().
Referenced by rb_cloexec_dup2(), rb_cloexec_fcntl_dupfd(), rb_cloexec_open(), rb_cloexec_pipe(), and rb_fd_fix_cloexec().
void rb_mutex_allow_trap | ( | VALUE | self, |
int | val | ||
) |
Definition at line 511 of file thread_sync.c.
References Check_TypedStruct, FL_SET_RAW, FL_UNSET_RAW, and MUTEX_ALLOW_TRAP.
Definition at line 306 of file thread_sync.c.
References GET_THREAD, GetMutexPtr, Qfalse, Qtrue, and rb_mutex_struct::th.
rb_serial_t rb_next_class_serial | ( | void | ) |
Definition at line 309 of file vm.c.
References NEXT_CLASS_SERIAL.
enum ruby_num_rounding_mode rb_num_get_rounding_option | ( | VALUE | opts | ) |
Definition at line 198 of file numeric.c.
References NIL_P, PRIsVALUE, rb_check_string_type(), rb_eArgError, rb_get_kwargs(), rb_intern_const, rb_memcicmp(), rb_raise(), rb_sym2str, RB_TYPE_P, RSTRING_LEN, RSTRING_PTR, RUBY_NUM_ROUND_DEFAULT, RUBY_NUM_ROUND_HALF_DOWN, RUBY_NUM_ROUND_HALF_EVEN, RUBY_NUM_ROUND_HALF_UP, strncasecmp, SYMBOL_P, and T_STRING.
int rb_num_to_uint | ( | VALUE | val, |
unsigned int * | ret | ||
) |
Definition at line 242 of file numeric.c.
References BIGNUM_NEGATIVE_P, FIX2LONG, FIXNUM_P, NULL, NUMERR_NEGATIVE, NUMERR_TOOLARGE, NUMERR_TYPE, rb_absint_size(), rb_big2ulong(), RB_TYPE_P, T_BIGNUM, and val.
Referenced by rb_str_concat().
Definition at line 2042 of file rational.c.
References canonicalization, rb_convert_type(), RB_FLOAT_TYPE_P, rb_funcall(), rb_intern, rb_rational_raw1, and T_RATIONAL.
Definition at line 425 of file cont.c.
References Qfalse, Qtrue, and rb_typeddata_is_kind_of().
Definition at line 127 of file thread_sync.c.
References Qfalse, Qtrue, and rb_typeddata_is_kind_of().
Definition at line 2506 of file vm.c.
References Qfalse, Qtrue, rb_typeddata_is_kind_of(), and thread_data_type.
long rb_objid_hash | ( | st_index_t | index | ) |
Definition at line 246 of file hash.c.
Referenced by rb_dbl_long_hash().
RUBY_SYMBOL_EXPORT_BEGIN const char* rb_objspace_data_type_name | ( | VALUE | obj | ) |
Definition at line 2091 of file gc.c.
References PUREFUNC(), RTYPEDDATA_P, and RTYPEDDATA_TYPE.
void rb_objspace_set_event_hook | ( | const rb_event_flag_t | event | ) |
Definition at line 1811 of file gc.c.
References rb_objspace::flags, rb_objspace::has_hook, rb_objspace::hook_events, rb_objspace, and RUBY_INTERNAL_EVENT_OBJSPACE_MASK.
Definition at line 2036 of file ruby.c.
References load_file_arg::opt.
Referenced by rb_load_file_str().
Definition at line 17367 of file ripper.c.
References parser_params::base_block, parser_params::error_buffer, parser_params::error_p, in_main, main(), Qfalse, Qnil, Qtrue, and TypedData_Get_Struct.
void rb_print_backtrace | ( | void | ) |
Definition at line 698 of file vm_dump.c.
References buf, cnt, ERR, free(), NULL, rb_dump_machine_register, and snprintf.
Referenced by rb_vm_bugreport(), and ruby_deprecated_internal_feature().
Definition at line 1302 of file rational.c.
References get_dat1, INT_NEGATIVE_P, and rb_int_abs().
Definition at line 1115 of file rational.c.
References get_dat1, LONG2FIX, rb_int_cmp(), and RB_INTEGER_TYPE_P.
Definition at line 767 of file rational.c.
References get_dat1, and RB_INTEGER_TYPE_P.
Definition at line 1903 of file rational.c.
References get_dat1.
Definition at line 661 of file rational.c.
References assert, get_dat1, RB_TYPE_P, and T_RATIONAL.
Definition at line 4078 of file file.c.
References RB_REALPATH_DIR, and RB_REALPATH_STRICT.
Referenced by rb_file_s_absolute_path().
Definition at line 1388 of file eval.c.
References CONST_ID, and rb_attr_get().
Definition at line 2672 of file re.c.
References buf, err, rb_enc_get(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Definition at line 2919 of file re.c.
Referenced by rb_parser_reg_compile().
Definition at line 1489 of file re.c.
Referenced by rb_reg_search().
int rb_require_internal | ( | VALUE | fname, |
int | safe | ||
) |
Definition at line 962 of file load.c.
References rb_thread_struct::ec, rb_execution_context_struct::errinfo, EXEC_TAG, GET_THREAD, rb_get_path_check(), rb_safe_level(), rb_set_safe_level_force(), rb_str_encode_ospath(), loaded_feature_searching::result, RSTRING_PTR, RUBY_DTRACE_HOOK, MEMO::state, TAG_NONE, and TH_PUSH_TAG.
Referenced by rb_require_safe(), and ruby_require_internal().
Definition at line 337 of file variable.c.
Referenced by rb_vm_bugreport().
int rb_sigaltstack_size | ( | void | ) |
const char* rb_source_loc | ( | int * | pline | ) |
Definition at line 1313 of file vm.c.
References rb_source_location(), and RSTRING_PTR.
Referenced by rb_bug(), and rb_bug_context().
VALUE rb_source_location | ( | int * | pline | ) |
Definition at line 1297 of file vm.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, GET_THREAD, rb_control_frame_struct::iseq, rb_iseq_path(), rb_vm_get_ruby_level_next_cfp(), and rb_vm_get_sourceline().
Referenced by rb_source_loc().
VALUE rb_sourcefilename | ( | void | ) |
Definition at line 1255 of file vm.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, GET_THREAD, rb_control_frame_struct::iseq, Qnil, rb_iseq_path(), and rb_vm_get_ruby_level_next_cfp().
Definition at line 3120 of file variable.c.
References st_copy, and st_foreach.
int rb_stderr_tty_p | ( | void | ) |
Definition at line 7602 of file io.c.
References rb_stderr.
Referenced by rb_threadptr_error_print().
int rb_str_buf_cat_escaped_char | ( | VALUE | result, |
unsigned int | c, | ||
int | unicode_p | ||
) |
Definition at line 2162 of file string.c.
References RString::capa.
Definition at line 8342 of file string.c.
References RSTRING_LEN.
Definition at line 2238 of file string.c.
References RSTRING_LEN, and RSTRING_PTR.
Definition at line 2620 of file string.c.
References rb_ensure(), rb_str_locktmp(), and rb_str_unlocktmp().
size_t rb_str_memsize | ( | VALUE | ) |
Definition at line 1338 of file string.c.
References FL_TEST, STR_HEAP_SIZE, STR_NOEMBED, STR_NOFREE, and STR_SHARED.
Definition at line 10108 of file string.c.
References Check_Type, len, NULL, RString::ptr, rb_default_external_encoding(), rb_default_internal_encoding(), RSTRING_LEN, RSTRING_PTR, STR_ENC_GET, and T_STRING.
Referenced by rb_id_quote_unprintable().
int rb_str_symname_p | ( | VALUE | ) |
Definition at line 10089 of file string.c.
References len, NULL, RString::ptr, rb_default_external_encoding(), rb_default_internal_encoding(), RSTRING_LEN, RSTRING_PTR, and STR_ENC_GET.
Definition at line 1170 of file string.c.
References OBJ_FROZEN_RAW.
Definition at line 1183 of file string.c.
References RString::as, assert, FL_TEST_RAW, FL_UNSET_RAW, OBJ_FROZEN_RAW, rb_gc_force_recycle(), RBASIC, RBASIC_CLASS, RSTRING, RUBY_FL_FREEZE, RString::shared, STR_EMBED_P, STR_IS_SHARED_M, STR_NOFREE, STR_SHARED, and STR_TMPLOCK.
Definition at line 809 of file struct.c.
References len, OBJ_INIT_COPY, rb_eTypeError, rb_raise(), RSTRUCT_GET, RSTRUCT_LEN, and RSTRUCT_SET.
Definition at line 376 of file vm_trace.c.
Definition at line 1036 of file symbol.c.
References rb_sym_intern(), and rb_usascii_encoding().
Referenced by rb_sym_intern_ascii_cstr().
Definition at line 1042 of file symbol.c.
References rb_sym_intern_ascii(), and strlen().
Referenced by rb_catch(), and rb_throw().
Definition at line 10206 of file string.c.
References rb_eArgError, rb_funcall_with_block(), rb_raise(), and rb_sym_to_proc().
Definition at line 1198 of file proc.c.
References id, Qfalse, Qnil, RARRAY_PTR, rb_ary_store(), rb_ary_tmp_new(), rb_gc_register_mark_object(), and SYM2ID.
Referenced by rb_sym_proc_call().
void rb_thread_execute_interrupts | ( | VALUE | th | ) |
Definition at line 2107 of file thread.c.
References rb_threadptr_execute_interrupts().
VALUE rb_thread_io_blocking_region | ( | rb_blocking_function_t * | func, |
void * | data1, | ||
int | fd | ||
) |
Definition at line 1436 of file thread.c.
References BLOCKING_REGION, errno, EXEC_TAG, FALSE, waiting_fd::fd, GET_THREAD, GET_VM, Qundef, RUBY_VM_CHECK_INTS_BLOCKING, TAG_NONE, waiting_fd::th, TH_JUMP_TAG, TH_POP_TAG, TH_PUSH_TAG, val, rb_vm_struct::waiting_fds, and waiting_fd::wfd_node.
void rb_thread_recycle_stack_release | ( | VALUE * | ) |
Definition at line 2355 of file vm.c.
References NULL, rb_fiber_mark_self(), RECYCLE_MAX, ruby_xfree(), and VM_ASSERT.
Definition at line 4438 of file thread.c.
References GET_THREAD, GetMutexPtr, GetThreadShieldPtr, Qfalse, Qnil, and rb_mutex_struct::th.
Definition at line 2305 of file time.c.
References GetTimeval, and IsTimeval.
Definition at line 5128 of file thread.c.
References GET_THREAD, rb_cObject, rb_hash_aset(), and rb_ident_hash_new().
Definition at line 2172 of file vm.c.
References rb_vm_struct::defined_module_hash, GET_VM, ID2SYM, rb_hash_aset(), and TRUE.
Referenced by rb_define_class(), and rb_define_module().
void rb_vm_change_state | ( | void | ) |
const void** rb_vm_get_insns_address_table | ( | void | ) |
Definition at line 130 of file vm_exec.c.
Referenced by rb_iseq_translate_threaded_code().
struct vm_ifunc* rb_vm_ifunc_new | ( | VALUE(*)(ANYARGS) | func, |
const void * | data, | ||
int | min_argc, | ||
int | max_argc | ||
) |
Definition at line 640 of file proc.c.
References CHAR_BIT, IFUNC_NEW, rb_eRangeError, rb_raise(), SIZEOF_VALUE, and UNLIMITED_ARGUMENTS.
Referenced by rb_func_lambda_new(), and rb_lambda_call().
void rb_vm_inc_const_missing_count | ( | void | ) |
Definition at line 330 of file vm.c.
Referenced by rb_const_missing().
void rb_vm_mark | ( | void * | ptr | ) |
Definition at line 2124 of file vm.c.
References rb_vm_struct::cmd, rb_vm_struct::coverages, rb_vm_struct::defined_module_hash, rb_vm_struct::event_hooks, rb_vm_struct::expanded_load_path, rb_vm_struct::living_threads, rb_vm_struct::load_path, rb_vm_struct::load_path_check_cache, rb_vm_struct::load_path_snapshot, rb_vm_struct::loaded_features, rb_vm_struct::loaded_features_snapshot, rb_vm_struct::loading_table, rb_vm_struct::mark_object_ary, rb_gc_mark(), rb_gc_mark_values(), rb_mark_tbl(), rb_vm_trace_mark_event_hooks(), RUBY_GC_INFO, RUBY_MARK_ENTER, RUBY_MARK_LEAVE, RUBY_MARK_UNLESS_NULL, RUBY_NSIG, rb_thread_struct::self, rb_vm_struct::thgroup_default, rb_vm_struct::top_self, and rb_vm_struct::trap_list.
void rb_vm_pop_cfunc_frame | ( | void | ) |
Definition at line 532 of file vm.c.
References rb_callable_method_entry_struct::called_id, rb_execution_context_struct::cfp, rb_callable_method_entry_struct::def, rb_thread_struct::ec, EXEC_EVENT_HOOK, GET_THREAD, rb_callable_method_entry_struct::owner, Qnil, rb_vm_frame_method_entry(), RUBY_DTRACE_CMETHOD_RETURN_HOOK, RUBY_EVENT_C_RETURN, and rb_control_frame_struct::self.
Referenced by rb_mod_const_missing().
Definition at line 901 of file vm_backtrace.c.
Definition at line 907 of file vm_backtrace.c.
Definition at line 1989 of file gc.c.
References FL_WB_PROTECTED, and GC_ASSERT.
Definition at line 1982 of file gc.c.
References FL_WB_PROTECTED, and GC_ASSERT.
Definition at line 1584 of file vm_eval.c.
References GET_THREAD.
char* ruby_dtoa | ( | double | d_, |
int | mode, | ||
int | ndigits, | ||
int * | decpt, | ||
int * | sign, | ||
char ** | rve | ||
) |
double ruby_float_mod | ( | double | x, |
double | y | ||
) |
const char* ruby_get_inplace_mode | ( | void | ) |
Definition at line 12375 of file io.c.
References ARGF, and RSTRING_PTR.
char* ruby_hdtoa | ( | double | d, |
const char * | xdigs, | ||
int | ndigits, | ||
int * | decpt, | ||
int * | sign, | ||
char ** | rve | ||
) |
Definition at line 3899 of file util.c.
References U::d, DBL_ADJ, DBL_MANH_SIZE, DBL_MANL_SIZE, DBL_MANT_DIG, DBL_MAX_EXP, dexp_get, dexp_set, dmanh_get, dmanl_get, isinf(), isnan, NULL, rv_alloc, rv_strdup, SIGFIGS, Sign_bit, and word0.
void ruby_init_setproctitle | ( | int | argc, |
char * | argv[] | ||
) |
int ruby_is_fd_loadable | ( | int | fd | ) |
void* ruby_mimmalloc | ( | size_t | size | ) |
unsigned long ruby_scan_digits | ( | const char * | str, |
ssize_t | len, | ||
int | base, | ||
size_t * | retlen, | ||
int * | overflow | ||
) |
Definition at line 84 of file util.c.
References ruby_digit36_to_number_table.
Referenced by ruby_strtoul().
void ruby_set_inplace_mode | ( | const char * | ) |
void void ruby_sized_xfree | ( | void * | x, |
size_t | size | ||
) |
Definition at line 8077 of file gc.c.
Referenced by rb_ary_free(), rb_str_free(), and ruby_xfree().
void* ruby_sized_xrealloc | ( | void * | ptr, |
size_t | new_size, | ||
size_t | old_size | ||
) |
Definition at line 8039 of file gc.c.
Referenced by ruby_xrealloc().
void* ruby_sized_xrealloc2 | ( | void * | ptr, |
size_t | new_count, | ||
size_t | element_size, | ||
size_t | old_count | ||
) |
int ruby_thread_has_gvl_p | ( | void | ) |
Definition at line 1543 of file thread.c.
References rb_thread_struct::blocking_region_buffer.
Definition at line 26 of file vm_insnhelper.c.
References NORETURN(), rb_class_real(), rb_obj_alloc(), rb_obj_copy_ivar(), and RBASIC_CLASS.
rb_encoding OnigEncodingUS_ASCII |
rb_encoding OnigEncodingUTF_8 |
VALUE rb_cEncodingConverter |
Definition at line 23 of file transcode.c.
const signed char ruby_digit36_to_number_table[] |
Definition at line 6 of file escape.c.
Referenced by ruby_scan_digits().
const char ruby_digitmap[] |
Definition at line 38 of file bignum.c.
Referenced by rb_fix2str().
int ruby_enable_coredump |
Definition at line 1449 of file signal.c.
Referenced by ruby_env_debug_option().
const char ruby_engine[] |
Definition at line 35 of file version.c.
Referenced by ruby_process_options().
const char ruby_exec_prefix[] |
Definition at line 59 of file loadpath.c.
VALUE* ruby_initial_gc_stress_ptr |
Definition at line 738 of file gc.c.
Referenced by ruby_env_debug_option().
const char ruby_initial_load_paths[] |
Definition at line 62 of file loadpath.c.
Referenced by ruby_init_loadpath_safe().