Ruby
2.4.2p198(2017-09-14revision59899)
|
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 |
struct | vm_throw_data |
struct | vm_ifunc_argc |
struct | vm_ifunc |
struct | MEMO |
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 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_mask = 0x07 } |
enum | { cmp_opt_Fixnum, cmp_opt_String, 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 } |
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 __has_extension __has_feature |
Definition at line 57 of file internal.h.
#define __has_feature | ( | x | ) | 0 |
Definition at line 53 of file internal.h.
#define ARGVSTR2ARGC | ( | argv_str | ) | (RSTRING_LEN(argv_str) / sizeof(char *) - 2) |
Definition at line 1405 of file internal.h.
Referenced by rb_execarg_commandline().
#define ARGVSTR2ARGV | ( | argv_str | ) | ((char **)RSTRING_PTR(argv_str) + 1) |
Definition at line 1406 of file internal.h.
Referenced by pipe_open(), proc_exec_cmd(), rb_execarg_commandline(), and rb_spawn_process().
#define BDIGIT unsigned int |
Definition at line 425 of file internal.h.
#define BDIGIT_DBL unsigned LONG_LONG |
Definition at line 427 of file internal.h.
#define BDIGIT_DBL_SIGNED LONG_LONG |
Definition at line 428 of file internal.h.
#define BIGNUM_DIGITS | ( | b | ) |
Definition at line 515 of file internal.h.
Referenced by ibf_dump_object_bignum(), obj_free(), obj_memsize_of(), and w_object().
Definition at line 506 of file internal.h.
Referenced by bignew_1(), obj_free(), obj_memsize_of(), and rb_big_realloc().
Definition at line 507 of file internal.h.
#define BIGNUM_EMBED_LEN_MAX (SIZEOF_VALUE*3/SIZEOF_ACTUAL_BDIGIT) |
Definition at line 480 of file internal.h.
Referenced by bignew_1(), and rb_big_realloc().
#define BIGNUM_EMBED_LEN_NUMBITS 3 |
Definition at line 477 of file internal.h.
#define BIGNUM_EMBED_LEN_SHIFT (FL_USHIFT+BIGNUM_EMBED_LEN_NUMBITS) |
Definition at line 508 of file internal.h.
#define BIGNUM_LEN | ( | b | ) |
Definition at line 509 of file internal.h.
Referenced by abs2twocomp(), big2dbl(), big2str_generic(), big2str_karatsuba(), big2ulong(), big_extend_carry(), big_fdiv(), big_fdiv_int(), big_shift3(), bigadd(), bigadd_int(), bigdivrem(), bigfixize(), bigmul0(), bigor_int(), bigsq(), bigsub(), bigsub_int(), bigtrunc(), bigxor_int(), bigzero_p(), f_gcd(), get2comp(), ibf_dump_object_bignum(), obj_memsize_of(), rb_absint_singlebit_p(), rb_absint_size(), rb_big2long(), rb_big2str1(), rb_big2str_generic(), rb_big_aref(), rb_big_clone(), rb_big_cmp(), rb_big_comp(), rb_big_divrem_normal(), rb_big_eq(), rb_big_eql(), rb_big_even_p(), rb_big_hash(), rb_big_mul_balance(), rb_big_mul_karatsuba(), rb_big_mul_normal(), rb_big_mul_toom3(), rb_big_odd_p(), rb_big_realloc(), rb_big_sq_fast(), rb_integer_pack(), rb_integer_unpack(), str2big_karatsuba(), and w_object().
#define BIGNUM_LENINT | ( | b | ) | rb_long2int(BIGNUM_LEN(b)) |
Definition at line 519 of file internal.h.
#define BIGNUM_NEGATE | ( | b | ) | (RBASIC(b)->flags ^= BIGNUM_SIGN_BIT) |
Definition at line 504 of file internal.h.
Referenced by bigsub_int(), negate_lit(), and rb_big_uminus().
#define BIGNUM_NEGATIVE_P | ( | b | ) | (!BIGNUM_SIGN(b)) |
Definition at line 503 of file internal.h.
Referenced by abs2twocomp(), big2dbl(), big2str_base_poweroftwo(), big2str_generic(), int_neg_p(), negative_int_p(), num_step_negative_p(), rb_big2str_generic(), rb_big_abs(), rb_big_aref(), rb_big_bit_length(), rb_big_pow(), rb_int_digits_bigbase(), rb_num2ulong_internal(), rb_num_to_uint(), and rb_str_format().
#define BIGNUM_POSITIVE_P | ( | b | ) | BIGNUM_SIGN(b) |
Definition at line 502 of file internal.h.
Referenced by big2str_base_poweroftwo(), big_shift2(), big_shift3(), bigfixize(), get_double_rshift(), int_pos_p(), num_positive_p(), positive_int_p(), rb_big2long(), rb_big2ulong(), rb_big_aref(), rb_big_comp(), and rb_integer_pack().
#define BIGNUM_SET_SIGN | ( | b, | |
sign | |||
) |
Definition at line 499 of file internal.h.
Referenced by bigdivrem(), bignew_1(), rb_cstr_parse_inum(), rb_integer_unpack(), and twocomp2abs_bang().
#define BIGNUM_SIGN | ( | b | ) | ((RBASIC(b)->flags & BIGNUM_SIGN_BIT) != 0) |
Definition at line 498 of file internal.h.
Referenced by big_shift3(), bigadd(), bigadd_int(), bigdivmod(), bigdivrem(), bigmul0(), bigsub_int(), fix_aref(), ibf_dump_object_bignum(), rand_int(), rand_range(), rb_big_aref(), rb_big_clone(), rb_big_cmp(), rb_big_divrem_normal(), rb_big_eq(), rb_big_eql(), rb_big_hash(), 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(), rb_cmpint(), and w_object().
Definition at line 496 of file internal.h.
#define bit_length | ( | x | ) |
Definition at line 417 of file internal.h.
Referenced by bary_mul_precheck(), big_shift2(), bigdivrem_single1(), rb_big_lshift(), rb_big_rshift(), rb_cstr_parse_inum(), rb_fix_bit_length(), and rb_str2big_poweroftwo().
#define Check_Type | ( | v, | |
t | |||
) |
Definition at line 1668 of file internal.h.
#define CMP_OPTIMIZABLE | ( | data, | |
type | |||
) |
Definition at line 869 of file internal.h.
Referenced by sort_2().
#define CMP_OPTIMIZABLE_BIT | ( | type | ) | (1U << TOKEN_PASTE(cmp_opt_,type)) |
Definition at line 868 of file internal.h.
#define FIXNUM_NEGATIVE_P | ( | num | ) | ((SIGNED_VALUE)(num) < 0) |
Definition at line 1167 of file internal.h.
Referenced by int_neg_p(), and negative_int_p().
#define FIXNUM_POSITIVE_P | ( | num | ) | ((SIGNED_VALUE)(num) > (SIGNED_VALUE)INT2FIX(0)) |
Definition at line 1166 of file internal.h.
Referenced by int_pos_p(), positive_int_p(), and rb_int_round().
#define FIXNUM_ZERO_P | ( | num | ) | ((num) == INT2FIX(0)) |
Definition at line 1168 of file internal.h.
Referenced by f_add(), f_gcd_normal(), f_sub(), f_zero_p(), fix_divide(), fix_divmod(), fix_mod(), fun2(), num_zero_p(), nurat_eqeq_p(), rb_int_fdiv_double(), and rb_int_round().
#define HASH_DELETED FL_USER1 |
Definition at line 1123 of file internal.h.
Referenced by hash_foreach_ensure(), hash_foreach_iter(), and rb_hash_delete_entry().
#define HASH_PROC_DEFAULT FL_USER2 |
Definition at line 1124 of file internal.h.
Referenced by copy_default(), dump_object(), hash_equal(), rb_hash_default(), rb_hash_default_proc(), rb_hash_default_value(), rb_hash_dup(), rb_hash_to_h(), set_proc_default(), and w_object().
#define IFUNC_NEW | ( | a, | |
b, | |||
c | |||
) | ((struct vm_ifunc *)rb_imemo_new(imemo_ifunc, (VALUE)(a), (VALUE)(b), (VALUE)(c), 0)) |
Definition at line 808 of file internal.h.
Referenced by iseq_compile_each(), method_for_self(), and rb_vm_ifunc_new().
#define IMEMO_DEBUG 0 |
Definition at line 726 of file internal.h.
#define IMEMO_FL_USER0 FL_USER3 |
Definition at line 757 of file internal.h.
Referenced by METHOD_ENTRY_FLAGS_COPY(), METHOD_ENTRY_FLAGS_SET(), and METHOD_ENTRY_VISI_SET().
#define IMEMO_FL_USER1 FL_USER4 |
Definition at line 758 of file internal.h.
Referenced by METHOD_ENTRY_FLAGS_COPY(), METHOD_ENTRY_FLAGS_SET(), and METHOD_ENTRY_VISI_SET().
#define IMEMO_FL_USER2 FL_USER5 |
Definition at line 759 of file internal.h.
Referenced by METHOD_ENTRY_BASIC_SET(), METHOD_ENTRY_FLAGS_COPY(), and METHOD_ENTRY_FLAGS_SET().
#define IMEMO_FL_USER3 FL_USER6 |
Definition at line 760 of file internal.h.
#define IMEMO_FL_USER4 FL_USER7 |
Definition at line 761 of file internal.h.
#define IMEMO_FL_USHIFT (FL_USHIFT + 3) |
Definition at line 756 of file internal.h.
Referenced by METHOD_ENTRY_BASIC_SET(), METHOD_ENTRY_FLAGS_SET(), and METHOD_ENTRY_VISI_SET().
#define INT_NEGATIVE_P | ( | x | ) | (FIXNUM_P(x) ? FIXNUM_NEGATIVE_P(x) : BIGNUM_NEGATIVE_P(x)) |
Definition at line 1170 of file internal.h.
Referenced by f_gcd_normal(), f_muldiv(), f_round_common(), fun2(), nurat_canonicalize(), nurat_expt(), nurat_negative_p(), nurat_round_half_down(), nurat_round_half_even(), nurat_round_half_up(), nurat_s_alloc(), nurat_truncate(), and rb_rational_abs().
#define is_ascii_string | ( | str | ) | (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT) |
Definition at line 1490 of file internal.h.
Referenced by dump_append_string_content(), rb_str_conv_enc_opts(), rb_str_split_m(), and str_upto_each().
#define is_broken_string | ( | str | ) | (rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN) |
Definition at line 1491 of file internal.h.
Referenced by chompped_length(), dump_object(), get_pat_quoted(), mustnot_broken(), rb_str_count(), rb_str_rindex(), and rb_strseq_index().
#define LIKELY | ( | x | ) | RB_LIKELY(x) |
Definition at line 26 of file internal.h.
#define MAYBE_UNUSED | ( | x | ) | x |
Definition at line 30 of file internal.h.
#define MEMO_CAST | ( | m | ) | ((struct MEMO *)m) |
Definition at line 834 of file internal.h.
Referenced by count_all_i(), count_i(), count_iter_i(), drop_i(), drop_while_i(), each_cons_i(), each_slice_i(), each_with_index_i(), find_i(), find_index_i(), find_index_iter_i(), first_i(), grep_i(), grep_iter_i(), inject_i(), inject_op_i(), load_lock(), match_named_captures_iter(), max_by_i(), member_i(), min_by_i(), partition_i(), sort_by_i(), and take_i().
#define MEMO_FOR | ( | type, | |
value | |||
) | ((type *)RARRAY_PTR(value)) |
Definition at line 840 of file internal.h.
Referenced by chunk_i(), chunk_ii(), enum_minmax_by(), max_i(), max_ii(), min_i(), min_ii(), minmax_by_i(), minmax_i(), minmax_ii(), sliceafter_i(), slicebefore_i(), slicebefore_ii(), and slicewhen_i().
#define MEMO_NEW | ( | a, | |
b, | |||
c | |||
) | ((struct MEMO *)rb_imemo_new(imemo_memo, (VALUE)(a), (VALUE)(b), (VALUE)(c), 0)) |
Definition at line 836 of file internal.h.
Referenced by enum_all(), enum_any(), enum_count(), enum_drop(), enum_drop_while(), enum_each_cons(), enum_each_slice(), enum_each_with_index(), enum_find(), enum_find_index(), enum_first(), enum_grep(), enum_grep_v(), enum_inject(), enum_max_by(), enum_member(), enum_min_by(), enum_none(), enum_one(), enum_partition(), enum_sort_by(), enum_take(), enum_zip(), enumerator_with_index(), lazy_init_yielder(), match_named_captures(), and register_init_ext().
#define MEMO_V1_SET | ( | m, | |
v | |||
) | RB_OBJ_WRITE((m), &(m)->v1, (v)) |
Definition at line 831 of file internal.h.
Referenced by DEFINE_ENUMFUNCS(), each_slice_i(), enumerator_with_index_i(), find_i(), find_index_i(), find_index_iter_i(), first_i(), inject_i(), inject_op_i(), max_by_i(), and min_by_i().
#define MEMO_V2_SET | ( | m, | |
v | |||
) | RB_OBJ_WRITE((m), &(m)->v2, (v)) |
Definition at line 832 of file internal.h.
Referenced by max_by_i(), member_i(), and min_by_i().
#define MUL_OVERFLOW_FIXNUM_P | ( | a, | |
b | |||
) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, FIXNUM_MIN, FIXNUM_MAX) |
Definition at line 89 of file internal.h.
Referenced by int_pow(), and rb_fix_mul_fix().
#define MUL_OVERFLOW_INT_P | ( | a, | |
b | |||
) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, INT_MIN, INT_MAX) |
Definition at line 91 of file internal.h.
Referenced by get_num().
#define MUL_OVERFLOW_LONG_P | ( | a, | |
b | |||
) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LONG_MIN, LONG_MAX) |
Definition at line 90 of file internal.h.
Referenced by f_imul(), and rb_ary_product().
#define MUL_OVERFLOW_SIGNED_INTEGER_P | ( | a, | |
b, | |||
min, | |||
max | |||
) |
Definition at line 83 of file internal.h.
#define NEW_CMP_OPT_MEMO | ( | type, | |
value | |||
) | NEW_PARTIAL_MEMO_FOR(type, value, cmp_opt) |
Definition at line 866 of file internal.h.
Referenced by enum_max(), enum_min(), and enum_minmax().
#define NEW_MEMO_FOR | ( | type, | |
value | |||
) | ((value) = rb_ary_tmp_new_fill(type_roomof(type, VALUE)), MEMO_FOR(type, value)) |
Definition at line 841 of file internal.h.
Referenced by chunk_i(), enum_minmax_by(), sliceafter_i(), and slicebefore_i().
#define NEW_PARTIAL_MEMO_FOR | ( | type, | |
value, | |||
member | |||
) |
Definition at line 843 of file internal.h.
Referenced by slicewhen_i().
#define NEWOBJ_OF | ( | obj, | |
type, | |||
klass, | |||
flags | |||
) | RB_NEWOBJ_OF(obj,type,klass,flags) |
Definition at line 1105 of file internal.h.
#define numberof | ( | array | ) | ((int)(sizeof(array) / sizeof((array)[0]))) |
Definition at line 50 of file internal.h.
#define OBJ_BUILTIN_TYPE | ( | obj | ) | RB_OBJ_BUILTIN_TYPE(obj) |
Definition at line 1766 of file internal.h.
Referenced by objspace_internal_super_of(), and rb_file_join().
#define ONLY_FOR_INTERNAL_USE | ( | func | ) | ruby_only_for_internal_use(func) |
Definition at line 1027 of file internal.h.
Referenced by rb_clear_cache(), rb_compile_error(), rb_compile_error_append(), rb_compile_error_with_enc(), rb_frame_pop(), rb_str_associate(), and rb_str_associated().
#define OPTIMIZED_CMP | ( | a, | |
b, | |||
data | |||
) |
Definition at line 876 of file internal.h.
Referenced by max_i(), min_i(), minmax_i(), minmax_i_update(), rb_ary_max(), and rb_ary_min().
#define PRI_BDIGIT_DBL_PREFIX PRI_LL_PREFIX |
Definition at line 430 of file internal.h.
#define PRI_BDIGIT_PREFIX "" |
Definition at line 429 of file internal.h.
#define PRIdBDIGIT PRI_BDIGIT_PREFIX"d" |
Definition at line 460 of file internal.h.
#define PRIdBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"d" |
Definition at line 469 of file internal.h.
#define PRIiBDIGIT PRI_BDIGIT_PREFIX"i" |
Definition at line 461 of file internal.h.
#define PRIiBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"i" |
Definition at line 470 of file internal.h.
#define PRIoBDIGIT PRI_BDIGIT_PREFIX"o" |
Definition at line 462 of file internal.h.
#define PRIoBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"o" |
Definition at line 471 of file internal.h.
#define PRIuBDIGIT PRI_BDIGIT_PREFIX"u" |
Definition at line 463 of file internal.h.
#define PRIuBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"u" |
Definition at line 472 of file internal.h.
#define PRIxBDIGIT PRI_BDIGIT_PREFIX"x" |
Definition at line 464 of file internal.h.
#define PRIXBDIGIT PRI_BDIGIT_PREFIX"X" |
Definition at line 465 of file internal.h.
#define PRIxBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"x" |
Definition at line 473 of file internal.h.
#define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X" |
Definition at line 474 of file internal.h.
#define QUOTE | ( | str | ) | rb_str_quote_unprintable(str) |
Definition at line 1472 of file internal.h.
Referenced by name_err_mesg_to_str(), rb_f_untrace_var(), rb_mod_const_defined(), rb_mod_const_get(), rb_path_to_class(), and ruby__sfvextra().
#define QUOTE_ID | ( | id | ) | rb_id_quote_unprintable(id) |
Definition at line 1473 of file internal.h.
Referenced by const_tbl_update(), rb_autoload_str(), rb_const_search(), 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(), rb_ivar_get(), set_const_visibility(), set_method_visibility(), vm_getivar(), and vm_respond_to().
#define rb_cBignum rb_cInteger |
Definition at line 852 of file internal.h.
Referenced by Init_Bignum().
#define rb_cFixnum rb_cInteger |
Definition at line 851 of file internal.h.
Referenced by Init_Numeric().
#define rb_float_new | ( | d | ) | rb_float_new_inline(d) |
Definition at line 1296 of file internal.h.
Referenced by BigDecimal_to_f(), generic_to_value(), JSON_parse_float(), ole_variant2val(), rand_random(), rand_range(), vtdate2rbtime(), and with_gvl_callback().
#define rb_float_value | ( | v | ) | rb_float_value_inline(v) |
Definition at line 1295 of file internal.h.
#define rb_fstring_lit | ( | str | ) | rb_fstring_new((str), rb_strlen_lit(str)) |
Definition at line 1445 of file internal.h.
#define rb_fstring_literal | ( | str | ) | rb_fstring_lit(str) |
Definition at line 1446 of file internal.h.
#define RB_MAX_GROUPS (65536) |
Definition at line 1356 of file internal.h.
Referenced by rb_group_member().
#define rb_name_err_raise | ( | mesg, | |
recv, | |||
name | |||
) | rb_name_err_raise_str(rb_fstring_cstr(mesg), (recv), (name)) |
Definition at line 1024 of file internal.h.
Referenced by bind_local_variable_get(), check_local_id(), cv_intern(), invalid_struct_pos(), new_struct(), range_modify(), rb_const_remove(), rb_const_search(), rb_cvar_get(), rb_deprecate_constant(), rb_mod_const_defined(), rb_mod_const_get(), rb_mod_cvar_get(), rb_mod_remove_const(), rb_mod_remove_cvar(), rb_mod_remove_method(), rb_obj_remove_instance_variable(), rb_obj_singleton_method(), rb_struct_getmember(), remove_method(), set_const_visibility(), and uninitialized_constant().
#define rb_name_err_raise_str | ( | mesg, | |
recv, | |||
name | |||
) | rb_exc_raise(rb_name_err_new(mesg, recv, name)) |
Definition at line 1022 of file internal.h.
Referenced by check_id_type(), check_setter_id(), 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 1101 of file internal.h.
#define RB_OBJ_BUILTIN_TYPE | ( | obj | ) | rb_obj_builtin_type(obj) |
Definition at line 1765 of file internal.h.
#define RB_OBJ_GC_FLAGS_MAX 5 |
Definition at line 1740 of file internal.h.
Referenced by dump_object().
#define rb_sys_fail_path | ( | path | ) | rb_sys_fail_str(path) |
Definition at line 1065 of file internal.h.
Referenced by check_dirname(), chmod_internal(), chown_internal(), dir_chdir(), dir_s_mkdir(), dir_s_rmdir(), io_fread(), io_reopen(), io_write(), rb_dir_s_empty_p(), rb_file_atime(), rb_file_chmod(), rb_file_chown(), rb_file_ctime(), rb_file_lstat(), rb_file_mtime(), rb_file_s_ftype(), rb_file_s_join(), rb_file_s_lstat(), rb_file_s_stat(), rb_file_size(), rb_io_close_read(), rb_io_close_write(), rb_io_isatty(), rb_io_rewind(), rb_io_seek(), rb_io_set_nonblock(), rb_io_set_pos(), rb_io_stat(), rb_io_sync(), rb_io_sysread(), rb_io_sysseek(), rb_io_syswrite(), rb_io_tell(), rb_stat_init(), rb_stat_sticky(), setup_narg(), swallow(), and unlink_internal().
#define rb_syserr_fail_path | ( | err, | |
path | |||
) | rb_syserr_fail_str((err), (path)) |
Definition at line 1066 of file internal.h.
Referenced by dir_initialize(), fptr_finalize_flush(), io_fillbuf(), io_getpartial(), io_read_nonblock(), io_write_nonblock(), pipe_open(), rb_dir_s_empty_p(), rb_f_test(), rb_file_ctime(), rb_file_flock(), rb_file_s_atime(), rb_file_s_ctime(), rb_file_s_join(), rb_file_s_mtime(), rb_file_s_size(), rb_io_reopen(), rb_readlink(), rb_sysopen(), realpath_rec(), and syserr_fail2_in().
#define RBASIC_CLEAR_CLASS | ( | obj | ) | memset(&(((struct RBasicRaw *)((VALUE)(obj)))->klass), 0, sizeof(VALUE)) |
Definition at line 1312 of file internal.h.
Referenced by add_modules(), ary_tmp_hash_new(), define_final0(), enum_cycle(), enum_sort_by(), env_reject_bang(), env_select_bang(), freeze_hide_obj(), hidden_identity_hash_new(), hide_obj(), Init_Encoding(), Init_VM(), local_var_list_init(), rb_apply(), rb_ary_combination(), rb_ary_permutation(), rb_ary_product(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_sample(), rb_ary_sort_bang(), rb_enc_vsprintf(), rb_file_join(), rb_find_file_ext_safe(), rb_obj_hide(), rb_str_vcatf(), rb_struct_s_def(), str_cat_conv_enc_opts(), struct_make_members_list(), and thread_create_core().
#define RBASIC_SET_CLASS | ( | obj, | |
cls | |||
) |
Definition at line 1314 of file internal.h.
Referenced by copy_path_class(), encoded_dup(), flatten(), fstring_set_class_i(), Init_class_hierarchy(), io_reopen(), make_singleton_class(), proc_new(), r_object0(), rb_ary_slice_bang(), rb_ary_uniq(), rb_detach_process(), rb_extract_keywords(), rb_include_class_new(), rb_io_s_popen(), rb_mod_init_copy(), rb_module_s_alloc(), rb_nmin_run(), rb_obj_clone2(), rb_obj_reveal(), rb_obj_setup(), rb_singleton_class_clone_and_attach(), str_gsub(), and syserr_initialize().
#define RBASIC_SET_CLASS_RAW | ( | obj, | |
cls | |||
) | memcpy(&((struct RBasicRaw *)((VALUE)(obj)))->klass, &(cls), sizeof(VALUE)) |
Definition at line 1313 of file internal.h.
Referenced by enum_sort_by(), newobj_init(), rb_ary_combination(), rb_ary_permutation(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_sample(), rb_ary_sort_bang(), rb_enc_vsprintf(), rb_file_join(), rb_id2str(), rb_str_vcatf(), require_libraries(), and setup_fake_str().
Definition at line 521 of file internal.h.
Referenced by bignew_1(), and rb_big_realloc().
#define RCLASS_CALLABLE_M_TBL | ( | c | ) | (RCLASS_EXT(c)->callable_m_tbl) |
Definition at line 691 of file internal.h.
Referenced by gc_mark_children(), obj_free(), prepare_callable_method_entry(), rb_class_clear_method_cache(), and rb_clear_method_cache_by_class().
#define RCLASS_CONST_TBL | ( | c | ) | (RCLASS_EXT(c)->const_tbl) |
Definition at line 689 of file internal.h.
Referenced by const_tbl_update(), fc_i(), find_class_path(), gc_mark_children(), obj_free(), rb_const_lookup(), rb_const_remove(), rb_const_set(), rb_include_class_new(), rb_local_constants(), rb_mod_const_at(), rb_mod_init_copy(), and rb_singleton_class_clone_and_attach().
#define RCLASS_EXT | ( | c | ) | (RCLASS(c)->ptr) |
Definition at line 687 of file internal.h.
#define RCLASS_IV_INDEX_TBL | ( | c | ) | (RCLASS_EXT(c)->iv_index_tbl) |
Definition at line 692 of file internal.h.
Referenced by gen_ivar_each(), generic_ivar_defined(), generic_ivar_delete(), generic_ivar_get(), generic_ivar_remove(), iv_index_tbl_make(), obj_free(), obj_memsize_of(), and rb_generic_ivar_table().
#define RCLASS_IV_TBL | ( | c | ) | (RCLASS_EXT(c)->iv_tbl) |
Definition at line 688 of file internal.h.
Referenced by autoload_data(), autoload_delete(), classname(), cvar_lookup_at(), fc_path(), find_class_path(), gc_mark_children(), mod_cvar_at(), obj_free(), obj_memsize_of(), rb_autoload_str(), rb_class_ivar_set(), rb_class_path_cached(), rb_const_set(), rb_cvar_get(), rb_cvar_set(), rb_include_class_new(), rb_ivar_count(), rb_ivar_defined(), rb_ivar_delete(), rb_ivar_foreach(), rb_ivar_lookup(), rb_ivar_set(), rb_mod_init_copy(), rb_mod_remove_cvar(), rb_obj_remove_instance_variable(), rb_singleton_class_attached(), rb_singleton_class_clone_and_attach(), and rb_tmp_class_path().
#define RCLASS_M_TBL | ( | c | ) | (RCLASS(c)->m_tbl) |
Definition at line 690 of file internal.h.
Referenced by class_instance_method_list(), class_search_ancestor(), gc_mark_children(), include_modules_at(), lookup_method_table(), move_refined_method(), obj_free(), obj_memsize_of(), rb_class_has_methods(), rb_include_class_new(), rb_method_entry_make(), rb_mod_init_copy(), rb_obj_singleton_methods(), rb_prepend_module(), rb_singleton_class_clone_and_attach(), rb_undef_methods_from(), rb_using_refinement(), rb_vm_check_redefinition_by_prepend(), RCLASS_M_TBL_INIT(), and remove_method().
#define RCLASS_ORIGIN | ( | c | ) | (RCLASS_EXT(c)->origin_) |
Definition at line 693 of file internal.h.
Referenced by check_override_opt_method(), class_instance_method_list(), include_modules_at(), method_super_method(), mnew_internal(), rb_class_inherited_p(), rb_class_search_ancestor(), rb_export_method(), rb_freeze_singleton_class(), rb_include_class_new(), rb_include_module(), rb_method_entry_make(), rb_mod_ancestors(), rb_mod_included_modules(), rb_obj_is_kind_of(), rb_obj_singleton_methods(), rb_prepend_module(), rb_vm_check_redefinition_by_prepend(), RCLASS_SET_ORIGIN(), remove_method(), vm_call0_body(), vm_call_method_each_type(), vm_call_super(), vm_search_normal_superclass(), and w_extended().
#define RCLASS_REFINED_CLASS | ( | c | ) | (RCLASS_EXT(c)->refined_class) |
Definition at line 694 of file internal.h.
Referenced by add_activated_refinement(), class_alloc(), rb_using_refinement(), and vm_search_super_method().
#define RCLASS_SERIAL | ( | c | ) | (RCLASS_EXT(c)->class_serial) |
Definition at line 695 of file internal.h.
Referenced by class_alloc(), method_entry_get(), method_entry_get_without_cache(), rb_class_clear_method_cache(), singleton_class_of(), vm_getivar(), vm_search_method(), and vm_setivar().
Definition at line 546 of file internal.h.
Referenced by ibf_dump_object_complex_rational(), negate_lit(), nurat_coerce(), nurat_s_convert(), and rb_math_sqrt().
#define RCOMPLEX_SET_IMAG | ( | cmp, | |
i | |||
) | RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i)) |
Definition at line 552 of file internal.h.
#define RCOMPLEX_SET_REAL | ( | cmp, | |
r | |||
) | RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r)) |
Definition at line 551 of file internal.h.
Definition at line 538 of file internal.h.
Referenced by negate_lit().
Definition at line 562 of file internal.h.
Referenced by ary_recycle_hash(), hash_dup(), hash_equal(), hash_foreach_call(), hash_foreach_ensure(), hash_foreach_iter(), hash_tbl(), ibf_dump_object_hash(), local_var_list_init(), obj_memsize_of(), rb_hash_aref(), rb_hash_aset(), rb_hash_assoc(), rb_hash_clear(), rb_hash_compact_bang(), rb_hash_compare_by_id(), rb_hash_compare_by_id_p(), rb_hash_delete_entry(), rb_hash_delete_if(), rb_hash_fetch_m(), rb_hash_foreach(), rb_hash_has_key(), rb_hash_initialize_copy(), rb_hash_keep_if(), rb_hash_keys(), rb_hash_lookup2(), rb_hash_rehash(), rb_hash_reject_bang(), rb_hash_replace(), rb_hash_s_create(), rb_hash_select_bang(), rb_hash_set_ifnone(), rb_hash_shift(), rb_hash_transform_values_bang(), rb_hash_values(), rb_ident_hash_new(), rb_thread_variable_p(), reset_hash_type(), and tbl_update().
#define RHASH_IFNONE | ( | h | ) | (RHASH(h)->ifnone) |
Definition at line 569 of file internal.h.
#define RHASH_ITER_LEV | ( | h | ) | (RHASH(h)->iter_lev) |
Definition at line 568 of file internal.h.
#define RHASH_SIZE | ( | h | ) | (RHASH(h)->ntbl ? RHASH(h)->ntbl->num_entries : (st_index_t)0) |
Definition at line 570 of file internal.h.
#define RHASH_TBL_RAW | ( | h | ) | rb_hash_tbl_raw(h) |
Definition at line 1118 of file internal.h.
Referenced by count_objects(), local_var_list_add(), rb_ary_or(), and rb_execarg_parent_start1().
#define RICLASS_IS_ORIGIN FL_USER5 |
Definition at line 697 of file internal.h.
Referenced by find_defined_class_by_owner(), gc_mark_children(), obj_free(), obj_memsize_of(), rb_vm_check_redefinition_opt_method(), and RCLASS_SET_ORIGIN().
#define roomof | ( | x, | |
y | |||
) | (((x) + (y) - 1) / (y)) |
Definition at line 838 of file internal.h.
Referenced by rb_alloc_tmp_buffer(), rb_ary_permutation(), rb_cstr_parse_inum(), rb_str2big_karatsuba(), rb_str2big_normal(), and str2big_poweroftwo().
#define ROUND_CALL | ( | mode, | |
name, | |||
args | |||
) |
#define ROUND_DEFAULT RUBY_NUM_ROUND_HALF_UP |
Definition at line 1173 of file internal.h.
#define ROUND_FUNC | ( | mode, | |
name | |||
) | ROUND_TO(mode, name##_half_even, name##_half_up, name##_half_down) |
Definition at line 1184 of file internal.h.
Referenced by nurat_round_n().
#define ROUND_TO | ( | mode, | |
even, | |||
up, | |||
down | |||
) |
Definition at line 1181 of file internal.h.
Definition at line 529 of file internal.h.
Referenced by f_minus_one_p(), f_one_p(), f_zero_p(), fun2(), negate_lit(), nucomp_expt(), num_exact(), quo(), rb_rational_den(), rb_rational_num(), time_mdump(), and v2w().
#define RRATIONAL_SET_DEN | ( | rat, | |
d | |||
) | RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->den,(d)) |
Definition at line 531 of file internal.h.
#define RRATIONAL_SET_NUM | ( | rat, | |
n | |||
) | RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->num,(n)) |
Definition at line 530 of file internal.h.
Referenced by negate_lit().
Definition at line 613 of file internal.h.
Referenced by obj_memsize_of(), rb_struct_const_ptr(), and rb_struct_len().
#define RSTRUCT_CONST_PTR | ( | st | ) | rb_struct_const_ptr(st) |
Definition at line 609 of file internal.h.
Referenced by gc_mark_children(), rb_struct_hash(), rb_struct_initialize_m(), rb_struct_ptr(), rb_struct_to_a(), recursive_eql(), and recursive_equal().
#define RSTRUCT_EMBED_LEN | ( | st | ) |
Definition at line 604 of file internal.h.
Referenced by rb_struct_len().
#define RSTRUCT_EMBED_LEN_MASK RSTRUCT_EMBED_LEN_MASK |
Definition at line 579 of file internal.h.
Referenced by rb_struct_const_ptr(), and rb_struct_len().
#define RSTRUCT_EMBED_LEN_MAX RSTRUCT_EMBED_LEN_MAX |
Definition at line 578 of file internal.h.
#define RSTRUCT_EMBED_LEN_SHIFT RSTRUCT_EMBED_LEN_SHIFT |
Definition at line 580 of file internal.h.
#define RSTRUCT_GET | ( | st, | |
idx | |||
) | (RSTRUCT_CONST_PTR(st)[idx]) |
Definition at line 612 of file internal.h.
#define RSTRUCT_LEN | ( | st | ) | rb_struct_len(st) |
Definition at line 607 of file internal.h.
#define RSTRUCT_LENINT | ( | st | ) | rb_long2int(RSTRUCT_LEN(st)) |
Definition at line 608 of file internal.h.
#define RSTRUCT_PTR | ( | st | ) | ((VALUE *)RSTRUCT_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(STRUCT, st))) |
Definition at line 610 of file internal.h.
#define RSTRUCT_SET | ( | st, | |
idx, | |||
v | |||
) | RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[idx], (v)) |
Definition at line 611 of file internal.h.
#define RUBY_BIT_ROTL | ( | v, | |
n | |||
) | (((v) << (n)) | ((v) >> ((sizeof(v) * 8) - n))) |
Definition at line 1225 of file internal.h.
Referenced by rb_float_new_inline().
#define RUBY_BIT_ROTR | ( | v, | |
n | |||
) | (((v) >> (n)) | ((v) << ((sizeof(v) * 8) - n))) |
Definition at line 1226 of file internal.h.
Referenced by rb_float_flonum_value().
#define RUBY_DTRACE_CREATE_HOOK | ( | name, | |
arg | |||
) | RUBY_DTRACE_HOOK(name##_CREATE, arg) |
Definition at line 1753 of file internal.h.
Referenced by ary_new(), core_hash_from_ary(), dsymbol_alloc(), empty_ary_alloc(), empty_hash_alloc(), empty_str_alloc(), rb_obj_alloc(), rb_str_resurrect(), register_static_symid_str(), str_new0(), and str_new_static().
#define RUBY_DTRACE_HOOK | ( | name, | |
arg | |||
) |
Definition at line 1755 of file internal.h.
Referenced by rb_clear_method_cache_by_class(), rb_f_load(), rb_require_internal(), and setup_exception().
#define SERIALT2NUM ULONG2NUM |
Definition at line 651 of file internal.h.
#define SIGNED_INTEGER_MAX | ( | sint_type | ) |
Definition at line 67 of file internal.h.
#define SIGNED_INTEGER_MIN | ( | sint_type | ) | (-SIGNED_INTEGER_MAX(sint_type)-1) |
Definition at line 71 of file internal.h.
#define SIGNED_INTEGER_TYPE_P | ( | int_type | ) | (0 > ((int_type)0)-1) |
Definition at line 66 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 1093 of file internal.h.
Referenced by ary_resize_capa(), gc_mark_roots(), and rb_ary_resize().
#define SIZEOF_ACTUAL_BDIGIT SIZEOF_BDIGIT |
Definition at line 456 of file internal.h.
#define SIZEOF_BDIGIT SIZEOF_INT |
Definition at line 426 of file internal.h.
Referenced by bary_pack(), bary_unpack_internal(), bigfixize(), integer_unpack_single_bdigit(), nlz(), rb_absint_size(), rb_big2str_generic(), rb_big_divrem_normal(), rb_big_mul_toom3(), str2big_karatsuba(), and w_object().
Definition at line 63 of file internal.h.
#define STR_EMBED_P | ( | str | ) | (!FL_TEST_RAW((str), STR_NOEMBED)) |
Definition at line 1488 of file internal.h.
Referenced by dump_append_string_content(), dump_object(), rb_fstring(), rb_str_change_terminator_length(), rb_str_free(), rb_str_init(), rb_str_resize(), rb_str_tmp_frozen_release(), str_buf_cat(), str_capacity(), str_dependent_p(), str_discard(), str_make_independent_expand(), str_new_frozen(), and tr_trans().
#define STR_NOEMBED FL_USER1 |
Definition at line 1486 of file internal.h.
Referenced by rb_str_buf_new(), rb_str_drop_bytes(), rb_str_init(), rb_str_memsize(), str_duplicate(), and str_replace_shared_without_enc().
#define STR_SHARED FL_USER2 /* = ELTS_SHARED */ |
Definition at line 1487 of file internal.h.
Referenced by rb_str_change_terminator_length(), rb_str_drop_bytes(), rb_str_free(), rb_str_memsize(), rb_str_tmp_frozen_release(), str_capacity(), str_dependent_p(), str_discard(), str_duplicate(), str_make_independent_expand(), str_new_frozen(), and str_shared_replace().
#define STR_SHARED_P | ( | s | ) | FL_ALL_RAW((s), STR_NOEMBED|ELTS_SHARED) |
Definition at line 1489 of file internal.h.
Referenced by dump_append_string_content(), dump_object(), fstr_update_callback(), gc_mark_children(), rb_str_drop_bytes(), rb_str_set_len(), and str_replace().
#define STRING_P | ( | s | ) | (RB_TYPE_P((s), T_STRING) && CLASS_OF(s) == rb_cString) |
Definition at line 848 of file internal.h.
Referenced by sort_2().
#define swap16 | ( | x | ) | ((uint16_t)((((x)&0xFF)<<8) | (((x)>>8)&0xFF))) |
Definition at line 100 of file internal.h.
Referenced by bary_pack(), and bary_unpack_internal().
#define swap32 | ( | x | ) |
Definition at line 110 of file internal.h.
Referenced by bary_pack(), and bary_unpack_internal().
#define THROW_DATA_CONSUMED IMEMO_FL_USER0 |
Definition at line 777 of file internal.h.
Referenced by THROW_DATA_CONSUMED_P(), and THROW_DATA_CONSUMED_SET().
Definition at line 787 of file internal.h.
Referenced by errinfo_place(), frame_return_value(), ruby_cleanup(), thread_join(), THROW_DATA_CONSUMED_P(), THROW_DATA_CONSUMED_SET(), and vm_throw_continue().
#define TIMET_MAX_PLUS_ONE (2*(double)(TIMET_MAX/2+1)) |
Definition at line 81 of file internal.h.
#define type_roomof | ( | x, | |
y | |||
) | roomof(sizeof(x), sizeof(y)) |
Definition at line 839 of file internal.h.
#define UNLIKELY | ( | x | ) | RB_UNLIKELY(x) |
Definition at line 27 of file internal.h.
#define UNSIGNED_INTEGER_MAX | ( | uint_type | ) | (~(uint_type)0) |
Definition at line 72 of file internal.h.
#define USE_SYMBOL_GC 1 |
Definition at line 1321 of file internal.h.
#define VALGRIND_MAKE_MEM_DEFINED | ( | p, | |
n | |||
) | 0 |
Definition at line 46 of file internal.h.
#define VALGRIND_MAKE_MEM_UNDEFINED | ( | p, | |
n | |||
) | 0 |
Definition at line 47 of file internal.h.
#define WARN_UNUSED_RESULT | ( | x | ) | x |
Definition at line 34 of file internal.h.
Definition at line 1605 of file internal.h.
typedef struct rb_classext_struct rb_classext_t |
Definition at line 673 of file internal.h.
typedef unsigned long rb_serial_t |
Definition at line 650 of file internal.h.
typedef struct rb_subclass_entry rb_subclass_entry_t |
Definition at line 636 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 581 of file internal.h.
anonymous enum |
Enumerator | |
---|---|
cmp_opt_Fixnum | |
cmp_opt_String | |
cmp_optimizable_count |
Definition at line 855 of file internal.h.
enum imemo_type |
Enumerator | |
---|---|
imemo_env | |
imemo_cref | |
imemo_svar | |
imemo_throw_data | |
imemo_ifunc | |
imemo_memo | |
imemo_ment | |
imemo_iseq | |
imemo_mask |
Definition at line 737 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 1175 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 | ) |
|
inlinestatic |
Definition at line 750 of file internal.h.
References FL_USHIFT, imemo_mask, and RBASIC.
void Init_BareVM | ( | void | ) |
Definition at line 3107 of file vm.c.
References EXIT_FAILURE, Init_native_thread(), MEMZERO, rb_vm_struct::objspace, rb_objspace_alloc(), rb_thread_set_current_raw, ruby_mimmalloc(), ruby_thread_init_stack(), th_init(), rb_thread_struct::vm, and vm_init2().
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.
Referenced by init_libraries_internal(), and process_options().
int Init_enc_set_filesystem_encoding | ( | void | ) |
Definition at line 98 of file localeinit.c.
References alias, ENCINDEX_ASCII, ENCINDEX_UTF_8, name, rb_default_external_encoding(), rb_enc_find_index(), rb_enc_to_index(), rb_encdb_alias(), and rb_encdb_declare().
Referenced by enc_set_default_encoding().
void Init_eval_method | ( | void | ) |
Definition at line 2087 of file vm_method.c.
References idRespond_to, idRespond_to_missing, obj_respond_to(), obj_respond_to_missing(), rb_cModule, rb_define_method(), rb_define_private_method(), rb_eException, rb_mKernel, rb_mod_alias_method(), rb_mod_method_defined(), rb_mod_modfunc(), rb_mod_private(), rb_mod_private_method(), rb_mod_private_method_defined(), rb_mod_protected(), rb_mod_protected_method_defined(), rb_mod_public(), rb_mod_public_method(), rb_mod_public_method_defined(), rb_mod_remove_method(), rb_mod_undef_method(), rb_singleton_class(), rb_vm_top_self(), REPLICATE_METHOD, top_private(), and top_public().
Referenced by Init_eval().
void Init_ext | ( | void | ) |
Definition at line 2 of file dmyext.c.
Referenced by init_libraries_internal(), and process_options().
void Init_File | ( | void | ) |
Definition at line 5953 of file file.c.
References define_filetest_function(), INT2FIX, LOCK_EX, LOCK_NB, LOCK_SH, LOCK_UN, O_BINARY, O_NONBLOCK, O_SHARE_DELETE, PATH_SEP, Qnil, rb_cFile, rb_cIO, rb_cObject, rb_cStat, rb_define_alloc_func(), rb_define_class(), rb_define_class_under(), rb_define_const(), rb_define_global_function(), rb_define_method(), rb_define_module(), rb_define_module_under(), rb_define_singleton_method(), rb_f_test(), rb_file_atime(), rb_file_birthtime, rb_file_blockdev_p(), rb_file_chardev_p(), rb_file_chmod(), rb_file_chown(), rb_file_ctime(), rb_file_directory_p(), rb_file_executable_p(), rb_file_executable_real_p(), rb_file_exist_p(), rb_file_exists_p(), rb_file_file_p(), rb_file_flock(), rb_file_grpowned_p(), rb_file_identical_p(), rb_file_lstat(), rb_file_mtime(), rb_file_owned_p(), rb_file_path(), rb_file_pipe_p(), rb_file_readable_p(), rb_file_readable_real_p(), rb_file_s_absolute_path(), rb_file_s_atime(), rb_file_s_basename(), rb_file_s_birthtime, rb_file_s_chmod(), rb_file_s_chown(), rb_file_s_ctime(), rb_file_s_dirname(), rb_file_s_expand_path(), rb_file_s_extname(), rb_file_s_ftype(), rb_file_s_join(), rb_file_s_lchmod, rb_file_s_lchown, rb_file_s_link, rb_file_s_lstat(), rb_file_s_mkfifo, rb_file_s_mtime(), rb_file_s_path(), rb_file_s_readlink, rb_file_s_realdirpath(), rb_file_s_realpath(), rb_file_s_rename(), rb_file_s_size(), rb_file_s_split(), rb_file_s_stat(), rb_file_s_symlink, rb_file_s_truncate, rb_file_s_umask(), rb_file_s_unlink(), rb_file_s_utime(), rb_file_sgid_p(), rb_file_size(), rb_file_size_p(), rb_file_socket_p(), rb_file_sticky_p(), rb_file_suid_p(), rb_file_symlink_p(), rb_file_truncate, rb_file_world_readable_p(), rb_file_world_writable_p(), rb_file_writable_p(), rb_file_writable_real_p(), rb_file_zero_p(), rb_include_module(), rb_io_stat(), rb_mComparable, rb_mFileTest, rb_obj_freeze(), rb_stat_atime(), rb_stat_b(), rb_stat_birthtime, rb_stat_blksize(), rb_stat_blocks(), rb_stat_c(), rb_stat_cmp(), rb_stat_ctime(), rb_stat_d(), rb_stat_dev(), rb_stat_dev_major(), rb_stat_dev_minor(), rb_stat_f(), rb_stat_ftype(), rb_stat_gid(), rb_stat_grpowned(), rb_stat_init(), rb_stat_init_copy(), rb_stat_ino(), rb_stat_inspect(), rb_stat_l(), rb_stat_mode(), rb_stat_mtime(), rb_stat_nlink(), rb_stat_owned(), rb_stat_p(), rb_stat_r(), rb_stat_R(), rb_stat_rdev(), rb_stat_rdev_major(), rb_stat_rdev_minor(), rb_stat_S(), rb_stat_s(), rb_stat_s_alloc(), rb_stat_sgid(), rb_stat_size(), rb_stat_sticky(), rb_stat_suid(), rb_stat_uid(), rb_stat_w(), rb_stat_W(), rb_stat_wr(), rb_stat_ww(), rb_stat_x(), rb_stat_X(), rb_stat_z(), rb_str_new2, and rb_usascii_str_new2.
Referenced by Init_IO().
void Init_heap | ( | void | ) |
Definition at line 2323 of file gc.c.
References finalizer_table, free(), gc_stress_set(), GET_THREAD, getrusage_time(), heap_add_pages(), heap_eden, ruby_gc_params_t::heap_init_slots, HEAP_PAGE_OBJ_LIMIT, init_mark_stack(), rb_objspace::invoke_time, malloc, rb_objspace::mark_stack, rb_objspace::oldmalloc_increase_limit, ruby_gc_params_t::oldmalloc_limit_min, rb_objspace::profile, rb_objspace, rb_sigaltstack_size(), rb_objspace::rgengc, ruby_initial_gc_stress, and st_init_numtable.
Referenced by ruby_setup().
void Init_native_thread | ( | void | ) |
Referenced by Init_BareVM().
void Init_newline | ( | void | ) |
Referenced by InitVM_transcode().
void Init_prelude | ( | void | ) |
Referenced by ruby_init_prelude().
void Init_vm_backtrace | ( | void | ) |
Definition at line 985 of file vm_backtrace.c.
References backtrace_alloc(), backtrace_dump_data(), backtrace_load_data(), CLASS_OF, location_absolute_path_m(), location_base_label_m(), location_inspect_m(), location_label_m(), location_lineno_m(), location_path_m(), location_to_str_m(), rb_cArray, rb_cBacktrace, rb_cBacktraceLocation, rb_cObject, rb_cThread, rb_define_alloc_func(), rb_define_class_under(), rb_define_global_function(), rb_define_method(), rb_f_caller(), rb_f_caller_locations(), rb_marshal_define_compat(), rb_undef_alloc_func(), rb_undef_method(), RUBY_SYMBOL_EXPORT_BEGIN, and RUBY_SYMBOL_EXPORT_END.
Referenced by Init_VM().
void Init_vm_eval | ( | void | ) |
Definition at line 2209 of file vm_eval.c.
References id_result, id_tag, id_value, METHOD_VISI_PUBLIC, rb_add_method(), rb_cBasicObject, rb_cModule, rb_define_class(), rb_define_global_function(), rb_define_method(), rb_define_private_method(), rb_eArgError, rb_eUncaughtThrow, rb_f_block_given_p(), rb_f_catch(), rb_f_eval(), rb_f_local_variables(), rb_f_loop(), rb_f_public_send(), rb_f_send(), rb_f_throw(), rb_intern, rb_intern_const, rb_method_missing(), rb_mKernel, rb_mod_module_eval(), rb_mod_module_exec(), rb_obj_instance_eval(), rb_obj_instance_exec(), uncaught_throw_init(), uncaught_throw_tag(), uncaught_throw_to_s(), uncaught_throw_value(), and VM_METHOD_TYPE_OPTIMIZED.
Referenced by Init_eval().
void Init_vm_objects | ( | void | ) |
Definition at line 3130 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().
|
inlinestatic |
Definition at line 137 of file internal.h.
References CHAR_BIT.
Referenced by nlz(), and nlz_intptr().
|
inlinestatic |
|
inlinestatic |
Definition at line 167 of file internal.h.
References CHAR_BIT.
Referenced by nlz(), and random_ulong_limited().
NORETURN | ( | void | rb_async_bug_errnoconst char *, int | ) |
NORETURN | ( | void | ruby_only_for_internal_useconst char * | ) |
NORETURN | ( | void | rb_load_failVALUE, const char * | ) |
NORETURN | ( | void | rb_undefined_allocVALUE klass | ) |
NORETURN | ( | void | rb_unexpected_typeVALUE, int | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 315 of file internal.h.
References ntz_int32(), and ntz_int64().
Referenced by search_nonascii().
PRINTF_ARGS | ( | void | ruby_debug_printfconst char *,..., |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | void | rb_compile_error_strVALUE file, int line, void *enc, const char *fmt,..., |
4 | , | ||
5 | |||
) |
PRINTF_ARGS | ( | void | rb_enc_warnrb_encoding *enc, const char *fmt,..., |
2 | , | ||
3 | |||
) |
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 1313 of file array.c.
References NUM2LONG, and rb_ary_entry().
Referenced by Init_Array(), rb_ary_dig(), and rb_obj_dig().
Definition at line 3022 of file array.c.
References ary_resize_smaller(), RARRAY_AREF, RARRAY_LEN, and rb_ary_store().
Referenced by rb_obj_info_dump().
Definition at line 1361 of file array.c.
References ary_take_first_or_last(), ARY_TAKE_LAST, len, Qnil, RARRAY_AREF, and RARRAY_LEN.
Referenced by Init_Array(), range_last(), and rb_gc_register_mark_object().
size_t rb_ary_memsize | ( | VALUE | ) |
Definition at line 555 of file array.c.
References ARY_OWNS_HEAP_P, and RARRAY.
Referenced by obj_memsize_of().
void rb_ary_set_len | ( | VALUE | , |
long | |||
) |
Definition at line 1627 of file array.c.
References ARY_CAPA, ARY_SET_LEN, ARY_SHARED_P, rb_ary_modify_check(), rb_bug(), rb_eRuntimeError, and rb_raise().
Referenced by rb_hash_keys(), and rb_hash_values().
VALUE rb_ary_tmp_new_fill | ( | long | capa | ) |
Definition at line 538 of file array.c.
References ary_memfill(), ary_new(), ARY_SET_LEN, and Qnil.
Referenced by coverage().
Definition at line 1315 of file variable.c.
References Qnil, and rb_ivar_delete().
Definition at line 1942 of file variable.c.
References autoload, check_autoload_table, Check_Type, DATA_PTR, autoload_data_i::feature, FL_TAINT, FL_UNSET, OBJ_TAINTED, PRIsVALUE, Qnil, Qundef, QUOTE_ID, rb_const_lookup(), rb_const_set(), rb_eArgError, rb_eNameError, rb_fstring(), rb_is_const_id(), RB_OBJ_WRITTEN, rb_raise(), rb_safe_level(), rb_str_dup(), RCLASS_IV_TBL, RSTRING_LEN, autoload_data_i::safe_level, st_add_direct, st_data_t, st_init_numtable, st_insert, st_lookup, autoload_data_i::state, T_STRING, TypedData_Make_Struct, TypedData_Wrap_Struct, rb_const_entry_struct::value, and autoload_data_i::value.
Referenced by rb_autoload(), and rb_mod_autoload().
void rb_backref_set_string | ( | VALUE | string, |
long | pos, | ||
long | len | ||
) |
Definition at line 1308 of file re.c.
References FL_TEST, match(), match_alloc(), MATCH_BUSY, match_set_string(), NIL_P, rb_backref_get(), rb_backref_set(), and rb_cMatch.
Referenced by rb_pat_search().
int rb_backtrace_p | ( | VALUE | obj | ) |
Definition at line 410 of file vm_backtrace.c.
References rb_typeddata_is_kind_of().
Referenced by exc_backtrace(), rb_check_backtrace(), and set_backtrace().
void rb_backtrace_print_as_bugreport | ( | void | ) |
Definition at line 760 of file vm_backtrace.c.
References backtrace_each(), oldbt_arg::data, oldbt_arg::func, GET_THREAD, oldbt_bugreport(), oldbt_init(), oldbt_iter_cfunc(), and oldbt_iter_iseq().
Referenced by rb_vm_bugreport().
void rb_backtrace_print_to | ( | VALUE | output | ) |
Definition at line 797 of file vm_backtrace.c.
References backtrace_each(), oldbt_arg::data, oldbt_arg::func, GET_THREAD, oldbt_init(), oldbt_iter_cfunc(), oldbt_iter_iseq(), and oldbt_print_to().
Referenced by load_lock().
Definition at line 631 of file vm_backtrace.c.
References backtrace_to_location_ary(), GetCoreDataFromValue, and rb_backtrace_struct::locary.
Referenced by exc_backtrace_locations().
Definition at line 584 of file vm_backtrace.c.
References rb_backtrace_struct::backtrace_size, backtrace_to_str_ary(), bt_iter_arg::bt, GetCoreDataFromValue, and rb_backtrace_struct::strary.
Referenced by backtrace_dump_data(), exc_backtrace(), and set_backtrace().
Definition at line 4954 of file bignum.c.
References BDIGIT, BDIGITS, big2str_generic(), BIGNUM_LEN, BIGNUM_NEGATIVE_P, CHAR_BIT, RB_GC_GUARD, rb_str_set_len(), rb_usascii_str_new(), RSTRING_LEN, RSTRING_PTR, size, and SIZEOF_BDIGIT.
Definition at line 4871 of file bignum.c.
References big2str_base_poweroftwo().
Definition at line 6685 of file bignum.c.
References BIGNUM_NEGATIVE_P, BIGNUM_SET_POSITIVE_SIGN, and rb_big_clone().
Referenced by rb_int_abs().
Definition at line 6604 of file bignum.c.
References BDIGIT, BDIGITS, big2ulong(), BIGNUM_LEN, BIGNUM_NEGATIVE_P, BIGNUM_POSITIVE_P, BIGNUM_SIGN, BIGSIZE, bigtrunc(), BITSPERDIG, INT2FIX, NUM2LONG, RB_BIGNUM_TYPE_P, and shift().
Referenced by int_aref().
Definition at line 6713 of file bignum.c.
References BARY_ARGS, BARY_SHORT_MUL, BARY_SUB, bary_unpack(), BDIGIT, bdigit_roomof, BIGNUM_NEGATIVE_P, CHAR_BIT, INTEGER_PACK_LSWORD_FIRST, INTEGER_PACK_NATIVE_BYTE_ORDER, LONG2FIX, numberof, rb_absint_singlebit_p(), rb_absint_size(), rb_integer_unpack(), SIZE_MAX, and SIZET2NUM.
Referenced by rb_int_bit_length().
Definition at line 5491 of file bignum.c.
References bary_add_one(), bary_neg(), BDIGIT, BDIGITS, big_extend_carry(), bignorm(), BIGNUM_LEN, BIGNUM_POSITIVE_P, BIGNUM_SET_NEGATIVE_SIGN, BIGNUM_SET_POSITIVE_SIGN, INT2FIX, and rb_big_clone().
Referenced by int_comp().
Definition at line 2698 of file bignum.c.
References assert, bary_divmod_normal(), BARY_TRUNC, BDIGIT, BDIGITS, BDIGITS_ZERO, BIGDIVREM_EXTRA_WORDS, bignew, BIGNUM_LEN, BIGNUM_SIGN, bigtrunc(), CHAR_BIT, count, LONG2FIX, rb_assoc_new(), RB_GC_GUARD, rb_num_zerodiv(), SIZEOF_BDIGIT, and big_div_struct::yn.
Definition at line 6763 of file bignum.c.
References BDIGITS, BIGNUM_LEN, Qfalse, and Qtrue.
Referenced by int_even_p().
Definition at line 6139 of file bignum.c.
References big2dbl(), big_fdiv_float(), big_fdiv_int(), FIX2LONG, FIXNUM_P, isinf(), isnan, rb_big2dbl(), RB_BIGNUM_TYPE_P, RB_FLOAT_TYPE_P, rb_int2big(), rb_intern, rb_num_coerce_bin(), and RFLOAT_VALUE.
Referenced by fix_fdiv_double(), rb_big_fdiv(), and rb_int_fdiv_double().
Definition at line 5422 of file bignum.c.
References big_op(), and big_op_ge.
Referenced by rb_int_ge().
Definition at line 5416 of file bignum.c.
References big_op(), and big_op_gt.
Referenced by rb_int_gt().
Definition at line 6649 of file bignum.c.
References BDIGIT, BDIGITS, BIGNUM_LEN, BIGNUM_SIGN, hash(), rb_memhash(), and ST2FIX.
Referenced by any_hash().
Definition at line 1668 of file bignum.c.
References bary_mul_balance_with_mulfunc(), BDIGITS, bignew, BIGNUM_LEN, BIGNUM_SIGN, NULL, and RB_GC_GUARD.
Definition at line 1849 of file bignum.c.
References bary_mul_karatsuba(), BDIGITS, bignew, BIGNUM_LEN, BIGNUM_SIGN, KARATSUBA_BALANCED, NULL, rb_eArgError, RB_GC_GUARD, and rb_raise().
Definition at line 1540 of file bignum.c.
References bary_mul_normal(), BDIGITS, bignew, BIGNUM_LEN, BIGNUM_SIGN, and RB_GC_GUARD.
Definition at line 2246 of file bignum.c.
References assert, bary_mul_toom3(), BDIGIT, BDIGITS, BDIGITS_ZERO, bignew, BIGNUM_LEN, BIGNUM_SIGN, CHAR_BIT, count, NULL, rb_eArgError, RB_GC_GUARD, rb_raise(), SIZEOF_BDIGIT, and TOOM3_BALANCED.
Definition at line 6754 of file bignum.c.
References BDIGITS, BIGNUM_LEN, Qfalse, and Qtrue.
Referenced by int_odd_p().
Definition at line 6050 of file bignum.c.
References bigdivrem(), bignorm(), FIX2LONG, FIXNUM_P, RB_BIGNUM_TYPE_P, rb_int2big(), rb_intern, and rb_num_coerce_bin().
Referenced by int_remainder().
size_t rb_big_size | ( | VALUE | ) |
Definition at line 6701 of file bignum.c.
References BIGSIZE.
Referenced by int_round_zero_p(), and rb_big_size_m().
Definition at line 6707 of file bignum.c.
References rb_big_size(), and SIZET2NUM.
Referenced by int_size().
Definition at line 1609 of file bignum.c.
References bary_sq_fast(), BDIGITS, bignew, BIGNUM_LEN, and RB_GC_GUARD.
Definition at line 5481 of file bignum.c.
References bignorm(), BIGNUM_NEGATE, and rb_big_clone().
Referenced by rand_int(), rb_int_uminus(), and rb_str_format().
int rb_block_arity | ( | void | ) |
Definition at line 1041 of file proc.c.
References block_handler_type_proc, block_handler_type_symbol, block_setup(), rb_thread_struct::cfp, GET_THREAD, GetProcPtr, rb_proc_t::is_lambda, max(), rb_block::proc, rb_eArgError, rb_raise(), rb_vm_block_min_max_arity(), rb_vm_frame_block_handler(), UNLIMITED_ARGUMENTS, VM_BLOCK_HANDLER_NONE, and vm_block_type().
Referenced by enum_each_cons(), enum_each_slice(), env_each_pair(), rb_ary_zip(), rb_hash_any_p(), rb_hash_each_pair(), and rb_struct_each_pair().
int rb_block_min_max_arity | ( | int * | max | ) |
Definition at line 1075 of file proc.c.
References block_setup(), rb_thread_struct::cfp, GET_THREAD, rb_eArgError, rb_raise(), rb_vm_block_min_max_arity(), rb_vm_frame_block_handler(), and VM_BLOCK_HANDLER_NONE.
Referenced by enum_collect().
int rb_bug_reporter_add | ( | void(*)(FILE *, void *) | func, |
void * | data | ||
) |
Definition at line 314 of file error.c.
References bug_reporters_size, bug_reporters::data, bug_reporters::func, and MAX_BUG_REPORTERS.
Definition at line 645 of file error.c.
References builtin_class_name(), NORETURN(), rb_obj_classname(), and unexpected_type().
Referenced by enum_to_h_i(), lookup_str_id(), rb_hash_s_create(), rb_obj_clone2(), rb_sym2id(), and sym_check_asciionly().
const char* rb_builtin_type_name | ( | int | t | ) |
Definition at line 609 of file error.c.
References name, and numberof.
Referenced by compile_dstr_fragments(), unexpected_type(), and w_object().
void rb_call_end_proc | ( | VALUE | data | ) |
Definition at line 11 of file eval_jump.c.
References rb_ary_new(), and rb_proc_call().
Referenced by m_core_set_postexe(), and rb_f_at_exit().
void rb_call_inits | ( | void | ) |
VALUE rb_catch_protect | ( | VALUE | t, |
rb_block_call_func * | func, | ||
VALUE | data, | ||
int * | stateptr | ||
) |
Definition at line 2041 of file vm_eval.c.
References GET_THREAD, and vm_catch_protect().
Referenced by exec_recursive().
Definition at line 1006 of file error.c.
References err, NIL_P, RARRAY_AREF, RARRAY_LEN, rb_ary_new3, rb_backtrace_p(), rb_raise(), RB_TYPE_P, T_ARRAY, and T_STRING.
Referenced by exc_set_backtrace(), and rb_get_backtrace().
Referenced by take_items().
Definition at line 445 of file vm_eval.c.
References check_funcall_callable(), check_funcall_missing(), check_funcall_respond_to(), CLASS_OF, GET_THREAD, rescue_funcall_args::me, rb_search_method_entry(), rescue_funcall_args::respond, stack_check(), and vm_call0().
Referenced by rb_check_funcall().
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 465 of file vm_eval.c.
References argc, argv, check_funcall_callable(), check_funcall_missing(), check_funcall_respond_to(), CLASS_OF, FALSE, GET_THREAD, rescue_funcall_args::me, rescue_funcall_args::mid, Qundef, rb_search_method_entry(), rescue_funcall_args::recv, rescue_funcall_args::respond, stack_check(), TRUE, and vm_call0().
Referenced by rb_obj_dig().
Definition at line 3147 of file variable.c.
References Qundef, RB_OBJ_WRITTEN, RCLASS_IV_TBL, result, st_data_t, and st_insert.
Referenced by find_class_path(), rb_cvar_set(), rb_ivar_set(), and rb_singleton_class_attached().
Definition at line 710 of file object.c.
References class_or_module_required(), class_search_ancestor(), and RCLASS_ORIGIN.
Referenced by umethod_bind().
void rb_clear_trace_func | ( | void | ) |
Definition at line 214 of file vm_trace.c.
References GET_VM, rb_vm_struct::living_threads, Qundef, rb_remove_event_hook(), and rb_threadptr_remove_event_hook().
Referenced by ruby_finalize_0(), and ruby_options().
Definition at line 754 of file complex.c.
References CLASS_OF, f_add(), f_complex_new2(), f_mul(), f_sub(), f_zero_p(), get_dat1, get_dat2, k_numeric_p(), rb_num_coerce_bin(), RB_TYPE_P, safe_mul(), and T_COMPLEX.
Referenced by fix_mul().
Definition at line 673 of file complex.c.
References CLASS_OF, f_add(), f_complex_new2(), get_dat1, get_dat2, k_numeric_p(), rb_num_coerce_bin(), RB_TYPE_P, and T_COMPLEX.
Referenced by fix_plus(), and Init_Complex().
Definition at line 1794 of file variable.c.
References rb_funcallv, rb_intern, and rb_vm_inc_const_missing_count().
Referenced by rb_const_get_0(), and rb_mod_const_get().
Definition at line 6031 of file gc.c.
References check_rvalue_consistency(), GET_HEAP_WB_UNPROTECTED_BITS, MARK_IN_BITMAP, rb_objspace, RVALUE_AGE_RESET_RAW(), RVALUE_DEMOTE(), RVALUE_OLD_P(), and RVALUE_WB_UNPROTECTED().
Referenced by init_copy().
Definition at line 4018 of file bignum.c.
References ADV, ASSERT_LEN, bad, bignorm(), BIGNUM_SET_SIGN, bit_length, conv_digit, GMP_STR2BIG_DIGITS, invalid_radix(), ISSPACE, KARATSUBA_MUL_DIGITS, len, LONG2FIX, maxpow_in_bdigit_dbl(), NULL, POSFIXABLE, POW2_P, Qnil, rb_uint2big(), result, roomof, ruby_scan_digits(), str2big_karatsuba(), str2big_normal(), str2big_poweroftwo(), str2big_scan_digits(), val, and valid_radix_p().
Referenced by rb_cstr_to_inum(), and rb_str_to_inum().
Definition at line 2560 of file rational.c.
References parse_rat(), rb_eFloatDomainError, RB_FLOAT_TYPE_P, and rb_raise().
Referenced by str2num().
VALUE rb_current_realfilepath | ( | void | ) |
Definition at line 2199 of file vm_eval.c.
References rb_iseq_location_struct::absolute_path, rb_iseq_struct::body, rb_thread_struct::cfp, GET_THREAD, rb_control_frame_struct::iseq, rb_iseq_constant_body::location, Qnil, RUBY_VM_PREVIOUS_CONTROL_FRAME, and vm_get_ruby_level_caller_cfp().
Referenced by eval_string_with_cref(), f_current_dirname(), and rb_f_require_relative().
VALUE rb_dbl_hash | ( | double | d | ) |
Definition at line 1442 of file numeric.c.
References LONG2FIX, and rb_dbl_long_hash().
Referenced by flo_hash().
long rb_dbl_long_hash | ( | double | d | ) |
Definition at line 149 of file hash.c.
References rb_hash_start(), rb_memhash(), and rb_objid_hash().
Referenced by any_hash(), and rb_dbl_hash().
Definition at line 3238 of file file.c.
References append_wstr(), copy_home_path(), endpwent, getenv, getlogin(), rb_eArgError, rb_filesystem_encoding(), rb_raise(), rb_w32_filecp(), rb_w32_home_dir(), result, and xfree().
Referenced by dir_s_home(), and rb_file_expand_path_internal().
Definition at line 2792 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(), Init_Numeric(), and InitVM_Object().
int rb_divert_reserved_fd | ( | int | fd | ) |
Definition at line 7024 of file compile.c.
References rb_iseq_struct::body, rb_iseq_constant_body::local_table, rb_iseq_constant_body::local_table_size, NULL, rb_iseq_constant_body::parent_iseq, rb_iseq_constant_body::type, and vm_block_iseq().
Referenced by dvar_defined_gen().
size_t rb_econv_memsize | ( | rb_econv_t * | ) |
Definition at line 1716 of file transcode.c.
References rb_econv_t::elems, rb_econv_t::in_buf_end, rb_econv_t::in_buf_start, rb_econv_t::num_allocated, rb_econv_t::num_trans, rb_econv_elem_t::out_buf_end, rb_econv_elem_t::out_buf_start, rb_transcoding_memsize(), rb_econv_t::replacement_allocated, rb_econv_t::replacement_len, size, and rb_econv_elem_t::tc.
Referenced by rb_io_memsize().
rb_encoding* rb_enc_check_str | ( | VALUE | str1, |
VALUE | str2 | ||
) |
Definition at line 868 of file encoding.c.
References rb_encoding_entry::enc, enc_compatible_str(), MUST_STRING, rb_eEncCompatError, rb_enc_get(), rb_enc_name, and rb_raise().
Referenced by rb_str_plus(), and rb_str_subpat_set().
rb_encoding* rb_enc_get_from_index | ( | int | index | ) |
Definition at line 628 of file encoding.c.
References must_encindex().
Referenced by get_actual_encoding(), and str_new_static().
Definition at line 389 of file encoding.c.
References rb_enc_from_index(), rb_enc_registered(), and set_base_encoding().
int rb_enc_set_dummy | ( | int | index | ) |
Definition at line 400 of file encoding.c.
References rb_encoding_entry::enc, ENC_SET_DUMMY, and enc_table.
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.
References rb_encoding_entry::enc, enc_replicate_with_index(), ENC_SET_DUMMY, enc_table, rb_ascii8bit_encoding(), and rb_enc_registered().
Definition at line 454 of file encoding.c.
References enc_register(), enc_replicate_with_index(), rb_enc_from_index(), and 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 1313 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, NULL, opt_eq_func(), and vm_call0().
Referenced by rb_ary_includes(), rb_ary_index(), and rb_ary_rindex().
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 after_fork_ruby, before_fork_ruby, buf, chfunc(), rb_execarg::cmd, rb_execarg::envp_str, err, ERRMSG, errno, EWOULDBLOCK, EXIT_FAILURE, EXIT_SUCCESS, getegid(), geteuid(), getgid(), getuid(), INT2FIX, rb_execarg::invoke, len, NIL_P, NSIG, NULL, waitpid_arg::pid, PIDT2NUM, preserving_errno, proc_exec_cmd(), proc_exec_sh(), Qnil, Qundef, rb_block_given_p(), rb_cloexec_fcntl_dupfd(), rb_during_gc(), rb_execarg_run_options(), rb_f_fork, rb_fork_async_signal_safe(), rb_fork_ruby(), rb_gc(), rb_hash_lookup(), rb_jump_tag(), rb_pipe(), rb_protect(), rb_sys_fail(), rb_syserr_fail(), rb_syswait(), rb_thread_atfork(), rb_thread_sleep(), rb_update_max_fd(), rb_yield(), RSTRING_PTR, RTEST, ruby_stop(), rb_execarg::sh, size, strlen(), and rb_execarg::use_shell.
Referenced by chfunc(), rb_f_exec(), and rb_pipe().
Definition at line 1669 of file process.c.
References rb_execarg::chdir_dir, rb_execarg::chdir_given, check_exec_redirect(), check_gid_switch(), check_uid_switch(), rb_execarg::close_others_do, rb_execarg::close_others_given, EXPORT_DUP, FilePathValue, rb_execarg::gid, rb_execarg::gid_given, hide_obj(), id, id_chdir, id_close_others, id_err, id_gid, id_in, id_out, id_uid, id_umask, id_unsetenv_others, INT2FIX, mode_t, rb_execarg::new_pgroup_flag, rb_execarg::new_pgroup_given, NUM2MODET, NUM2PIDT, OBJ2GID, OBJ2UID, rb_execarg::pgroup_given, rb_execarg::pgroup_pgid, Qtrue, rb_check_id(), rb_eArgError, rb_eNotImpError, rb_execarg_get(), RB_GC_GUARD, rb_raise(), rb_str_encode_ospath(), RTEST, ST_CONTINUE, ST_STOP, T_ARRAY, T_FILE, T_FIXNUM, T_SYMBOL, TYPE, rb_execarg::uid, rb_execarg::uid_given, rb_execarg::umask_given, rb_execarg::umask_mask, rb_execarg::unsetenv_others_do, and rb_execarg::unsetenv_others_given.
Referenced by check_exec_options_i(), check_exec_options_i_extract(), pipe_open(), and rb_execarg_parent_start1().
Definition at line 1928 of file process.c.
References check_exec_options_i_extract(), Qnil, rb_hash_tbl_raw(), RHASH_EMPTY_P, st_data_t, and st_foreach.
Referenced by rb_io_s_popen().
struct rb_execarg* rb_execarg_get | ( | VALUE | execarg_obj | ) |
Definition at line 2268 of file process.c.
References TypedData_Get_Struct.
Referenced by establishShell(), execarg_parent_end(), pipe_open(), rb_exec_fail(), rb_exec_fillarg(), rb_execarg_addopt(), rb_execarg_init(), rb_execarg_parent_start1(), rb_execarg_setenv(), rb_f_exec(), and rb_f_spawn().
Definition at line 2276 of file process.c.
References ALLOCV_END, ALLOCV_N, argv, rb_execarg::argv_buf, rb_execarg::cmd, env, rb_execarg::invoke, MEMCPY, Qnil, rb_exec_fillarg(), rb_exec_getargs(), rb_execarg_get(), RB_GC_GUARD, rb_execarg::sh, and rb_execarg::use_shell.
Referenced by rb_execarg_new().
Definition at line 2257 of file process.c.
References hide_obj(), rb_cData, rb_execarg_init(), and TypedData_Make_Struct.
Referenced by establishShell(), pipe_open_s(), rb_f_exec(), rb_f_spawn(), rb_io_s_popen(), and rb_spawn_internal().
void rb_execarg_parent_end | ( | VALUE | execarg_obj | ) |
Definition at line 2496 of file process.c.
References execarg_parent_end(), and RB_GC_GUARD.
Referenced by establishShell(), pipe_open(), and rb_execarg_parent_start().
void rb_execarg_parent_start | ( | VALUE | execarg_obj | ) |
Definition at line 2457 of file process.c.
References rb_execarg_parent_end(), rb_execarg_parent_start1(), rb_jump_tag(), and rb_protect().
Referenced by establishShell(), pipe_open(), rb_f_exec(), and rb_pipe().
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 rb_execarg::chdir_dir, rb_execarg::chdir_given, rb_execarg::close_others_do, rb_execarg::close_others_given, rb_execarg::close_others_maxhint, rb_execarg::dup2_tmpbuf, rb_execarg::env_modification, ERRMSG, rb_execarg::fd_close, rb_execarg::fd_dup2, rb_execarg::fd_dup2_child, rb_execarg::gid, rb_execarg::gid_given, hide_obj(), key, len, MEMZERO, mode_t, my_getcwd, NIL_P, rb_execarg::pgroup_given, Qfalse, Qnil, RARRAY_AREF, RARRAY_LEN, rb_close_before_exec(), rb_env_clear(), rb_str_new(), rb_str_new2, rb_str_set_len(), rb_warn(), rb_execarg::redirect_fds, rb_execarg::rlimit_limits, RSTRING_PTR, ruby_setenv(), run_exec_close(), run_exec_dup2(), run_exec_dup2_child(), run_exec_dup2_tmpbuf_size(), save_env(), setgid(), setuid(), StringValueCStr, tmpbuf, rb_execarg::uid, rb_execarg::uid_given, umask(), rb_execarg::umask_given, rb_execarg::umask_mask, rb_execarg::unsetenv_others_do, rb_execarg::unsetenv_others_given, val, and xfree().
Referenced by pipe_open(), rb_exec_async_signal_safe(), and rb_spawn_process().
Definition at line 2293 of file process.c.
References env, rb_execarg::env_modification, NIL_P, rb_execarg::path_env, Qfalse, rb_check_exec_env(), and rb_execarg_get().
Referenced by rb_io_s_popen().
Definition at line 980 of file vm_eval.c.
References CALL_FCALL, and send_internal().
Referenced by Init_vm_eval().
void rb_fiber_reset_root_local_storage | ( | VALUE | ) |
Definition at line 1529 of file cont.c.
References rb_fiber_struct::cont, rb_thread_struct::fiber, GetThreadPtr, rb_thread_struct::local_storage, rb_thread_struct::root_fiber, and rb_context_struct::saved_thread.
Referenced by ruby_vm_destruct().
Definition at line 3693 of file file.c.
References expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_construct_expanded_load_path(), and rb_feature_provided().
Definition at line 3308 of file file.c.
References ALLOC_N, ALLOCA_N, ALLOCV_END, ALLOCV_N, append_fspath(), append_wstr(), buf, BUFCHECK, BUFCOPY, BUFINIT, chompdirsep(), code_page(), ENC_CODERANGE_7BIT, ENC_CODERANGE_CLEAR, ENCINDEX_UTF_8, ENCODING_GET, fix_string_encoding, free(), Inc, INVALID_CODE_PAGE, IS_DIR_SEPARATOR_P, IS_DIR_UNC_P, isADS, isdirsep, istrailinggarbage, L, len, lstat, MAXPATHLEN, mbstr_to_wstr, memcpy, my_getcwd, nextdirsep, NIL_P, NULL, OBJ_TAINT, OBJ_TAINTED, PATH_BUFFER_SIZE, path_drive(), PRIsVALUE, Qnil, rb_default_home_dir(), rb_eArgError, rb_enc_associate(), rb_enc_check(), rb_enc_copy(), rb_enc_get(), rb_enc_raise(), rb_enc_str_asciionly_p(), rb_enc_str_coderange(), rb_eRangeError, rb_exc_new_str(), rb_exc_raise(), rb_file_expand_path_internal(), rb_filesystem_encoding(), rb_home_dir_of(), rb_is_absolute_path(), rb_raise(), rb_str_cat_conv_enc_opts(), rb_str_encode_ospath(), rb_str_modify_expand(), rb_str_new_cstr(), rb_str_resize(), rb_str_set_len(), rb_utf8_encoding(), rb_w32_home_dir(), remove_invalid_alternative_data(), replace_to_long_name(), replace_wchar(), result, RSTRING_LEN, RSTRING_PTR, S_ISLNK, size, skipprefix, skiproot(), STRCASECMP, StringValuePtr, strlcat(), strlen(), strncasecmp, strrdirsep, system_code_page, TOLOWER, user_length_in_path(), WITH_ROOTDIFF, and xfree().
Referenced by file_expand_path_1(), rb_file_expand_path_internal(), rb_find_file_ext_safe(), and rb_find_file_safe().
int rb_file_load_ok | ( | const char * | ) |
Definition at line 5724 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().
Referenced by rb_f_load(), rb_find_file_ext_safe(), and rb_find_file_safe().
Definition at line 385 of file internal.h.
References div, NULL, and rb_fix_divmod_fix().
Referenced by fix_divide().
Definition at line 357 of file internal.h.
References div, FIX2LONG, FIXNUM_MIN, LONG2FIX, LONG2NUM, and mod.
Referenced by divmodv(), fix_divmod(), rb_fix_div_fix(), and rb_fix_mod_fix().
Definition at line 396 of file internal.h.
References mod, NULL, and rb_fix_divmod_fix().
Definition at line 336 of file internal.h.
References FIX2LONG, LONG2FIX, MUL_OVERFLOW_FIXNUM_P, rb_big_mul(), and rb_int2big().
Definition at line 3508 of file numeric.c.
References fix_plus().
Referenced by ary_inject_op(), enum_sum(), rb_ary_sum(), and sum_iter().
Definition at line 1704 of file numeric.c.
References DBL2NUM, RFLOAT_VALUE, and val.
Referenced by Init_Numeric(), and numeric_polar().
|
inlinestatic |
Definition at line 1230 of file internal.h.
References RUBY_BIT_ROTR.
Referenced by rb_float_value_inline(), rb_num2dbl(), and rb_num_to_dbl().
Definition at line 1513 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.
Referenced by f_gt_p(), and Init_Numeric().
|
inlinestatic |
Definition at line 1266 of file internal.h.
References rb_float_new_in_heap(), and RUBY_BIT_ROTL.
Referenced by rb_float_new().
|
inlinestatic |
Definition at line 1251 of file internal.h.
Referenced by rb_float_value_inline(), rb_num2dbl(), and rb_num_to_dbl().
Definition at line 1314 of file numeric.c.
References DBL2NUM, FIX2LONG, idPow, num_funcall1(), rb_big2dbl(), rb_complex_raw1, rb_num_coerce_bin(), RB_TYPE_P, RFLOAT_VALUE, round(), T_BIGNUM, T_FIXNUM, and T_FLOAT.
Referenced by Init_Numeric(), and nurat_expt().
Definition at line 1057 of file numeric.c.
References DBL2NUM, and RFLOAT_VALUE.
Referenced by Init_Numeric().
|
inlinestatic |
Definition at line 1257 of file internal.h.
References FLONUM_P, rb_float_flonum_value(), and rb_float_noflonum_value().
Referenced by rb_float_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 | ||
) |
Referenced by establishShell(), pipe_open(), rb_exec_async_signal_safe(), and rb_spawn_process().
rb_pid_t rb_fork_ruby | ( | int * | status | ) |
Referenced by pipe_open(), and rb_exec_async_signal_safe().
Definition at line 305 of file string.c.
References BARE_STRING_P, Check_Type, FL_TEST, OBJ_FREEZE_RAW, register_fstring(), RSTRING_FSTR, STR_EMBED_P, str_replace_shared_without_enc(), and T_STRING.
Referenced by case_when_optimizable_literal(), compile_dstr_fragments(), eval_string_with_cref(), get_loaded_features_index(), ibf_load_location_str(), ibf_load_object_string(), iseq_compile_each(), iseqw_s_compile_file(), prepare_iseq_build(), rb_autoload_str(), rb_construct_expanded_load_path(), rb_enc_reg_new(), rb_insns_name_array(), rb_provide_feature(), rb_str_intern(), reg_set_source(), register_static_symid_str(), when_vals(), and yyparse().
Definition at line 387 of file string.c.
References rb_fstring_new(), and strlen().
Referenced by caller_location(), enc_name(), Init_VM(), iseqw_s_compile(), iseqw_s_compile_file(), make_no_method_exception(), raise_method_missing(), rb_autoload(), rb_binding_add_dynavars(), rb_enc_aliases_enc_i(), rb_enc_name_list_i(), rb_iseq_compile_with_option(), rb_iseq_new_main(), sig_list(), and syntax_error_initialize().
Definition at line 373 of file string.c.
References ENCINDEX_US_ASCII, register_fstring(), and setup_fake_str().
Referenced by check_id_type(), check_setter_id(), 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 683 of file proc.c.
References cfunc_proc_new(), rb_cProc, and rb_vm_ifunc_new().
VALUE rb_func_proc_new | ( | rb_block_call_func_t | func, |
VALUE | val | ||
) |
Definition at line 676 of file proc.c.
References cfunc_proc_new(), rb_cProc, and rb_vm_ifunc_proc_new().
Referenced by rb_hash_to_proc(), and vm_caller_setup_arg_block().
int rb_gc_for_fd | ( | int | err | ) |
Definition at line 876 of file io.c.
References rb_gc().
Referenced by dir_initialize(), do_opendir(), open_load_file(), rb_dir_s_empty_p(), rb_fdopen(), rb_pipe(), rb_sysopen(), rsock_socket(), ruby_dup(), and sock_initialize().
void rb_gc_free_dsymbol | ( | VALUE | ) |
Definition at line 629 of file symbol.c.
References symbols::dsymbol_fstr_hash, global_symbols, rb_hash_delete_entry(), RSYMBOL, and unregister_sym().
Referenced by obj_free().
void rb_gc_mark_global_tbl | ( | void | ) |
Definition at line 593 of file variable.c.
References mark_global_entry(), rb_global_tbl, and rb_id_table_foreach_values().
Referenced by gc_mark_roots().
Definition at line 4024 of file gc.c.
References gc_mark_values(), and rb_objspace.
Referenced by rb_thread_mark().
void rb_gc_resurrect | ( | VALUE | ptr | ) |
void rb_gc_verify_internal_consistency | ( | void | ) |
Definition at line 5298 of file gc.c.
References gc_verify_internal_consistency(), and Qnil.
Referenced by vm_pop_frame().
void rb_gc_writebarrier_remember | ( | VALUE | obj | ) |
Definition at line 5967 of file gc.c.
References gc_grey(), gc_report, is_incremental_marking, obj_info(), rb_objspace, rgengc_remember(), RVALUE_BLACK_P(), and RVALUE_OLD_P().
Referenced by ary_memcpy0(), newobj_init(), rb_ary_modify(), rb_hash_keys(), rb_hash_values(), and vm_env_write_slowpath().
Definition at line 1850 of file rational.c.
References f_gcd(), and nurat_int_value().
Referenced by Init_Rational(), and rb_int_fdiv_double().
Definition at line 335 of file rational.c.
References f_gcd_normal().
size_t rb_generic_ivar_memsize | ( | VALUE | ) |
Definition at line 1200 of file variable.c.
References gen_ivtbl_bytes(), gen_ivtbl_get(), and gen_ivtbl::numiv.
Referenced by obj_memsize_of().
Definition at line 965 of file error.c.
References CLASS_OF, exc_backtrace(), EXEC_EVENT_HOOK, GET_THREAD, id_backtrace, NIL_P, Qnil, Qundef, rb_check_backtrace(), rb_eException, rb_funcall(), rb_method_basic_definition_p(), RUBY_EVENT_C_CALL, and RUBY_EVENT_C_RETURN.
Referenced by adjust_backtrace_in_eval(), errat_getter(), rb_threadptr_error_print(), and setup_exception().
VALUE rb_get_coverages | ( | void | ) |
Definition at line 5004 of file thread.c.
Referenced by coverage(), prepare_iseq_build(), rb_coverage_peek_result(), and rb_coverage_start().
VALUE rb_get_expanded_load_path | ( | void | ) |
Definition at line 107 of file load.c.
References EXPAND_ALL, EXPAND_HOME, EXPAND_NON_CACHE, EXPAND_RELATIVE, rb_vm_struct::expanded_load_path, GET_VM, rb_vm_struct::load_path, rb_vm_struct::load_path_check_cache, load_path_getcwd(), rb_vm_struct::load_path_snapshot, Qtrue, rb_ary_shared_with_p(), rb_construct_expanded_load_path(), and rb_str_equal().
Referenced by rb_feature_p(), rb_find_file_ext_safe(), and rb_find_file_safe().
int rb_get_next_signal | ( | void | ) |
Definition at line 739 of file signal.c.
References ATOMIC_DEC, RUBY_NSIG, and signal_buff.
Referenced by rb_threadptr_execute_interrupts().
Definition at line 190 of file file.c.
References check_path_encoding(), file_path_convert(), insecure_obj_p, rb_insecure_operation(), rb_str_new4, and StringValueCStr.
Referenced by rb_construct_expanded_load_path(), and rb_get_path_check().
Definition at line 168 of file file.c.
References CONST_ID, insecure_obj_p, Qundef, rb_check_funcall(), rb_insecure_operation(), RB_TYPE_P, StringValue, and T_STRING.
Referenced by rb_construct_expanded_load_path(), rb_f_load(), and rb_get_path_check().
struct rb_global_entry* rb_global_entry | ( | ID | ) |
Definition at line 481 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_global_tbl, 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 compile_named_capture_assign(), ibf_load_gentry(), iseq_build_from_ary_body(), rb_alias_variable(), rb_define_hooked_variable(), rb_f_trace_var(), rb_gv_get(), rb_gv_set(), and vm_defined().
VALUE rb_gvar_defined | ( | struct rb_global_entry * | ) |
Definition at line 859 of file variable.c.
References rb_global_variable::getter, Qfalse, Qtrue, rb_gvar_undef_getter(), and rb_global_entry::var.
Referenced by vm_defined().
VALUE rb_gvar_get | ( | struct rb_global_entry * | ) |
Definition at line 791 of file variable.c.
References rb_global_variable::data, rb_global_variable::getter, rb_global_entry::id, and rb_global_entry::var.
Referenced by rb_gv_get().
VALUE rb_gvar_set | ( | struct rb_global_entry * | , |
VALUE | |||
) |
Definition at line 824 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_en(), trace_ev(), trace_data::val, val, and rb_global_entry::var.
Referenced by rb_gv_set().
Definition at line 3034 of file hash.c.
References add_new_i(), hash(), rb_hash_tbl_raw(), st_update(), and val.
Referenced by ary_add_hash(), ary_add_hash_by(), lazy_uniq_i(), uniq_func(), and uniq_iter().
Definition at line 2797 of file hash.c.
References Qfalse, Qtrue, and RHASH.
Referenced by Init_Hash(), and rb_hash_compare_by_id().
Definition at line 817 of file hash.c.
References CLASS_OF, FL_TEST, HASH_PROC_DEFAULT, id_default, id_yield, Qnil, Qundef, rb_funcall(), rb_method_basic_definition_p(), and RHASH_IFNONE.
Referenced by rb_hash_aref(), rb_hash_shift(), and rb_str_format().
Definition at line 1112 of file hash.c.
References FL_SET, HASH_DELETED, Qundef, RHASH, RHASH_ITER_LEV, st_data_t, st_delete, st_delete_safe, and val.
Referenced by rb_gc_free_dsymbol(), rb_hash_delete(), rb_hash_delete_m(), rb_hash_shift(), rb_sym2id(), and recursive_pop().
Definition at line 2017 of file hash.c.
References keys_i(), Qundef, 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_check().
Referenced by Init_Hash(), local_var_list_finish(), rb_struct_s_def(), and struct_make_members_list().
st_index_t rb_hash_proc | ( | st_index_t | hash, |
VALUE | proc | ||
) |
Definition at line 1193 of file proc.c.
References rb_block::as, rb_proc_t::block, rb_block::captured, rb_captured_block::code, rb_captured_block::ep, GetProcPtr, rb_hash_uint(), rb_captured_block::self, and rb_captured_block::val.
Referenced by proc_hash(), and rb_hash_method_definition().
Definition at line 793 of file hash.c.
References hash(), hash_alloc(), rb_eRuntimeError, rb_hash_foreach(), rb_hash_modify_check(), rb_hash_rehash_i(), rb_raise(), RHASH, RHASH_ITER_LEV, st_free_table, and st_init_table_with_size.
Referenced by ibf_load_object_hash(), Init_Hash(), iseq_set_sequence(), rb_hash_compare_by_id(), and rb_hash_initialize_copy().
Definition at line 1039 of file hash.c.
References NIL_P, rb_check_convert_type(), rb_eTypeError, rb_hash_modify_check(), rb_obj_classname(), rb_obj_is_proc(), rb_raise(), SET_DEFAULT, SET_PROC_DEFAULT, and T_DATA.
Referenced by gc_stat_internal(), and Init_Hash().
Definition at line 490 of file hash.c.
References hash_tbl().
Referenced by iseq_build_from_ary_body(), iseq_compile_each(), rb_ary_and(), rb_ary_diff(), rb_ary_uniq_bang(), rb_check_exec_env(), rb_check_exec_options(), rb_execarg_extract_options(), rb_extract_keywords(), rb_hash_add_new_element(), rb_reset_coverages(), rb_thread_start_timer_thread(), and unknown_keyword_error().
Definition at line 2061 of file hash.c.
References Qundef, 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, st_values_check(), and values_i().
Referenced by enum_uniq(), Init_Hash(), rb_ary_or(), and rb_ary_uniq().
Definition at line 3198 of file file.c.
References copy_home_path(), endpwent, getenv, getlogin(), PRIsVALUE, rb_eArgError, rb_enc_get(), rb_filesystem_encoding(), rb_raise(), rb_str_conv_enc(), rb_utf8_encoding(), result, RSTRING_PTR, and strcasecmp.
Referenced by dir_s_home(), and rb_file_expand_path_internal().
Definition at line 158 of file symbol.c.
References attrsetname_to_attr(), and rb_id2str().
ID rb_id_encoding | ( | void | ) |
Definition at line 753 of file encoding.c.
References CONST_ID, and id_encoding.
Referenced by dir_initialize(), enc_get_index_str(), enc_set_index(), Init_IO(), rb_str_init(), and w_encoding().
Definition at line 9640 of file string.c.
References rb_id2str, and rb_str_quote_unprintable().
VALUE rb_ident_hash_new | ( | void | ) |
Definition at line 2808 of file hash.c.
References hash(), rb_hash_new(), RHASH, and st_init_table.
Referenced by handle_interrupt_arg_check_i(), hidden_identity_hash_new(), Init_sym(), parser_set_compile_option_flag(), rb_struct_s_def(), rb_uninterruptible(), reachable_object_from_root_i(), reachable_objects_from_root(), recursive_list_access(), struct_make_members_list(), and yycompile0().
Definition at line 1971 of file gc.c.
References FL_USHIFT, newobj_of(), rb_imemo_new(), T_IMEMO, and TRUE.
Referenced by iseq_imemo_alloc(), rb_imemo_new(), rb_method_entry_alloc(), svar_new(), THROW_DATA_NEW(), vm_cref_new0(), and vm_env_new().
st_table* rb_init_identtable | ( | void | ) |
Definition at line 2816 of file hash.c.
References st_init_table.
Referenced by obj_alloc_by_klass(), rb_marshal_dump_limited(), rb_marshal_load_with_proc(), and w_object().
st_table* rb_init_identtable_with_size | ( | st_index_t | size | ) |
Definition at line 2822 of file hash.c.
References st_init_table_with_size.
VALUE rb_insns_name_array | ( | void | ) |
Definition at line 6518 of file compile.c.
References numberof, rb_ary_new(), rb_ary_push(), rb_fstring(), rb_obj_freeze(), and rb_str_new2.
Referenced by Init_VM().
Definition at line 3458 of file numeric.c.
References FIXNUM_P, rb_any_to_s(), rb_big2str(), rb_fix2str(), RB_TYPE_P, and T_BIGNUM.
Referenced by int_to_s(), and rb_str_format().
Definition at line 4644 of file numeric.c.
References fix_abs(), FIXNUM_P, Qnil, rb_big_abs(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_abs(), Init_Numeric(), numeric_polar(), and rb_rational_abs().
Definition at line 4358 of file numeric.c.
References fix_and(), FIXNUM_P, Qnil, rb_big_and(), RB_TYPE_P, and T_BIGNUM.
Referenced by Init_Numeric(), and nurat_round_half_even().
Definition at line 4102 of file numeric.c.
References fix_cmp(), FIXNUM_P, rb_big_cmp(), rb_eNotImpError, rb_obj_classname(), rb_raise(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_round_common(), Init_Numeric(), rb_int_round(), and rb_rational_cmp().
Definition at line 3729 of file numeric.c.
References fix_div(), FIXNUM_P, Qnil, rb_big_div(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_div(), Init_Numeric(), and read_rat_nos().
Definition at line 3881 of file numeric.c.
References fix_divmod(), FIXNUM_P, Qnil, rb_big_divmod(), RB_TYPE_P, and T_BIGNUM.
Referenced by Init_Numeric(), nurat_round_half_even(), and rb_int_digits_bigbase().
Definition at line 4052 of file numeric.c.
References fix_equal(), FIXNUM_P, Qnil, rb_big_eq(), RB_TYPE_P, and T_BIGNUM.
Referenced by Init_Numeric(), and nurat_eqeq_p().
Definition at line 3637 of file numeric.c.
References fix_fdiv_double(), FIXNUM_P, FIXNUM_ZERO_P, NAN, rb_big_fdiv_double(), rb_gcd(), rb_int_idiv(), RB_INTEGER_TYPE_P, RB_TYPE_P, and T_BIGNUM.
Referenced by nurat_to_double(), and rb_int_fdiv().
Definition at line 4182 of file numeric.c.
References fix_ge(), FIXNUM_P, Qnil, rb_big_ge(), RB_TYPE_P, and T_BIGNUM.
Referenced by Init_Numeric(), and int_range_sum().
Definition at line 4142 of file numeric.c.
References fix_gt(), FIXNUM_P, Qnil, rb_big_gt(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_gt_p(), and Init_Numeric().
Definition at line 3756 of file numeric.c.
References fix_idiv(), FIXNUM_P, num_div(), rb_big_idiv(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_addsub(), f_muldiv(), Init_Numeric(), int_half_p_half_even(), int_range_sum(), nurat_ceil(), nurat_floor(), nurat_round_half_down(), nurat_round_half_up(), nurat_truncate(), rb_int_fdiv_double(), rb_int_round(), and rb_str_format().
Definition at line 4473 of file numeric.c.
References FIXNUM_P, Qnil, rb_big_lshift(), rb_fix_lshift(), RB_TYPE_P, and T_BIGNUM.
Referenced by float_to_r(), Init_Numeric(), and rb_flt_rationalize().
Definition at line 3561 of file numeric.c.
References fix_minus(), FIXNUM_P, rb_big_minus(), rb_num_coerce_bin(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_addsub(), Init_Numeric(), int_range_sum(), nurat_round_half_down(), nurat_sub(), rb_flt_rationalize(), rb_int_ceil(), rb_int_floor(), rb_int_round(), rb_int_truncate(), and rb_rational_cmp().
Definition at line 3799 of file numeric.c.
References fix_mod(), FIXNUM_P, num_modulo(), rb_big_modulo(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_gcd_normal(), Init_Numeric(), rb_int_ceil(), rb_int_floor(), rb_int_round(), and rb_int_truncate().
Definition at line 3608 of file numeric.c.
References fix_mul(), FIXNUM_P, rb_big_mul(), rb_num_coerce_bin(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_addsub(), f_mul(), f_muldiv(), float_to_r(), Init_Numeric(), int_range_sum(), nurat_round_half_down(), nurat_round_half_even(), nurat_round_half_up(), nurat_sub(), rb_flt_rationalize(), rb_rational_cmp(), rb_rational_plus(), rb_str_format(), and read_num().
Definition at line 3514 of file numeric.c.
References fix_plus(), FIXNUM_P, rb_big_plus(), rb_num_coerce_bin(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_addsub(), Init_Numeric(), int_range_sum(), nurat_round_half_down(), nurat_round_half_even(), nurat_round_half_up(), rb_flt_rationalize(), rb_int_ceil(), rb_int_round(), rb_int_truncate(), rb_rational_plus(), rb_str_format(), and read_num().
VALUE rb_int_positive_pow | ( | long | x, |
unsigned long | y | ||
) |
Definition at line 4011 of file numeric.c.
References fix_pow(), FIXNUM_P, Qnil, rb_big_pow(), RB_TYPE_P, and T_BIGNUM.
Referenced by float_to_r(), Init_Numeric(), nurat_expt(), and rb_flt_rationalize().
Definition at line 3240 of file numeric.c.
References FIX2LONG, FIXNUM_P, INT2FIX, LONG2NUM, num_funcall1(), rb_big_minus(), RB_TYPE_P, and T_BIGNUM.
VALUE rb_int_round | ( | VALUE | num, |
int | ndigits, | ||
enum ruby_num_rounding_mode | mode | ||
) |
Definition at line 2097 of file numeric.c.
References f, FIX2LONG, FIXNUM_P, FIXNUM_POSITIVE_P, FIXNUM_ZERO_P, INT2FIX, int_pow(), int_round(), int_round_zero_p(), LONG2NUM, neg, rb_int_cmp(), rb_int_idiv(), rb_int_minus(), rb_int_modulo(), rb_int_plus(), RB_TYPE_P, ROUND_CALL, SIGNED_VALUE, and T_FLOAT.
Referenced by flo_round(), and int_round().
Definition at line 3215 of file numeric.c.
References FIX2LONG, FIXNUM_P, INT2FIX, LONG2NUM, num_funcall1(), rb_big_plus(), RB_TYPE_P, and T_BIGNUM.
Referenced by enumerator_with_index_i().
Definition at line 3374 of file numeric.c.
References fix_uminus(), FIXNUM_P, idUMinus, num_funcall0(), rb_big_uminus(), RB_TYPE_P, and T_BIGNUM.
Referenced by f_gcd_normal(), f_muldiv(), Init_Numeric(), nucomp_expt(), nurat_canonicalize(), nurat_ceil(), nurat_expt(), nurat_round_half_down(), nurat_round_half_even(), nurat_round_half_up(), nurat_s_alloc(), nurat_truncate(), rb_rational_uminus(), and read_num().
Definition at line 5264 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 big_op(), fix_cmp(), fix_ge(), fix_gt(), fix_le(), fix_lt(), flo_cmp(), flo_ge(), flo_le(), flo_lt(), rb_big_cmp(), and rb_float_gt().
Definition at line 5314 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 fix_equal(), flo_eq(), and rb_big_eq().
Definition at line 46 of file compar.c.
References INT2FIX, invcmp_recursive(), NIL_P, Qnil, Qundef, rb_cmpint(), rb_exec_recursive(), and result.
Referenced by rb_str_cmp_m(), and time_cmp().
ssize_t rb_io_bufread | ( | VALUE | io, |
void * | buf, | ||
size_t | size | ||
) |
Definition at line 2176 of file io.c.
References bufread_arg::fptr, GetOpenFile, io_bufread(), and rb_io_check_readable().
Definition at line 1551 of file io.c.
References FMODE_READABLE, FMODE_WRITABLE, binwrite_arg::fptr, GetOpenFile, GetWriteIO, id_flush, io_fflush(), io_unread(), rb_io_t::mode, rb_funcall(), rb_sys_fail(), RB_TYPE_P, and T_FILE.
Referenced by rb_file_flock(), rb_file_size(), and rb_io_flush().
Definition at line 4414 of file io.c.
References rb_io_t::cbuf, rb_econv_memsize(), rb_notify_fd_close(), rb_io_t::rbuf, rb_io_t::readconv, size, rb_io_t::wbuf, and rb_io_t::writeconv.
Referenced by obj_memsize_of().
int rb_is_attrset_name | ( | VALUE | name | ) |
Definition at line 1108 of file symbol.c.
References ID_ATTRSET, IDSET_ATTRSET_FOR_INTERN, and rb_str_symname_type().
Referenced by attrsetname_to_attr().
int rb_is_class_name | ( | VALUE | name | ) |
Definition at line 1090 of file symbol.c.
References ID_CLASS, and rb_str_symname_type().
int rb_is_const_name | ( | VALUE | name | ) |
Definition at line 1084 of file symbol.c.
References ID_CONST, and rb_str_symname_type().
Referenced by new_struct(), rb_is_attr_name(), rb_mod_const_defined(), and rb_mod_const_get().
int rb_is_global_name | ( | VALUE | name | ) |
Definition at line 1096 of file symbol.c.
References ID_GLOBAL, and rb_str_symname_type().
int rb_is_instance_name | ( | VALUE | name | ) |
Definition at line 1102 of file symbol.c.
References ID_INSTANCE, and rb_str_symname_type().
int rb_is_junk_name | ( | VALUE | name | ) |
Definition at line 1130 of file symbol.c.
References IDSET_ATTRSET_FOR_SYNTAX, and rb_str_symname_type().
int rb_is_local_name | ( | VALUE | name | ) |
Definition at line 1114 of file symbol.c.
References ID_LOCAL, and rb_str_symname_type().
Referenced by check_local_id(), and rb_is_attr_name().
int rb_is_method_name | ( | VALUE | name | ) |
Definition at line 1120 of file symbol.c.
References FALSE, ID_ATTRSET, ID_JUNK, ID_LOCAL, rb_str_symname_type(), and TRUE.
Definition at line 1225 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, generic_ivar_get(), 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 name_err_receiver(), rb_attr_get(), rb_ivar_get(), and str_associated().
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 1240 of file vm_eval.c.
References argc, iter_method_arg::argc, argv, iter_method_arg::argv, GET_THREAD, iterate_method(), iter_method_arg::mid, iter_method_arg::obj, rb_eArgError, rb_iterate0(), rb_raise(), and rb_vm_ifunc_new().
Referenced by enum_collect().
void rb_last_status_clear | ( | void | ) |
Definition at line 494 of file process.c.
References GET_THREAD, and Qnil.
Referenced by fptr_waitpid(), proc_wait(), proc_waitall(), rb_f_backquote(), and rb_f_system().
Definition at line 1868 of file rational.c.
References f_lcm(), and nurat_int_value().
Referenced by Init_Rational(), and nucomp_denominator().
Definition at line 7049 of file compile.c.
References rb_iseq_struct::body, rb_iseq_constant_body::local_iseq, rb_iseq_constant_body::local_table, rb_iseq_constant_body::local_table_size, NULL, and vm_block_iseq().
Referenced by local_id_gen().
VALUE rb_make_backtrace | ( | void | ) |
Definition at line 811 of file vm_backtrace.c.
References GET_THREAD, and rb_vm_backtrace_str_ary().
ID rb_make_internal_id | ( | void | ) |
Definition at line 768 of file symbol.c.
References ID_INTERNAL, ID_STATIC_SYM, and next_id_base().
Referenced by Init_Exception(), and Init_pack().
void rb_mark_end_proc | ( | void | ) |
Definition at line 80 of file eval_jump.c.
References end_proc_data::data, end_procs, ephemeral_end_procs, link(), end_proc_data::next, and rb_gc_mark().
Referenced by gc_mark_roots().
void rb_mark_generic_ivar | ( | VALUE | ) |
Definition at line 1173 of file variable.c.
References gen_ivtbl_get(), and gen_ivtbl_mark().
Referenced by gc_mark_children().
int rb_match_count | ( | VALUE | match | ) |
Definition at line 1266 of file re.c.
References NIL_P, re_registers::num_regs, and RMATCH_REGS.
Referenced by rb_f_global_variables().
int rb_match_nth_defined | ( | int | nth, |
VALUE | match | ||
) |
Definition at line 1276 of file re.c.
References BEG, FALSE, NIL_P, re_registers::num_regs, and RMATCH_REGS.
Referenced by rb_f_global_variables().
Referenced by nucomp_arg().
Referenced by nucomp_abs().
Definition at line 620 of file math.c.
References DBL2NUM, domain_error, f_signbit(), Get_Double, neg, rb_complex_abs(), rb_complex_new(), RB_TYPE_P, RCOMPLEX, and T_COMPLEX.
Referenced by math_sqrt().
void rb_maygvl_fd_fix_cloexec | ( | int | fd | ) |
Definition at line 208 of file io.c.
References errno, F_GETFD, F_SETFD, fcntl(), FD_CLOEXEC, rb_bug(), and strerror().
Referenced by cloexec_accept(), rb_cloexec_dup2(), rb_cloexec_fcntl_dupfd(), rb_cloexec_open(), rb_cloexec_pipe(), rb_fd_fix_cloexec(), rb_fix_detect_o_cloexec(), rsock_detect_cloexec(), and sock_initialize().
void rb_mutex_allow_trap | ( | VALUE | self, |
int | val | ||
) |
Definition at line 511 of file thread_sync.c.
References rb_mutex_struct::allow_trap, GetMutexPtr, and val.
Referenced by io_binwrite().
Definition at line 316 of file thread_sync.c.
References GET_THREAD, GetMutexPtr, Qfalse, Qtrue, and rb_mutex_struct::th.
Referenced by finish_writeconv(), Init_thread_sync(), and io_flush_buffer().
Definition at line 1367 of file error.c.
References id_bt, id_mesg, Qnil, rb_ivar_set(), rb_name_err_mesg_new(), and rb_obj_alloc().
rb_serial_t rb_next_class_serial | ( | void | ) |
Definition at line 305 of file vm.c.
References NEXT_CLASS_SERIAL.
Referenced by class_alloc(), and rb_class_clear_method_cache().
Definition at line 1411 of file enum.c.
References nmin_data::buf, nmin_data::bufmax, nmin_data::by, nmin_data::cmpfunc, nmin_data::curlen, id_each, nmin_data::limit, LONG_MAX, nmin_data::method, nmin_data::n, nmin_block_cmp(), nmin_cmp(), nmin_filter(), nmin_i(), NUM2LONG, Qundef, RARRAY_AREF, RARRAY_LEN, RARRAY_PTR, rb_ary_new2, rb_ary_resize(), rb_ary_reverse(), rb_ary_tmp_new(), rb_block_call(), rb_block_given_p(), rb_cArray, rb_eArgError, rb_raise(), RBASIC_SET_CLASS, result, nmin_data::rev, and ruby_qsort().
Referenced by enum_max(), enum_max_by(), enum_min(), enum_min_by(), rb_ary_max(), and rb_ary_min().
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.
Referenced by flo_round(), int_round(), and nurat_round_n().
int rb_num_negative_p | ( | VALUE | ) |
Definition at line 342 of file numeric.c.
References negative_int_p().
Referenced by fun2(), nurat_expt(), rb_int_digits(), rb_int_digits_bigbase(), and rb_random_ulong_limited().
double rb_num_to_dbl | ( | VALUE | val | ) |
Definition at line 3034 of file object.c.
References basic_to_f_p(), big2dbl_without_to_f, BUILTIN_TYPE, conversion_to_float(), fix2dbl_without_to_f, FIXNUM_P, FLONUM_P, numeric_to_float(), rat2dbl_without_to_f, rb_cInteger, rb_cRational, rb_float_flonum_value(), rb_float_noflonum_value(), RFLOAT_VALUE, SPECIAL_CONST_P, T_BIGNUM, T_FLOAT, and T_RATIONAL.
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 int_chr(), and rb_str_concat().
|
inlinestatic |
Definition at line 1776 of file internal.h.
References RB_BUILTIN_TYPE, and RB_SPECIAL_CONST_P.
Definition at line 258 of file object.c.
References ALLOC_N, len, MEMCPY, RBASIC, ROBJECT, ROBJECT_EMBED, ROBJECT_EMBED_LEN_MAX, ROBJECT_IVPTR, and xfree().
Referenced by init_copy(), and ruby_vm_special_exception_copy().
Definition at line 3219 of file object.c.
References argc, argv, BUILTIN_TYPE, dig_basic_p(), NIL_P, no_dig_method(), Qnil, rb_ary_at(), rb_check_funcall_with_hook(), rb_hash_aref(), rb_struct_lookup(), SPECIAL_CONST_P, T_ARRAY, T_HASH, and T_STRUCT.
Referenced by rb_ary_dig(), rb_hash_dig(), and rb_struct_dig().
Definition at line 351 of file cont.c.
References Qfalse, Qtrue, and rb_typeddata_is_kind_of().
Referenced by rb_objspace_call_finalizer().
Definition at line 83 of file thread_sync.c.
References Qfalse, Qtrue, and rb_typeddata_is_kind_of().
Referenced by rb_objspace_call_finalizer().
Definition at line 2487 of file vm.c.
References Qfalse, Qtrue, rb_typeddata_is_kind_of(), and thread_data_type.
Referenced by rb_objspace_call_finalizer().
size_t rb_obj_memsize_of | ( | VALUE | ) |
Definition at line 3266 of file gc.c.
References obj_memsize_of(), and TRUE.
Referenced by cos_i(), dump_object(), iow_size(), memsize_of_m(), and total_i().
long rb_objid_hash | ( | st_index_t | index | ) |
Definition at line 251 of file hash.c.
References key64_hash(), and rb_hash_start().
Referenced by any_hash(), objid_hash(), rb_dbl_long_hash(), rb_hash(), and rb_obj_equal().
RUBY_SYMBOL_EXPORT_BEGIN const char* rb_objspace_data_type_name | ( | VALUE | obj | ) |
Definition at line 2042 of file gc.c.
References is_pointer_to_heap(), PUREFUNC(), RTYPEDDATA_P, and RTYPEDDATA_TYPE.
Referenced by cto_i(), rb_raw_obj_info(), and type_name().
void rb_objspace_set_event_hook | ( | const rb_event_flag_t | event | ) |
Definition at line 1760 of file gc.c.
References rb_objspace::flags, rb_objspace::has_hook, rb_objspace::hook_events, rb_objspace, and RUBY_INTERNAL_EVENT_OBJSPACE_MASK.
Referenced by recalc_add_ruby_vm_event_flags(), and recalc_remove_ruby_vm_event_flags().
Definition at line 2007 of file ruby.c.
References cmdline_options_init(), load_file(), and load_file_arg::opt.
Referenced by rb_load_internal0().
Definition at line 17749 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.
Referenced by iseqw_s_compile_file(), process_options(), rb_iseq_compile_with_option(), and rb_load_internal0().
|
inlinestatic |
Definition at line 256 of file internal.h.
Referenced by ntz_int32(), and rb_popcount_intptr().
|
inlinestatic |
Definition at line 270 of file internal.h.
Referenced by ntz_int64(), and rb_popcount_intptr().
|
inlinestatic |
Definition at line 285 of file internal.h.
References rb_popcount32(), and rb_popcount64().
Referenced by rb_str_init().
void rb_print_backtrace | ( | void | ) |
Definition at line 679 of file vm_dump.c.
References buf, cnt, ERR, free(), NULL, rb_dump_machine_register, and snprintf.
Referenced by rb_vm_bugreport(), and ruby_only_for_internal_use().
Definition at line 1147 of file proc.c.
References iseq_location(), and rb_proc_get_iseq().
Referenced by Init_Proc(), rb_thread_inspect(), and thread_initialize().
Definition at line 1267 of file rational.c.
References CLASS_OF, get_dat1, INT_NEGATIVE_P, nurat_s_canonicalize_internal_no_reduce(), and rb_int_abs().
Referenced by Init_Rational(), and numeric_polar().
Definition at line 1080 of file rational.c.
References CLASS_OF, f_imul(), f_rational_new_bang1(), FIX2LONG, FIXNUM_P, get_dat1, get_dat2, LONG2FIX, nurat_to_double(), rb_dbl_cmp(), RB_FLOAT_TYPE_P, rb_int_cmp(), rb_int_minus(), rb_int_mul(), RB_INTEGER_TYPE_P, rb_intern, rb_num_coerce_cmp(), RB_TYPE_P, RFLOAT_VALUE, T_RATIONAL, and ZERO.
Referenced by f_gt_p(), and Init_Rational().
Definition at line 735 of file rational.c.
References CLASS_OF, DBL2NUM, f_addsub(), f_rational_new_no_reduce2(), get_dat1, get_dat2, nurat_to_double(), RB_FLOAT_TYPE_P, rb_int_mul(), rb_int_plus(), RB_INTEGER_TYPE_P, rb_num_coerce_bin(), RB_TYPE_P, RFLOAT_VALUE, and T_RATIONAL.
Referenced by enum_sum(), Init_Rational(), rb_ary_sum(), read_num(), and sum_iter().
Definition at line 1832 of file rational.c.
References CLASS_OF, f_rational_new_no_reduce2(), and get_dat1.
Referenced by fix_divide().
Definition at line 629 of file rational.c.
References assert, CLASS_OF, f_rational_new2(), get_dat1, rb_int_uminus(), RB_TYPE_P, and T_RATIONAL.
Referenced by float_rationalize(), Init_Rational(), nurat_rationalize(), and read_num().
Definition at line 3873 of file file.c.
References chompdirsep(), ENCINDEX_ASCII, ENCINDEX_US_ASCII, FilePathValue, Inc, len, NIL_P, NULL, OBJ_TAINT, Qnil, rb_dir_getwd(), rb_enc_associate(), rb_enc_associate_index(), rb_enc_get(), rb_enc_str_asciionly_p(), rb_enc_to_index(), rb_filesystem_encindex(), rb_hash_new(), rb_str_dup_frozen(), rb_str_set_len(), rb_str_subseq(), realpath_rec(), RSTRING_GETMEM, and skipprefixroot().
Referenced by iseqw_s_compile_file(), process_options(), rb_file_s_realdirpath(), rb_file_s_realpath(), rb_load_internal0(), realpath_rec(), and ruby_init_loadpath().
Definition at line 1238 of file eval.c.
References CONST_ID, and rb_attr_get().
Referenced by ensure_includable(), include_modules_at(), rb_method_entry_make(), and rb_mod_to_s().
Definition at line 2603 of file re.c.
References buf, err, Qnil, rb_enc_get(), RB_GC_GUARD, rb_reg_error_desc(), rb_reg_preprocess(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by get_pat_quoted(), and reg_fragment_check_gen().
Definition at line 2850 of file re.c.
References err, FL_SET, Qnil, rb_reg_alloc(), rb_reg_error_desc(), rb_reg_initialize_str(), rb_set_errinfo(), rb_str_new(), and REG_LITERAL.
Referenced by ibf_load_object_regexp(), and rb_parser_reg_compile().
Definition at line 3234 of file re.c.
References re_registers::beg, re_registers::end, err, len, NIL_P, NULL, NUM2LONG, onig_error_code_to_str(), onig_free(), ONIG_MISMATCH, ONIG_OPTION_NONE, onig_search(), Qfalse, Qtrue, rb_reg_prepare_re0(), rb_reg_raise(), rb_str_length(), rb_str_subpos(), rb_sym2str, result, RREGEXP, RREGEXP_PTR, RREGEXP_SRC_LEN, RREGEXP_SRC_PTR, RSTRING_LEN, RSTRING_PTR, StringValue, SYMBOL_P, and UChar.
Referenced by rb_reg_match_m_p(), and rb_str_match_m_p().
Definition at line 1497 of file re.c.
References err, FL_TAINT, FL_TEST, FL_UNSET, match(), match_alloc(), MATCH_BUSY, MEMZERO, NIL_P, OBJ_INFECT, onig_error_code_to_str(), onig_free(), ONIG_MISMATCH, ONIG_OPTION_NONE, onig_region_free(), onig_search(), Qnil, range, rb_backref_get(), rb_backref_set(), rb_cMatch, rb_memerror(), rb_reg_prepare_re0(), rb_reg_raise(), rb_reg_region_copy(), rb_str_new4, result, RMATCH, RMATCH_REGS, RREGEXP, RREGEXP_PTR, RREGEXP_SRC_LEN, RREGEXP_SRC_PTR, RSTRING_LEN, RSTRING_PTR, and UChar.
Referenced by rb_pat_search(), and rb_reg_search().
Definition at line 558 of file error.c.
References NULL, report_bug_valist, and RSTRING_PTR.
Referenced by compile_bug().
int rb_require_internal | ( | VALUE | fname, |
int | safe | ||
) |
Definition at line 956 of file load.c.
References rb_thread_struct::errinfo, EXEC_TAG, FilePathValue, GET_THREAD, load_ext(), load_lock(), load_unlock(), LONG2NUM, rb_ary_push(), rb_load_internal0(), rb_provide_feature(), rb_safe_level(), rb_set_safe_level_force(), rb_str_encode_ospath(), rb_vm_call_cfunc(), rb_vm_top_self(), loaded_feature_searching::result, RSTRING_PTR, ruby_dln_librefs, RUBY_DTRACE_HOOK, search_required(), MEMO::state, StringValuePtr, TAG_RETURN, TH_POP_TAG, TH_PUSH_TAG, and VM_BLOCK_HANDLER_NONE.
Referenced by load_encoding(), rb_require_safe(), and ruby_require_internal().
Definition at line 336 of file variable.c.
References never_cache(), and rb_tmp_class_path().
Referenced by ignored_block(), and rb_vm_bugreport().
int rb_sigaltstack_size | ( | void | ) |
Referenced by Init_heap(), and th_init().
const char* rb_source_loc | ( | int * | pline | ) |
Definition at line 1291 of file vm.c.
References rb_source_location(), and RSTRING_PTR.
Referenced by call_trace_func(), newobj_init(), rb_bug(), rb_bug_context(), ruby_th_dtrace_setup(), and setup_exception().
VALUE rb_source_location | ( | int * | pline | ) |
Definition at line 1275 of file vm.c.
References rb_iseq_struct::body, rb_thread_struct::cfp, GET_THREAD, rb_control_frame_struct::iseq, rb_iseq_constant_body::location, rb_iseq_location_struct::path, rb_vm_get_ruby_level_next_cfp(), and rb_vm_get_sourceline().
Referenced by error_pos_str(), eval_string_with_cref(), rb_source_loc(), setup_const_entry(), and warning_string().
VALUE rb_sourcefilename | ( | void | ) |
Definition at line 1233 of file vm.c.
References rb_iseq_struct::body, rb_thread_struct::cfp, GET_THREAD, rb_control_frame_struct::iseq, rb_iseq_constant_body::location, rb_iseq_location_struct::path, Qnil, and rb_vm_get_ruby_level_next_cfp().
Definition at line 3163 of file variable.c.
References st_copy, st_data_t, st_foreach, and tbl_copy_i().
Referenced by rb_mod_init_copy(), and rb_singleton_class_clone_and_attach().
void rb_stdio_set_default_encoding | ( | void | ) |
Definition at line 10957 of file io.c.
References Qnil, rb_io_set_encoding(), rb_stderr, rb_stdin, rb_stdout, and val.
Referenced by process_options().
Definition at line 4302 of file bignum.c.
References BDIGIT, bdigit_roomof, BDIGITS, BIGDN, BIGLO, bignew, bignorm(), BIGNUM_SET_LEN, BIGNUM_SET_NEGATIVE_SIGN, BITSPERDIG, FIXABLE, invalid_integer(), invalid_radix(), len, LONG2FIX, maxpow_in_bdigit_dbl(), neg, POSFIXABLE, RB_GC_GUARD, rb_must_asciicompat(), roomof, RSTRING_LEN, str2big_karatsuba(), str2big_scan_digits(), StringValuePtr, and valid_radix_p().
Definition at line 4260 of file bignum.c.
References bignorm(), invalid_integer(), invalid_radix(), len, maxpow_in_bdigit_dbl(), RB_GC_GUARD, rb_must_asciicompat(), roomof, RSTRING_LEN, str2big_normal(), str2big_scan_digits(), StringValuePtr, and valid_radix_p().
Definition at line 4224 of file bignum.c.
References bignorm(), bit_length, invalid_integer(), invalid_radix(), len, POW2_P, RB_GC_GUARD, rb_must_asciicompat(), RSTRING_LEN, str2big_poweroftwo(), str2big_scan_digits(), StringValueCStr, and valid_radix_p().
int rb_str_buf_cat_escaped_char | ( | VALUE | result, |
unsigned int | c, | ||
int | unicode_p | ||
) |
Definition at line 5555 of file string.c.
References buf, CHAR_ESC_LEN, ISPRINT, rb_str_buf_cat(), snprintf, and strlen().
Referenced by rb_reg_expr_str(), rb_str_escape(), and rb_str_inspect().
Definition at line 2103 of file string.c.
References assert, RString::capa, FL_TEST, L, len, rb_check_lockedtmp(), RSTRING, RSTRING_LEN, RSTRING_PTR, str_capacity(), str_dependent_p(), STR_EMBED_P, str_make_independent_expand(), STR_SHARED, and TERM_FILL.
Referenced by rb_enc_associate_index().
Definition at line 8136 of file string.c.
References chompped_length(), ENC_CODERANGE, ENC_CODERANGE_7BIT, ENC_CODERANGE_CLEAR, Qnil, RSTRING_LEN, RSTRING_PTR, STR_SET_LEN, TERM_FILL, and TERM_LEN.
Referenced by rb_io_getline_0(), and rb_str_chomp_bang().
Definition at line 2156 of file string.c.
References len, RSTRING_LEN, RSTRING_PTR, and str_fill_term().
Referenced by get_env_cstr().
Definition at line 2538 of file string.c.
References func, rb_ensure(), rb_str_locktmp(), and rb_str_unlocktmp().
Referenced by io_fread(), io_getpartial(), io_read_nonblock(), and rsock_s_recvfrom().
size_t rb_str_memsize | ( | VALUE | ) |
Definition at line 1294 of file string.c.
References FL_TEST, STR_HEAP_SIZE, STR_NOEMBED, STR_NOFREE, and STR_SHARED.
Referenced by obj_memsize_of().
Definition at line 9619 of file string.c.
References Check_Type, len, NULL, RString::ptr, rb_default_external_encoding(), rb_default_internal_encoding(), rb_str_inspect(), rb_str_is_ascii_only_p(), RSTRING_LEN, RSTRING_PTR, STR_ENC_GET, sym_printable(), and T_STRING.
Referenced by rb_id_quote_unprintable().
int rb_str_symname_p | ( | VALUE | ) |
Definition at line 9600 of file string.c.
References FALSE, len, NULL, RString::ptr, rb_default_external_encoding(), rb_default_internal_encoding(), rb_enc_symname_p(), rb_str_is_ascii_only_p(), RSTRING_LEN, RSTRING_PTR, STR_ENC_GET, strlen(), sym_printable(), and TRUE.
Referenced by id_to_name(), and sym_inspect().
Definition at line 1135 of file string.c.
References OBJ_FROZEN_RAW, OBJ_INFECT, and str_new_frozen().
Referenced by io_fwrite(), and rb_io_syswrite().
Definition at line 1148 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.
Referenced by io_fwrite(), and rb_io_syswrite().
Definition at line 623 of file internal.h.
References RBignum::as, FIX_CONST_VALUE_PTR, RBASIC, RSTRUCT, and RSTRUCT_EMBED_LEN_MASK.
Definition at line 809 of file struct.c.
References len, OBJ_INIT_COPY, rb_eTypeError, rb_raise(), RSTRUCT_GET, RSTRUCT_LEN, and RSTRUCT_SET.
Referenced by InitVM_Struct(), and range_initialize_copy().
|
inlinestatic |
Definition at line 616 of file internal.h.
References RBASIC, RSTRUCT, RSTRUCT_EMBED_LEN, and RSTRUCT_EMBED_LEN_MASK.
Definition at line 936 of file struct.c.
References Qnil, and rb_struct_lookup_default().
Referenced by rb_obj_dig(), rb_struct_aset(), and rb_struct_dig().
Definition at line 387 of file vm_trace.c.
References call_trace_func(), rb_event_hook_struct::data, rb_trace_arg_struct::event, GET_THREAD, Qnil, rb_threadptr_reset_raised(), rb_threadptr_set_raised(), result, rb_thread_struct::state, TH_EXEC_TAG, TH_JUMP_TAG, TH_POP_TAG, TH_PUSH_TAG, rb_thread_struct::trace_arg, rb_vm_struct::trace_running, and rb_thread_struct::vm.
Referenced by yycompile().
Definition at line 1044 of file symbol.c.
References rb_sym_intern(), and rb_usascii_encoding().
Referenced by rb_check_symbol_cstr(), and rb_sym_intern_ascii_cstr().
Definition at line 1050 of file symbol.c.
References rb_sym_intern_ascii(), and strlen().
Referenced by rb_catch(), rb_check_symbol_cstr(), rb_throw(), struct_make_members_list(), and yycompile0().
Definition at line 9716 of file string.c.
References rb_eArgError, rb_funcall_with_block(), rb_raise(), rb_sym_to_proc(), and sym.
Referenced by vm_yield_with_symbol(), and yield_under().
Definition at line 1203 of file proc.c.
References id, ID2SYM, Qfalse, Qnil, RARRAY_PTR, rb_ary_store(), rb_ary_tmp_new(), rb_cProc, rb_gc_register_mark_object(), sym, SYM2ID, and sym_proc_new().
Referenced by args_setup_block_parameter(), Init_String(), proc_new(), rb_mod_define_method(), rb_sym_proc_call(), and vm_block_handler_to_proc().
VALUE rb_syntax_error_append | ( | VALUE | , |
VALUE | , | ||
int | , | ||
int | , | ||
rb_encoding * | , | ||
const char * | , | ||
va_list | |||
) |
Definition at line 104 of file error.c.
References err_vcatf(), proc_entry::fn, NIL_P, NULL, rb_attr_get(), rb_class_new_instance(), rb_enc_str_new(), rb_eSyntaxError, rb_str_cat2(), rb_str_cat_cstr(), rb_write_error_str(), RSTRING_END, RSTRING_LEN, and RSTRING_PTR.
Referenced by append_compile_error(), and parser_compile_error().
void rb_thread_execute_interrupts | ( | VALUE | th | ) |
Definition at line 2098 of file thread.c.
References GetThreadPtr, rb_threadptr_execute_interrupts(), and waiting_fd::th.
Referenced by exec_interrupts(), maygvl_copy_stream_continue_p(), and rb_f_kill().
VALUE rb_thread_io_blocking_region | ( | rb_blocking_function_t * | func, |
void * | data1, | ||
int | fd | ||
) |
Definition at line 1434 of file thread.c.
References BLOCKING_REGION, errno, EXEC_TAG, FALSE, waiting_fd::fd, func, GET_THREAD, GET_VM, Qundef, RUBY_VM_CHECK_INTS_BLOCKING, waiting_fd::th, TH_JUMP_TAG, TH_POP_TAG, TH_PUSH_TAG, val, rb_vm_struct::waiting_fds, and waiting_fd::wfd_node.
Referenced by io_flush_buffer_async(), rb_file_flock(), rb_io_set_sync(), rb_io_sync(), rb_read_internal(), rb_write_internal(), rb_write_internal2(), and recvfrom_locktmp().
void rb_thread_mark | ( | void * | th | ) |
Definition at line 2352 of file vm.c.
References rb_control_frame_struct::block_code, rb_thread_struct::cfp, rb_control_frame_struct::ep, rb_thread_struct::errinfo, rb_thread_struct::event_hooks, rb_thread_struct::fiber, rb_thread_struct::first_args, rb_thread_struct::first_proc, GET_THREAD, rb_control_frame_struct::iseq, rb_thread_struct::last_status, rb_thread_struct::local_storage, rb_thread_struct::local_storage_recursive_hash, rb_thread_struct::local_storage_recursive_hash_for_trace, rb_thread_struct::locking_mutex, rb_thread_struct::machine, rb_thread_struct::name, rb_thread_struct::pending_interrupt_mask_stack, rb_thread_struct::pending_interrupt_queue, rb_fiber_mark_self(), rb_gc_mark(), rb_gc_mark_locations(), rb_gc_mark_machine_stack(), rb_gc_mark_values(), rb_mark_tbl(), rb_vm_trace_mark_event_hooks(), rb_thread_struct::regs, rb_thread_struct::root_fiber, rb_thread_struct::root_svar, RUBY_MARK_ENTER, RUBY_MARK_LEAVE, RUBY_MARK_UNLESS_NULL, RUBY_VM_PREVIOUS_CONTROL_FRAME, rb_control_frame_struct::self, rb_control_frame_struct::sp, rb_thread_struct::stack, rb_thread_struct::stack_end, rb_thread_struct::stack_size, rb_thread_struct::stack_start, rb_thread_struct::stat_insn_usage, rb_thread_struct::thgroup, rb_thread_struct::top_self, rb_thread_struct::top_wrapper, rb_thread_struct::value, VM_ASSERT, VM_ENV_FLAG_ESCAPED, and VM_ENV_FLAGS().
Referenced by cont_mark().
void rb_thread_recycle_stack_release | ( | VALUE * | ) |
Definition at line 2336 of file vm.c.
References NULL, rb_fiber_mark_self(), RECYCLE_MAX, ruby_xfree(), and VM_ASSERT.
Referenced by thread_free(), and thread_start_func_2().
Definition at line 4466 of file thread.c.
References DATA_PTR, Qfalse, Qtrue, rb_mutex_unlock(), rb_thread_shield_waiting, and thread_shield_get_mutex().
Referenced by release_thread_shield().
VALUE rb_thread_shield_new | ( | void | ) |
Definition at line 4410 of file thread.c.
References DATA_PTR, rb_cThreadShield, rb_mutex_lock(), and thread_shield_alloc().
Referenced by load_lock().
Definition at line 4455 of file thread.c.
References Qfalse, Qtrue, rb_mutex_unlock(), rb_thread_shield_waiting, and thread_shield_get_mutex().
Referenced by release_thread_shield().
Definition at line 4426 of file thread.c.
References DATA_PTR, GET_THREAD, GetMutexPtr, GetThreadShieldPtr, Qfalse, Qnil, Qtrue, rb_mutex_lock(), rb_mutex_unlock(), rb_thread_shield_waiting, rb_thread_shield_waiting_dec(), rb_thread_shield_waiting_inc(), and rb_mutex_struct::th.
Referenced by load_lock().
int rb_thread_to_be_killed | ( | VALUE | thread | ) |
Definition at line 2311 of file thread.c.
References FALSE, GetThreadPtr, rb_thread_struct::status, waiting_fd::th, THREAD_KILLED, rb_thread_struct::to_kill, and TRUE.
Referenced by autoload_sleep_done(), and pipe_close().
Definition at line 2292 of file time.c.
References FALSE, GetTimeval, IsTimeval, time_timeval(), timew2timespec(), timespec::tv_nsec, timeval::tv_sec, timespec::tv_sec, timeval::tv_usec, TYPEOF_TIMEVAL_TV_SEC, and TYPEOF_TIMEVAL_TV_USEC.
Definition at line 5035 of file thread.c.
References GET_THREAD, rb_thread_struct::interrupt_mask, OBJ_FREEZE_RAW, rb_thread_struct::pending_interrupt_mask_stack, rb_ary_pop(), rb_ary_push(), rb_cObject, rb_ensure(), rb_hash_aset(), rb_ident_hash_new(), and sym_never.
Referenced by rb_f_p().
Definition at line 2153 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().
VALUE rb_vm_backtrace_object | ( | void | ) |
Definition at line 530 of file vm_backtrace.c.
References backtrace_object(), and GET_THREAD.
Referenced by raise_argument_error(), and setup_exception().
void rb_vm_change_state | ( | void | ) |
void rb_vm_check_redefinition_by_prepend | ( | VALUE | klass | ) |
Definition at line 1529 of file vm.c.
References check_redefined_method(), rb_id_table_foreach(), RCLASS_M_TBL, RCLASS_ORIGIN, and vm_redefinition_check_flag().
Referenced by rb_prepend_module().
const void** rb_vm_get_insns_address_table | ( | void | ) |
Definition at line 130 of file vm_exec.c.
References rb_thread_struct::cfp, err, rb_thread_struct::errinfo, GET_PC, Qnil, Qundef, UNLIKELY, and vm_exec_core().
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 647 of file proc.c.
References CHAR_BIT, func, IFUNC_NEW, rb_eRangeError, rb_raise(), SIZEOF_VALUE, and UNLIMITED_ARGUMENTS.
Referenced by rb_func_lambda_new(), rb_lambda_call(), and rb_vm_ifunc_proc_new().
Definition at line 811 of file internal.h.
References func, rb_vm_ifunc_new(), and UNLIMITED_ARGUMENTS.
Referenced by rb_func_proc_new(), and rb_iterate().
void rb_vm_inc_const_missing_count | ( | void | ) |
Definition at line 323 of file vm.c.
Referenced by rb_const_missing().
void rb_vm_mark | ( | void * | ptr | ) |
Definition at line 2101 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_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.
Referenced by gc_mark_roots().
void rb_vm_pop_cfunc_frame | ( | void | ) |
Definition at line 523 of file vm.c.
References rb_callable_method_entry_struct::called_id, rb_thread_struct::cfp, rb_callable_method_entry_struct::def, rb_control_frame_struct::ep, EXEC_EVENT_HOOK, GET_THREAD, rb_method_definition_struct::original_id, rb_callable_method_entry_struct::owner, Qnil, rb_vm_frame_method_entry(), RUBY_DTRACE_CMETHOD_RETURN_HOOK, RUBY_EVENT_C_RETURN, rb_control_frame_struct::self, and vm_pop_frame().
Referenced by raise_method_missing(), rb_mod_const_missing(), and rb_vm_rewind_cfp().
Definition at line 900 of file vm_backtrace.c.
References thread_backtrace_to_ary().
Referenced by rb_thread_backtrace_m().
Definition at line 906 of file vm_backtrace.c.
References thread_backtrace_to_ary().
Referenced by rb_thread_backtrace_locations_m().
Definition at line 1940 of file gc.c.
References assert, FL_WB_PROTECTED, newobj_of(), RGENGC_CHECK_MODE, and TRUE.
Definition at line 1933 of file gc.c.
References assert, FALSE, FL_WB_PROTECTED, newobj_of(), and RGENGC_CHECK_MODE.
void rb_write_error_str | ( | VALUE | mesg | ) |
Definition at line 7393 of file io.c.
References rb_io_t::fd, fileno, len, orig_stderr, RB_GC_GUARD, rb_io_write(), rb_stderr, rb_w32_write_console(), RFILE, RSTRING_LEN, and RSTRING_PTR.
Definition at line 1014 of file vm_eval.c.
References rb_yield_0().
Referenced by int_dotimes(), and rb_yield().
Definition at line 1072 of file vm_eval.c.
References GET_THREAD, and vm_yield_lambda_splattable().
Referenced by enum_yield(), and enum_yield_array().
Definition at line 1635 of file vm_eval.c.
References block_handler_type_iseq, rb_thread_struct::cfp, CREF_REFINEMENTS_SET(), rb_captured_block::ep, FALSE, GET_THREAD, NULL, rb_bug(), rb_captured_block::self, TRUE, VM_BH_FROM_ISEQ_BLOCK(), VM_BH_TO_ISEQ_BLOCK(), vm_block_handler_type(), VM_CF_BLOCK_HANDLER(), VM_CF_LEP(), vm_cref_push(), VM_ENV_DATA_INDEX_SPECVAL, VM_FORCE_WRITE_SPECIAL_CONST(), and vm_yield_with_cref().
Referenced by rb_mod_refine().
Definition at line 700 of file internal.h.
References FL_SET, RB_OBJ_WRITE, RCLASS_ORIGIN, and RICLASS_IS_ORIGIN.
Referenced by class_alloc(), and rb_prepend_module().
Definition at line 714 of file internal.h.
References rb_class_remove_from_super_subclasses(), rb_class_subclass_add(), RB_OBJ_WRITE, and RCLASS.
Referenced by add_activated_refinement(), include_modules_at(), make_metaclass(), rb_class_boot(), rb_class_initialize(), rb_include_class_new(), rb_mod_init_copy(), rb_mod_refine(), rb_prepend_module(), rb_singleton_class_clone_and_attach(), and rb_using_refinement().
Definition at line 708 of file internal.h.
References RCLASS.
char* ruby_dtoa | ( | double | d_, |
int | mode, | ||
int | ndigits, | ||
int * | decpt, | ||
int * | sign, | ||
char ** | rve | ||
) |
Definition at line 3136 of file util.c.
References Balloc(), Bcopy, Bfree(), Bias, bigtens, Bletch, Bndry_mask, cmp(), d2b(), diff(), dval, Exp_1, Exp_11, Exp_mask, Exp_msk1, Exp_shift, Exp_shift1, Flt_Rounds, Frac_mask, Frac_mask1, hi0bits(), i2b(), INFSTR, Int_max, Bigint::k, L, Log2P, lshift(), mult(), multadd(), n_bigtens, NANSTR, no_digits, P, pow5mult(), Quick_max, quorem(), Rounding, rv_alloc, rv_strdup, S, Bigint::sign, Sign_bit, Ten_pmax, tens, Bigint::wds, word0, word1, Bigint::x, and ZEROSTR.
Referenced by flo_to_s(), and w_float().
void ruby_error_print | ( | void | ) |
Definition at line 185 of file eval_error.c.
References error_print(), and GET_THREAD.
Referenced by rb_f_abort().
double ruby_float_mod | ( | double | x, |
double | y | ||
) |
Definition at line 2494 of file numeric.c.
References DBL2NUM, FALSE, isinf(), NUM2DBL, RB_TYPE_P, rb_yield(), ruby_float_step_size(), T_FLOAT, TRUE, and val.
Referenced by num_step(), and range_step().
void ruby_gc_set_params | ( | int | safe_level | ) |
Definition at line 7475 of file gc.c.
References FALSE, gc_set_initial_pages(), get_envparam_double(), get_envparam_size(), ruby_gc_params_t::growth_factor, ruby_gc_params_t::growth_max_slots, ruby_gc_params_t::heap_free_slots, ruby_gc_params_t::heap_free_slots_goal_ratio, ruby_gc_params_t::heap_free_slots_max_ratio, ruby_gc_params_t::heap_free_slots_min_ratio, ruby_gc_params_t::heap_init_slots, ruby_gc_params_t::malloc_limit_growth_factor, ruby_gc_params_t::malloc_limit_max, ruby_gc_params_t::malloc_limit_min, rb_objspace::oldmalloc_increase_limit, ruby_gc_params_t::oldmalloc_limit_growth_factor, ruby_gc_params_t::oldmalloc_limit_max, ruby_gc_params_t::oldmalloc_limit_min, ruby_gc_params_t::oldobject_limit_factor, rb_objspace, rb_warn(), rb_objspace::rgengc, and TRUE.
Referenced by process_options().
char* ruby_hdtoa | ( | double | d, |
const char * | xdigs, | ||
int | ndigits, | ||
int * | decpt, | ||
int * | sign, | ||
char ** | rve | ||
) |
void ruby_init_setproctitle | ( | int | argc, |
char * | argv[] | ||
) |
Referenced by ruby_process_options(), and stub_options().
int ruby_is_fd_loadable | ( | int | fd | ) |
Definition at line 5697 of file file.c.
References errno, fstat, S_ISDIR, and S_ISREG.
Referenced by open_load_file(), and rb_file_load_ok().
void ruby_kill | ( | rb_pid_t | pid, |
int | sig | ||
) |
Definition at line 5048 of file thread.c.
References err, GET_THREAD, GVL_UNLOCK_BEGIN, GVL_UNLOCK_END, rb_thread_struct::interrupt_cond, rb_thread_struct::interrupt_lock, kill(), and rb_sys_fail().
Referenced by rb_f_kill().
void ruby_mimfree | ( | void * | ptr | ) |
void* ruby_mimmalloc | ( | size_t | size | ) |
Definition at line 2525 of file numeric.c.
References cmp(), DBL2NUM, diff(), FIX2LONG, FIXNUM_P, id_cmp, id_div, INFINITY, INT2FIX, isinf(), LONG2FIX, NUM2DBL, POSFIXABLE, rb_cmpint(), rb_dbl2big(), rb_funcall(), rb_num_coerce_cmp(), RB_TYPE_P, result, RTEST, ruby_float_step_size(), T_FLOAT, and ULONG2NUM.
Referenced by int_downto_size(), int_upto_size(), num_step_size(), range_size(), and range_step_size().
void ruby_register_rollback_func_for_ensure | ( | VALUE(*)(ANYARGS) | ensure_func, |
VALUE(*)(ANYARGS) | rollback_func | ||
) |
Definition at line 977 of file cont.c.
References GET_VM, NULL, st_data_t, st_init_numtable, st_insert, and UNLIKELY.
Referenced by Init_Hash().
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 8009 of file gc.c.
References objspace_xfree().
Referenced by free_io_buffer(), rb_ary_free(), rb_ary_initialize(), rb_ary_replace(), rb_ary_sort_bang(), rb_str_free(), ruby_xfree(), str_discard(), tr_trans(), wmap_final_func(), wmap_finalize(), and wmap_free_map().
void* ruby_sized_xrealloc | ( | void * | ptr, |
size_t | new_size, | ||
size_t | old_size | ||
) |
Definition at line 7975 of file gc.c.
References objspace_xrealloc().
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 1541 of file thread.c.
References rb_thread_struct::blocking_region_buffer, and waiting_fd::th.
Referenced by callback(), garbage_collect_with_gvl(), negative_size_allocation_error(), objspace_malloc_increase(), and ruby_memerror().
Definition at line 25 of file vm_insnhelper.c.
References rb_class_real(), rb_obj_alloc(), rb_obj_copy_ivar(), and RBASIC_CLASS.
Referenced by setup_exception(), and vm_stackoverflow().
rb_encoding OnigEncodingUS_ASCII |
rb_encoding OnigEncodingUTF_8 |
Definition at line 201 of file onigmo.h.
Referenced by rb_w32_sysinit().
VALUE rb_cEncodingConverter |
Definition at line 23 of file transcode.c.
Referenced by InitVM_transcode(), and str_cat_conv_enc_opts().
VALUE rb_eEAGAIN |
Definition at line 46 of file error.c.
Referenced by Init_IO(), and set_syserr().
VALUE rb_eEINPROGRESS |
Definition at line 48 of file error.c.
Referenced by Init_IO(), and set_syserr().
VALUE rb_eEWOULDBLOCK |
Definition at line 47 of file error.c.
Referenced by Init_IO(), and set_syserr().
const signed char ruby_digit36_to_number_table[] |
Definition at line 6 of file escape.c.
Referenced by hex2num(), and ruby_scan_digits().
const char ruby_digitmap[] |
Definition at line 37 of file bignum.c.
Referenced by big2str_2bdigits(), big2str_base_poweroftwo(), rb_fix2str(), rb_str_format(), and vm_living_thread_num().
const char ruby_engine[] |
Definition at line 35 of file version.c.
Referenced by load_file_internal(), and ruby_process_options().
const char ruby_exec_prefix[] |
Definition at line 59 of file loadpath.c.
Referenced by ruby_init_loadpath_safe().
VALUE* ruby_initial_gc_stress_ptr |
Definition at line 720 of file gc.c.
Referenced by set_debug_option().
const char ruby_initial_load_paths[] |
Definition at line 62 of file loadpath.c.
Referenced by ruby_init_loadpath_safe().