Ruby
2.0.0p645(2015-04-13revision50299)
|
Go to the source code of this file.
Data Structures | |
struct | rb_exec_arg |
Typedefs | |
typedef fd_set | rb_fdset_t |
typedef VALUE(* | rb_alloc_func_t )(VALUE) |
typedef VALUE | rb_hash_update_func (VALUE newkey, VALUE oldkey, VALUE value) |
typedef void | rb_unblock_function_t (void *) |
typedef VALUE | rb_blocking_function_t (void *) |
#define HAVE_RB_DEFINE_ALLOC_FUNC 1 |
#define HAVE_RB_REG_NEW_STR 1 |
#define OBJ_INIT_COPY | ( | obj, | |
orig | |||
) | ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1)) |
#define OBJ_INIT_COPY | ( | obj, | |
orig | |||
) | ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1)) |
#define rb_argv rb_get_argv() |
Referenced by process_options(), process_sflag(), ruby_prog_init(), and ruby_set_argv().
#define rb_argv rb_get_argv() |
#define rb_big2int | ( | x | ) | rb_big2long(x) |
#define rb_big2int | ( | x | ) | rb_big2long(x) |
#define rb_big2uint | ( | x | ) | rb_big2ulong(x) |
#define rb_big2uint | ( | x | ) | rb_big2ulong(x) |
Referenced by enum_first(), enumerator_initialize(), esignal_init(), int_chr(), lazy_initialize(), make_exception(), num_step(), proc_curry(), rand_random(), rb_ary_aset(), rb_ary_insert(), rb_ary_shuffle_bang(), rb_check_argv(), rb_f_kill(), rb_f_sleep(), rb_f_test(), rb_file_s_umask(), rb_hash_initialize(), rb_mod_define_method(), rb_obj_extend(), rb_reg_initialize_m(), rb_str_aref_m(), rb_str_aset_m(), rb_str_byteslice(), rb_str_count(), rb_str_delete_bang(), rb_str_match_m(), rb_str_slice_bang(), rb_str_sub_bang(), rb_struct_s_def(), rb_struct_select(), sig_trap(), specific_eval(), str_gsub(), str_transcode0(), test_check(), vm_call0_body(), vm_call0_cfunc_with_frame(), vm_call_cfunc_with_frame(), and vm_call_method().
#define rb_check_frozen | ( | obj | ) | rb_check_frozen_inline(obj) |
#define rb_check_frozen | ( | obj | ) | rb_check_frozen_inline(obj) |
Referenced by check_before_mod_set(), d_lite_initialize_copy(), d_lite_marshal_load(), define_final(), dir_check(), nurat_marshal_load(), ossl_bn_copy(), ossl_cipher_copy(), ossl_digest_copy(), ossl_hmac_copy(), ossl_pkcs7_copy(), ossl_sslctx_set_ciphers(), ossl_x509_copy(), ossl_x509crl_copy(), ossl_x509req_copy(), random_init(), rb_ary_modify_check(), rb_const_remove(), rb_define_final(), rb_digest_base_copy(), rb_enc_associate_index(), rb_enc_set_index(), rb_hash_modify_check(), rb_io_taint_check(), rb_ivar_set(), rb_method_entry_make(), rb_mod_remove_cvar(), rb_obj_init_copy(), rb_obj_remove_instance_variable(), rb_obj_taint(), rb_obj_trust(), rb_obj_untaint(), rb_obj_untrust(), rb_reg_initialize(), rb_str_associate(), rb_str_sub_bang(), rb_struct_modify(), rb_undefine_final(), remove_method(), str_encode_bang(), str_modifiable(), time_modify(), and vm_setivar().
#define rb_check_frozen_internal | ( | obj | ) |
Referenced by rb_check_copyable(), and rb_check_frozen().
#define rb_check_frozen_internal | ( | obj | ) |
Definition at line 237 of file intern.h.
Referenced by rb_check_frozen_inline().
#define rb_check_trusted | ( | obj | ) | rb_check_trusted_inline(obj) |
#define rb_check_trusted | ( | obj | ) | rb_check_trusted_inline(obj) |
Referenced by d_lite_initialize_copy(), d_lite_marshal_load(), nurat_marshal_load(), rb_obj_init_copy(), rb_struct_modify(), and time_modify().
#define rb_check_trusted_internal | ( | obj | ) |
Definition at line 243 of file intern.h.
Referenced by rb_check_trusted_inline().
#define rb_check_trusted_internal | ( | obj | ) |
Referenced by rb_check_copyable(), and rb_check_trusted().
#define rb_Complex1 | ( | x | ) | rb_Complex((x), INT2FIX(0)) |
#define rb_Complex1 | ( | x | ) | rb_Complex((x), INT2FIX(0)) |
#define rb_Complex2 | ( | x, | |
y | |||
) | rb_Complex((x), (y)) |
#define rb_Complex2 | ( | x, | |
y | |||
) | rb_Complex((x), (y)) |
#define rb_complex_new1 | ( | x | ) | rb_complex_new((x), INT2FIX(0)) |
#define rb_complex_new1 | ( | x | ) | rb_complex_new((x), INT2FIX(0)) |
Referenced by nilclass_to_c(), and numeric_to_c().
#define rb_complex_new2 | ( | x, | |
y | |||
) | rb_complex_new((x), (y)) |
#define rb_complex_new2 | ( | x, | |
y | |||
) | rb_complex_new((x), (y)) |
Referenced by read_comp().
#define rb_complex_raw1 | ( | x | ) | rb_complex_raw((x), INT2FIX(0)) |
#define rb_complex_raw1 | ( | x | ) | rb_complex_raw((x), INT2FIX(0)) |
Referenced by fix_pow(), flo_pow(), and rb_big_pow().
#define rb_complex_raw2 | ( | x, | |
y | |||
) | rb_complex_raw((x), (y)) |
#define rb_complex_raw2 | ( | x, | |
y | |||
) | rb_complex_raw((x), (y)) |
#define rb_defout rb_stdout |
Referenced by do_select().
Referenced by init_set_fd(), rb_f_select(), rb_io_s_copy_stream(), rb_thread_select(), and rb_w32_select_with_thread().
Referenced by do_select().
Referenced by select_internal(), and select_single().
#define rb_fd_max | ( | f | ) | FD_SETSIZE |
Referenced by maygvl_copy_stream_wait_read(), and nogvl_copy_stream_wait_write().
Referenced by rb_thread_fd_select().
#define rb_fd_select | ( | n, | |
rfds, | |||
wfds, | |||
efds, | |||
timeout | |||
) | select((n), (rfds), (wfds), (efds), (timeout)) |
Referenced by maygvl_select(), and nogvl_copy_stream_wait_write().
Referenced by copy_stream_body(), init_set_fd(), maygvl_copy_stream_wait_read(), nogvl_copy_stream_wait_write(), and select_internal().
Referenced by copy_stream_finalize(), do_select(), rb_thread_select(), rb_w32_select_with_thread(), select_end(), and select_single_cleanup().
Referenced by maygvl_copy_stream_wait_read(), and nogvl_copy_stream_wait_write().
#define rb_hash_end | ( | h | ) | st_hash_end(h) |
Referenced by match_hash(), method_hash(), proc_hash(), rb_any_hash(), rb_obj_hash(), recursive_hash(), and reg_hash().
#define rb_hash_end | ( | h | ) | st_hash_end(h) |
#define rb_hash_uint | ( | h, | |
i | |||
) | st_hash_uint((h), (i)) |
Referenced by match_hash(), method_hash(), rb_hash_method_definition(), rb_hash_proc(), recursive_hash(), and reg_hash().
#define rb_hash_uint | ( | h, | |
i | |||
) | st_hash_uint((h), (i)) |
#define rb_hash_uint32 | ( | h, | |
i | |||
) | st_hash_uint32((h), (i)) |
#define rb_hash_uint32 | ( | h, | |
i | |||
) | st_hash_uint32((h), (i)) |
#define rb_memcmp memcmp |
#define RB_NUM_COERCE_FUNCS_NEED_OPID 1 |
#define rb_Rational1 | ( | x | ) | rb_Rational((x), INT2FIX(1)) |
Referenced by BigDecimal_to_r(), and time_to_r().
#define rb_Rational1 | ( | x | ) | rb_Rational((x), INT2FIX(1)) |
#define rb_Rational2 | ( | x, | |
y | |||
) | rb_Rational((x), (y)) |
#define rb_Rational2 | ( | x, | |
y | |||
) | rb_Rational((x), (y)) |
#define rb_rational_new1 | ( | x | ) | rb_rational_new((x), INT2FIX(1)) |
#define rb_rational_new1 | ( | x | ) | rb_rational_new((x), INT2FIX(1)) |
Referenced by float_rationalize(), integer_to_r(), m_amjd(), minus_dd(), and nilclass_to_r().
#define rb_rational_new2 | ( | x, | |
y | |||
) | rb_rational_new((x), (y)) |
#define rb_rational_new2 | ( | x, | |
y | |||
) | rb_rational_new((x), (y)) |
#define rb_rational_raw1 | ( | x | ) | rb_rational_raw((x), INT2FIX(1)) |
Referenced by fix_pow(), num_quo(), and rb_big_pow().
#define rb_rational_raw1 | ( | x | ) | rb_rational_raw((x), INT2FIX(1)) |
#define rb_rational_raw2 | ( | x, | |
y | |||
) | rb_rational_raw((x), (y)) |
#define rb_rational_raw2 | ( | x, | |
y | |||
) | rb_rational_raw((x), (y)) |
Referenced by nurat_div().
#define RB_RESERVED_FD_P | ( | fd | ) | rb_reserved_fd_p(fd) |
#define RB_RESERVED_FD_P | ( | fd | ) | rb_reserved_fd_p(fd) |
#define rb_str_buf_new2 rb_str_buf_new_cstr |
#define rb_str_buf_new2 rb_str_buf_new_cstr |
#define rb_str_dup_frozen rb_str_new_frozen |
Referenced by dir_initialize(), rb_realpath_internal(), and realpath_rec().
#define rb_str_dup_frozen rb_str_new_frozen |
#define rb_str_new2 rb_str_new_cstr |
Referenced by add_modules(), addrinfo_getnameinfo(), argf_inplace_mode_get(), argf_next_argv(), argf_to_s(), BigDecimal_version(), call_trace_func(), clsid_from_remote(), console_dev(), convert_encoding(), cState_aref(), cState_array_nl(), cState_aset(), cState_indent(), cState_object_nl(), cState_space(), cState_space_before(), date_s_httpdate(), date_s_iso8601(), date_s_jisx0301(), date_s_parse(), date_s_rfc2822(), date_s_rfc3339(), date_s_strptime(), date_s_xmlschema(), date_strftime_with_tmx(), date_zone_to_diff(), datetime_s_httpdate(), datetime_s_iso8601(), datetime_s_jisx0301(), datetime_s_parse(), datetime_s_rfc2822(), datetime_s_rfc3339(), datetime_s_strptime(), datetime_s_xmlschema(), decode_obj(), dir_s_chdir(), econv_primitive_errinfo(), env_inspect(), establishShell(), eval_string_with_cref(), foletype_s_progids(), folevariant_value(), hash2result(), if(), Init_bigdecimal(), Init_cparse(), Init_curses(), Init_dbm(), Init_dl(), Init_eval(), Init_fiddle(), Init_File(), Init_GC(), Init_gdbm(), Init_generator(), Init_IO(), Init_nkf(), Init_openssl(), Init_ossl_asn1(), Init_ossl_config(), Init_ossl_x509name(), Init_parser(), Init_Proc(), Init_strscan(), Init_tcltklib(), Init_tkutil(), Init_VM(), Init_win32ole(), Init_zlib(), insn_operand_intern(), inspect1(), inspect2(), inspect_range(), inspect_struct(), io_puts_ary(), iseq_compile_each(), iseq_data_to_ary(), iseq_s_compile(), iseq_s_compile_file(), load_file_internal(), main_to_s(), make_addrinfo(), make_econv_exception(), make_hostent_internal(), make_inspect(), make_no_method_exception(), make_writeconv(), mString_Extend_json_create(), mString_to_json_raw_object(), mSyslog_ident(), name_err_mesg_to_str(), nsdr(), ole_const_load(), ole_excepinfo2msg(), ole_hresult2msg(), ole_method_invoke_kind(), ole_ole_type(), ole_param_ole_type(), ole_ptrtype2val(), ole_typedesc2val(), ole_variable_kind(), oletypelib_path(), ossl_asn1obj_get_ln(), ossl_asn1obj_get_oid(), ossl_asn1obj_get_sn(), ossl_cipher_name(), ossl_dh_get_params(), ossl_digest_name(), ossl_dsa_get_params(), ossl_get_errors(), ossl_pkcs7_verify(), ossl_rsa_get_params(), ossl_ssl_cipher_to_ary(), ossl_ssl_get_state(), ossl_ssl_get_version(), ossl_x509attr_get_oid(), ossl_x509ext_get_oid(), ossl_x509extfactory_create_ext(), ossl_x509name_to_a(), ossl_x509name_to_s_old(), ossl_x509stctx_get_err_string(), parse(), parse_ddd_cb(), path_check_0(), pipe_open(), proc_options(), process_sflag(), rb_autoload(), rb_check_deadlock(), rb_execarg_run_options(), rb_exit(), rb_feature_provided(), rb_insns_name_array(), rb_invalid_str(), rb_iseq_build_for_ruby2cext(), rb_iseq_compile_with_option(), rb_iseq_new_main(), rb_load_internal(), rb_reg_s_union(), rb_require(), rb_set_class_path(), rb_spawn_process(), rb_str_crypt(), rb_str_split(), rb_strftime_with_timespec(), rb_struct_define(), rb_syserr_new(), rb_tainted_str_new_cstr(), rb_thread_status(), rb_threadptr_signal_exit(), rb_zlib_version(), reg_enum_key(), reg_get_val(), rsock_ipaddr(), rsock_make_ipaddr(), RUBY_ALIAS_FUNCTION(), ruby_eval_string_from_file(), sig_list(), sock_s_gethostbyaddr(), sock_s_getnameinfo(), switch(), syserr_initialize(), tcl_protect_core(), tcltklib_compile_info(), trap(), typelib_file_from_clsid(), and w_encoding().
#define rb_str_new2 rb_str_new_cstr |
#define rb_str_new3 rb_str_new_shared |
Referenced by rb_reg_preprocess_dregexp(), and rb_reg_quote().
#define rb_str_new3 rb_str_new_shared |
#define rb_str_new4 rb_str_new_frozen |
#define rb_str_new4 rb_str_new_frozen |
Referenced by ossl_asn1_decode(), ossl_asn1_decode_all(), ossl_asn1_traverse(), rb_file_identical_p(), rb_get_path_check_convert(), rb_io_s_sysopen(), rb_reg_search(), rb_str_drop_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_str_enumerate_lines(), rb_str_format(), rb_str_substr(), rsock_bsock_send(), ruby_process_options(), sock_connect(), sock_connect_nonblock(), str_byte_substr(), str_replace(), and time_strftime().
#define rb_str_new5 rb_str_new_with_class |
#define rb_str_new5 rb_str_new_with_class |
Referenced by rb_str_dump(), rb_str_justify(), rb_str_reverse(), rb_str_subseq(), rb_str_substr(), rb_str_succ(), rb_str_times(), RUBY_ALIAS_FUNCTION(), and str_byte_substr().
#define rb_tainted_str_new2 rb_tainted_str_new_cstr |
Referenced by env_assoc(), for(), if(), rb_dir_getwd(), rb_dlcfunc_name(), rb_dlptr_to_s(), rb_fiddle_ptr_to_s(), and sock_s_getservbyport().
#define rb_tainted_str_new2 rb_tainted_str_new_cstr |
#define rb_usascii_str_new2 rb_usascii_str_new_cstr |
#define rb_usascii_str_new2 rb_usascii_str_new_cstr |
Referenced by code_page(), date__strptime_internal(), date_strftime_internal(), enc_name(), enc_names_i(), env_to_s(), false_to_s(), flo_to_s(), Init_File(), Init_IO(), inspect_hash(), iso8601_timediv(), jisx0301_date(), m_zone(), make_exception(), mk_ary_of_str(), nil_inspect(), nucomp_inspect(), nurat_inspect(), rb_ary_inspect(), rb_big2str0(), rb_enc_aliases_enc_i(), rb_enc_name_list_i(), rb_file_dirname(), rb_file_ftype(), rb_fix2str(), rb_hash_inspect(), rb_id2str(), rb_locale_charmap(), rb_mod_to_s(), rb_provide(), true_to_s(), and unknown_keyword_error().
Referenced by argf_each_byte(), argf_each_char(), argf_each_codepoint(), argf_each_line(), d_lite_downto(), d_lite_step(), d_lite_upto(), dir_each(), dir_foreach(), enum_drop_while(), enum_find(), enum_find_index(), enum_take_while(), etc_each_passwd(), fdbm_each_key(), fdbm_each_pair(), fdbm_each_value(), fgdbm_each_key(), fgdbm_each_pair(), fgdbm_each_value(), fole_each(), fsdbm_each_key(), fsdbm_each_pair(), fsdbm_each_value(), hist_each(), os_each_obj(), range_bsearch(), rb_ary_bsearch(), rb_ary_drop_while(), rb_ary_index(), rb_ary_rindex(), rb_ary_take_while(), rb_gzreader_each(), rb_gzreader_each_byte(), rb_gzreader_each_char(), rb_io_each_byte(), rb_io_each_char(), rb_io_each_codepoint(), rb_io_each_line(), rb_io_s_foreach(), rb_str_enumerate_lines(), rb_str_upto(), str_gsub(), strio_each(), strio_each_byte(), strio_each_char(), and strio_each_codepoint().
Referenced by enum_collect(), enum_cycle(), enum_each_cons(), enum_each_entry(), enum_each_slice(), enum_each_with_index(), enum_each_with_object(), enum_find_all(), enum_flat_map(), enum_group_by(), enum_max_by(), enum_min_by(), enum_minmax_by(), enum_partition(), enum_reject(), enum_reverse_each(), enum_sort_by(), enumerator_with_index(), enumerator_with_object(), env_delete_if(), env_each_key(), env_each_pair(), env_each_value(), env_keep_if(), env_reject_bang(), env_select(), env_select_bang(), int_dotimes(), int_downto(), int_upto(), num_step(), range_each(), range_step(), rb_ary_collect(), rb_ary_collect_bang(), rb_ary_combination(), rb_ary_cycle(), rb_ary_delete_if(), rb_ary_each(), rb_ary_each_index(), rb_ary_keep_if(), rb_ary_permutation(), rb_ary_reject(), rb_ary_reject_bang(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_reverse_each(), rb_ary_select(), rb_ary_select_bang(), rb_ary_sort_by_bang(), rb_f_loop(), rb_hash_delete_if(), rb_hash_each_key(), rb_hash_each_pair(), rb_hash_each_value(), rb_hash_keep_if(), rb_hash_reject_bang(), rb_hash_select(), rb_hash_select_bang(), rb_str_enumerate_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_struct_each(), rb_struct_each_pair(), and rb_struct_select().
#define RUBY_UBF_IO ((rb_unblock_function_t *)-1) |
#define RUBY_UBF_IO ((rb_unblock_function_t *)-1) |
#define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) |
Referenced by call_without_gvl(), and rb_waitpid().
#define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) |
#define UNLIMITED_ARGUMENTS (-1) |
Referenced by enumerator_initialize(), rb_arg_error_new(), rb_ary_insert(), rb_check_argv(), rb_f_kill(), rb_iseq_min_max_arity(), rb_method_entry_min_max_arity(), rb_obj_extend(), rb_proc_arity(), rb_proc_min_max_arity(), rb_scan_args(), rb_str_count(), rb_str_delete_bang(), rb_struct_s_def(), and vm_callee_setup_arg_complex().
typedef fd_set rb_fdset_t |
DEPRECATED | ( | void | rb_quad_packchar *, VALUE | ) |
DEPRECATED | ( | VALUE | rb_quad_unpackconst char *, int | ) |
DEPRECATED | ( | VALUE | rb_f_lambdavoid | ) |
DEPRECATED | ( | void | rb_thread_pollingvoid | ) |
DEPRECATED | ( | int | rb_thread_selectint, fd_set *, fd_set *, fd_set *, struct timeval * | ) |
DEPRECATED | ( | int | rb_proc_exec_nint, VALUE *, const char * | ) |
DEPRECATED | ( | VALUE | rb_exec_arg_initint argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e | ) |
DEPRECATED | ( | int | rb_exec_arg_addoptstruct rb_exec_arg *e, VALUE key, VALUE val | ) |
DEPRECATED | ( | void | rb_exec_arg_fixupstruct rb_exec_arg *e | ) |
DEPRECATED | ( | int | rb_run_exec_optionsconst struct rb_exec_arg *e, struct rb_exec_arg *s | ) |
DEPRECATED | ( | int | rb_run_exec_options_errconst struct rb_exec_arg *e, struct rb_exec_arg *s, char *, size_t | ) |
DEPRECATED | ( | int | rb_execconst struct rb_exec_arg * | ) |
DEPRECATED | ( | int | rb_exec_errconst struct rb_exec_arg *, char *, size_t | ) |
DEPRECATED | ( | rb_pid_t | rb_forkint *, int(*)(void *), void *, VALUE | ) |
DEPRECATED | ( | rb_pid_t | rb_fork_errint *, int(*)(void *, char *, size_t), void *, VALUE, char *, size_t | ) |
DEPRECATED | ( | VALUE | rb_struct_iv_getVALUE, const char * | ) |
DEPRECATED | ( | VALUE | rb_thread_blocking_regionrb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2 | ) |
NORETURN | ( | void | rb_cmperrVALUE, VALUE | ) |
NORETURN | ( | void | rb_invalid_strconst char *, const char * | ) |
NORETURN | ( | void | rb_error_frozenconst char * | ) |
NORETURN | ( | void | rb_error_arityint, int, int | ) |
NORETURN | ( | void | rb_exc_raiseVALUE | ) |
NORETURN | ( | void | rb_jump_tagint | ) |
NORETURN | ( | void | rb_memerrorvoid | ) |
PRINTF_ARGS | ( | NORETURN(void rb_loaderror(const char *,...)) | , |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | NORETURN(void rb_name_error(ID, const char *,...)) | , |
2 | , | ||
3 | |||
) |
PRINTF_ARGS | ( | NORETURN(void rb_name_error_str(VALUE, const char *,...)) | , |
2 | , | ||
3 | |||
) |
PRINTF_ARGS | ( | void | rb_compile_errorconst char *, int, const char *,..., |
3 | , | ||
4 | |||
) |
PRINTF_ARGS | ( | void | rb_compile_error_with_encconst char *, int, void *, const char *,..., |
4 | , | ||
5 | |||
) |
PRINTF_ARGS | ( | void | rb_compile_error_appendconst char *,..., |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | VALUE | rb_sprintfconst char *,..., |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | VALUE | rb_str_catfVALUE, const char *,..., |
2 | , | ||
3 | |||
) |
Definition at line 1209 of file vm_method.c.
References rb_method_entry_struct::def, cache_entry::defined_class, rb_method_entry_struct::flag, flag, klass, method_entry_set(), NIL_P(), NOEX_UNDEF, rb_method_definition_struct::original_id, rb_cObject, rb_eTypeError, rb_frozen_class_p(), rb_print_undef(), rb_raise(), rb_secure(), RB_TYPE_P, RBASIC, RCLASS_ORIGIN, RCLASS_SUPER, search_method(), T_ICLASS, T_MODULE, rb_method_definition_struct::type, UNDEFINED_METHOD_ENTRY_P, UNDEFINED_REFINED_METHOD_P, and VM_METHOD_TYPE_ZSUPER.
Definition at line 863 of file variable.c.
References ALLOC, global_variable::block_trace, global_variable::counter, global_entry, name1, trace_var::next, rb_eRuntimeError, rb_eSecurityError, rb_global_entry(), rb_raise(), rb_safe_level, st_add_direct(), st_lookup(), global_variable::trace, and xfree.
Definition at line 393 of file object.c.
References CLASS_OF, OBJ_INFECT, PRIsVALUE, rb_class_name(), rb_sprintf(), and str.
Calls a method.
recv | receiver of the method |
mid | an ID that represents the name of the method |
args | an Array object which contains method arguments |
Definition at line 744 of file vm_eval.c.
References ALLOCA_N, argc, argv, CALL_FCALL, MEMCPY, OBJ_FREEZE, RARRAY_LENINT, RARRAY_PTR(), rb_ary_subseq(), rb_call(), RB_GC_GUARD, RBASIC, and ret.
Definition at line 2820 of file object.c.
References NIL_P(), rb_ary_new3(), rb_check_array_type(), rb_check_convert_type(), T_ARRAY, and tmp.
Definition at line 1150 of file array.c.
References arg, FIX2LONG, FIXNUM_P, len, NULL, NUM2LONG, Qfalse, Qnil, RARRAY_LEN, rb_ary_entry(), rb_ary_subseq(), rb_range_beg_len(), and rb_scan_args().
Referenced by Init_Array(), and match_aref().
Definition at line 3465 of file array.c.
References i, NIL_P(), Qnil, RARRAY_LEN, RARRAY_PTR(), rb_check_array_type(), rb_equal(), and v.
Referenced by Init_Array().
Definition at line 3208 of file array.c.
References ary, ARY_CAPA, ARY_DEFAULT_SIZE, ARY_EMBED_P, ary_resize_capa(), ARY_SET_LEN, ARY_SHARED_P, FL_SET_EMBED, rb_ary_modify_check(), and rb_ary_unshare().
Referenced by coverage_result_i(), fdbm_delete_if(), fgdbm_delete_if(), Init_Array(), iseq_set_arguments(), method_missing(), open_key_args(), r_object0(), rb_io_s_popen(), rb_threadptr_pending_interrupt_clear(), ruby_set_argv(), and set_argv().
Definition at line 3712 of file array.c.
References INT2FIX, len, NIL_P(), Qnil, Qundef, RARRAY_LEN, rb_check_array_type(), rb_exec_recursive_paired(), recursive_cmp(), and v.
Referenced by Init_Array().
Definition at line 3370 of file array.c.
References RARRAY_LEN, rb_ary_modify_check(), rb_ary_splice(), and to_ary().
Referenced by argf_readlines(), enum_sort_by(), flat_map_i(), Init_Array(), ole_methods(), open_key_args(), rb_str_associate(), sort_by_i(), and str_associate().
Definition at line 2748 of file array.c.
References ary_resize_smaller(), e, Qnil, RARRAY_LEN, RARRAY_PTR(), rb_ary_store(), rb_block_given_p(), rb_equal(), rb_yield(), and v.
Referenced by env_replace_i(), and Init_Array().
Definition at line 2801 of file array.c.
References ARY_INCREASE_LEN, len, MEMMOVE, Qnil, RARRAY_LEN, RARRAY_PTR(), and rb_ary_modify().
Referenced by ary_reject_bang(), ole_delete_event(), rb_ary_delete_at_m(), rb_ary_slice_bang(), and rb_threadptr_pending_interrupt_deque().
Definition at line 1766 of file array.c.
References ARY_SET_LEN, MEMCPY, RARRAY_LEN, RARRAY_PTR(), and rb_ary_new2().
Referenced by ary2sv(), coverage_result_i(), each_cons_i(), enumerator_each(), enumerator_peek_values_m(), iseq_build_from_ary_body(), method_def_location(), rb_ary_compact(), rb_ary_shuffle(), rb_ary_sort(), rb_ary_transpose(), rb_ary_uniq(), rb_io_s_popen(), rb_struct_s_members_m(), save_env_i(), and thread_create_core().
Definition at line 1658 of file array.c.
References ary, i, RARRAY_LEN, RARRAY_PTR(), rb_ary_length(), rb_yield(), and RETURN_SIZED_ENUMERATOR.
Referenced by dir_s_glob(), Init_Array(), and ossl_asn1cons_each().
Definition at line 1088 of file array.c.
References RARRAY_LEN, and rb_ary_elt().
Referenced by addrinfo_initialize(), addrinfo_ip_address(), addrinfo_ip_unpack(), addrinfo_mload(), ary2ptr_dispparams(), ary_len_of_dim(), ary_new_dim(), check_exec_redirect(), collect_caller_bindings(), dimension(), divmodv(), enc_register_at(), EVENTSINK_Invoke(), evs_entry(), foletypelib_initialize(), folevariant_initialize(), folevariant_s_array(), frame_get(), generate_json_array(), generate_json_object(), get_loaded_features_index(), hash2named_arg(), iseq_build_from_ary_body(), iseq_data_to_ary(), iseq_load(), JSON_parse_string(), lazy_zip_arrays_func(), lep_svar_get(), match_i(), ole_ary_m_entry(), ole_invoke(), ole_invoke2(), ole_search_event(), ole_search_event_at(), oletypelib_search_registry2(), ossl_asn1cons_to_der(), ossl_call_client_cert_cb(), ossl_call_session_get_cb(), ossl_call_session_new_cb(), ossl_call_session_remove_cb(), ossl_sslctx_set_ciphers(), ossl_x509name_init_i(), path_split(), pty_close_pty(), rb_ary_aref(), rb_ary_at(), rb_ary_bsearch(), rb_ary_product(), rb_ary_values_at(), rb_debug_inspector_frame_binding_get(), rb_debug_inspector_frame_class_get(), rb_debug_inspector_frame_iseq_get(), rb_debug_inspector_frame_self_get(), rb_econv_init_by_convpath(), rb_enc_aliases_enc_i(), rb_enc_from_encoding_index(), rb_execarg_addopt(), rb_iseq_build_from_ary(), rb_iseq_disasm(), rb_reg_s_union(), rb_reg_s_union_m(), rb_struct_each_pair(), rb_struct_to_h(), rescue_callback(), select_internal(), set_state_ivars(), start_document(), time_timespec(), and wdivmod().
Definition at line 471 of file array.c.
References ARY_HEAP_PTR, ARY_OWNS_HEAP_P, and xfree.
Referenced by ary_discard(), obj_free(), rb_ary_decrement_share(), and ruby_vm_run_at_exit_hooks().
Definition at line 330 of file array.c.
References rb_obj_freeze().
Referenced by coverage_result_i(), curry(), make_curry_proc(), and rb_add_method().
Definition at line 3654 of file array.c.
References i, Qfalse, Qtrue, RARRAY_LEN, RARRAY_PTR(), and rb_equal().
Referenced by env_replace_i(), and Init_Array().
Definition at line 1874 of file array.c.
References ary_join_0(), ary_join_1(), FALSE, i, len, NIL_P(), OBJ_TAINT, OBJ_TAINTED, OBJ_UNTRUST, OBJ_UNTRUSTED, RARRAY_LEN, RARRAY_PTR(), rb_check_string_type(), rb_enc_associate(), rb_str_buf_new(), rb_usascii_encoding(), rb_usascii_str_new(), result, RSTRING_LEN, StringValue, tmp, TRUE, and val.
Referenced by insn_operand_intern(), pipe_open(), rb_ary_join_m(), rb_ary_times(), rb_spawn_process(), and tcl_protect_core().
Definition at line 254 of file array.c.
References ALLOC_N, ARY_EMBED_PTR, ARY_HEAP_PTR, ARY_SET_CAPA, ARY_SET_EMBED_LEN, ARY_SET_PTR, ARY_SHARED, ARY_SHARED_NUM, ARY_SHARED_P, FL_SET_EMBED, FL_UNSET_SHARED, len, MEMCPY, MEMMOVE, ptr, RARRAY_EMBED_LEN_MAX, RARRAY_LEN, RARRAY_PTR(), rb_ary_decrement_share(), rb_ary_modify_check(), rb_ary_unshare(), and shift.
Referenced by ary_ensure_room_for_push(), ary_ensure_room_for_unshift(), ary_resize_smaller(), rb_ary_collect_bang(), rb_ary_compact_bang(), rb_ary_delete_at(), rb_ary_fill(), rb_ary_initialize(), rb_ary_resize(), rb_ary_reverse(), rb_ary_rotate(), rb_ary_select_bang(), rb_ary_shuffle_bang(), rb_ary_sort_bang(), rb_ary_sort_by_bang(), rb_ary_splice(), and rb_ary_store().
Definition at line 424 of file array.c.
References RARRAY_EMBED_LEN_MAX, and rb_ary_new2().
Referenced by add_event_call_back(), add_modules(), addrinfo_list_new(), argf_readlines(), ary_new_dim(), backtrace_collect(), check_exec_redirect1(), class_instance_method_list(), collect_caller_bindings(), debug_lines(), dir_globs(), econv_convpath(), enum_collect(), enum_cycle(), enum_drop(), enum_drop_while(), enum_find_all(), enum_flat_map(), enum_grep(), enum_partition(), enum_reject(), enum_sort_by(), enum_take_while(), enum_to_a(), enum_zip(), env_each_pair(), env_keys(), env_to_a(), env_values(), env_values_at(), EVENTSINK_Invoke(), fdbm_keys(), fdbm_select(), fdbm_to_a(), fdbm_values(), fev_initialize(), fgdbm_keys(), fgdbm_select(), fgdbm_to_a(), fgdbm_values(), filename_completion_proc_call(), foletype_s_progids(), foletypelib_ole_types(), foletypelib_s_typelibs(), fsdbm_delete_if(), fsdbm_keys(), fsdbm_select(), fsdbm_to_a(), fsdbm_values(), gc_profile_record_get(), if(), Init_load(), Init_ossl_asn1(), Init_VM(), Init_win32ole(), insn_operand_intern(), int_ossl_asn1_decode0_cons(), iseq_data_to_ary(), JSON_parse_array(), lep_svar_set(), make_addrinfo(), make_hostent_internal(), nsdr(), ole_method_params(), ole_method_return_type_detail(), ole_methods(), ole_methods_from_typeinfo(), ole_param_ole_type_detail(), ole_type_impl_ole_types(), ole_variable_ole_type_detail(), ole_variables(), ole_variant2val(), ossl_asn1_decode0(), ossl_asn1_decode_all(), ossl_get_errors(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), ossl_sslctx_get_ciphers(), ossl_x509_get_extensions(), ossl_x509crl_get_extensions(), ossl_x509crl_get_revoked(), ossl_x509name_to_a(), ossl_x509req_get_attributes(), ossl_x509revoked_get_extensions(), ossl_x509stctx_get_chain(), pack_pack(), pack_unpack(), parse(), prepare_iseq_build(), proc_curry(), proc_waitall(), rb_ary_diff(), rb_ary_drop(), rb_ary_reject(), rb_call_end_proc(), rb_check_exec_env(), rb_enc_aliases(), rb_execarg_addopt(), rb_f_global_variables(), rb_f_local_variables(), rb_f_untrace_var(), rb_fiddle_ptr_free_get(), rb_gzreader_readlines(), rb_hash_keys(), rb_hash_to_a(), rb_hash_values(), rb_insns_name_array(), rb_io_readlines(), rb_iseq_disasm(), rb_iseq_line_trace_all(), rb_mod_ancestors(), rb_mod_included_modules(), rb_mod_nesting(), rb_obj_instance_variables(), rb_obj_singleton_methods(), rb_push_glob(), rb_reg_names(), rb_scan_args(), rb_str_enumerate_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_str_enumerate_lines(), rb_str_scan(), rb_str_split_m(), rb_struct_select(), rb_thread_keys(), rb_thread_list(), rb_thread_variables(), reachable_objects_from(), reduce0(), save_env(), save_redirect_fd(), search_convpath_i(), select_internal(), sock_s_gethostbyaddr(), strio_readlines(), switch(), thgroup_list(), username_completion_proc_call(), vm_backtrace_to_ary(), vm_expandarray(), and vm_yield_setup_block_args().
VALUE rb_ary_new2 | ( | long | ) |
Definition at line 417 of file array.c.
References ary_new(), and rb_cArray.
Referenced by ary_make_substitution(), BigDecimal_split(), collect_caller_bindings_cfunc(), collect_caller_bindings_iseq(), coverage(), cvar_list(), each_slice_i(), econv_primitive_errinfo(), enc_list(), enc_names(), enum_each_cons(), enum_each_slice(), enum_sort_by(), enum_take(), fdbm_values_at(), fgdbm_values_at(), fsdbm_values_at(), generator_each(), Init_Encoding(), Init_ossl_ssl(), Init_tcltklib(), iseq_data_to_ary(), JSON_parse_string(), lazy_zip(), lazy_zip_arrays_func(), lazy_zip_func(), make_hostent_internal(), match_array(), mk_ary_of_str(), nil_to_a(), ossl_generate_cb(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), ossl_ssl_cipher_to_ary(), ossl_ssl_get_peer_cert_chain(), ossl_sslctx_get_ciphers(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_sslctx_session_remove_cb(), ossl_x509_get_extensions(), ossl_x509crl_get_extensions(), ossl_x509crl_get_revoked(), ossl_x509name_to_a(), ossl_x509req_get_attributes(), ossl_x509revoked_get_extensions(), ossl_x509stctx_get_chain(), pty_getpty(), r_object0(), random_dump(), range_first(), rb_ary_and(), rb_ary_collect(), rb_ary_combination(), rb_ary_dup(), rb_ary_new(), rb_ary_new3(), rb_ary_new4(), rb_ary_or(), rb_ary_permutation(), rb_ary_plus(), rb_ary_product(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_reverse_m(), rb_ary_rotate_m(), rb_ary_sample(), rb_ary_select(), rb_ary_slice_bang(), rb_ary_to_a(), rb_ary_transpose(), rb_ary_zip(), rb_const_list(), rb_enc_name_list(), rb_get_values_at(), rb_hash_values_at(), rb_iseq_parameters(), rb_str_enumerate_bytes(), rb_str_split_m(), rb_sym_all_symbols(), rb_zlib_crc_table(), reg_named_captures_iter(), scan_once(), select_internal(), take_items(), unnamed_parameters(), yield_indexed_values(), zip_ary(), and zip_i().
VALUE rb_ary_new3 | ( | long | , |
... | |||
) |
Definition at line 432 of file array.c.
References ary, ARY_SET_LEN, i, n, RARRAY_PTR(), rb_ary_new2(), and va_end().
Referenced by addrinfo_mdump(), bmcall(), check_exec_redirect(), chunk_ii(), d_lite_marshal_dump(), define_final0(), enum_minmax(), ev_on_event(), group_by_i(), lazy_drop(), lazy_grep(), lazy_take(), make_curry_proc(), ossl_bn_div(), ossl_x509name_initialize(), ossl_x509name_to_a(), parse(), path_split(), rb_add_method(), rb_Array(), rb_ary_combination(), rb_ary_permutation(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_sample(), rb_ary_to_ary(), rb_assoc_new(), rb_check_backtrace(), rb_execarg_addopt(), rb_f_untrace_var(), rb_str_partition(), rb_str_rpartition(), rb_str_split_m(), rb_trace_eval(), rsock_ipaddr(), rt_complete_frags(), run_finalizer(), setup_exception(), signal_exec(), slicebefore_ii(), switch(), time_to_a(), and unnamed_parameters().
Definition at line 451 of file array.c.
References ary, ARY_SET_LEN, MEMCPY, RARRAY_PTR(), and rb_ary_new2().
Referenced by call_cfunc_m2(), check_funcall_exec(), curry(), enum_zip(), enumerator_each(), enumerator_init(), enumerator_with_index_i(), enumerator_with_object_i(), get_stack_tail(), iseq_location(), lazy_zip(), lazy_zip_func(), libyaml_version(), make_no_method_exception(), make_passing_arg(), next_ii(), pipe_open(), proc_fallback(), rb_ary_insert(), rb_ary_resurrect(), rb_ary_sample(), rb_ary_slice_bang(), rb_enum_values_pack(), rb_f_p_internal(), rb_mod_module_exec(), rb_obj_instance_exec(), rb_scan_args(), rb_spawn_process(), rb_struct_to_a(), take_i(), vm_call0_body(), vm_callee_setup_arg_complex(), vm_expandarray(), vm_yield_setup_block_args(), vm_yield_setup_block_args_complex(), and vm_yield_with_cfunc().
Definition at line 3341 of file array.c.
References ARY_SET_LEN, len, MEMCPY, RARRAY_LEN, RARRAY_PTR(), rb_ary_new2(), and to_ary().
Referenced by curry(), and Init_Array().
Definition at line 866 of file array.c.
References ARY_CAPA, ARY_DEFAULT_SIZE, ARY_OWNS_HEAP_P, ary_resize_capa(), ARY_SET_LEN, n, Qnil, RARRAY_LEN, RARRAY_PTR(), and rb_ary_modify_check().
Referenced by cut_stack_tail(), flatten(), r_object0(), rb_ary_pop_m(), rb_str_split_m(), rb_thread_s_handle_interrupt(), rb_uninterruptible(), and ruby_vm_run_at_exit_hooks().
Definition at line 822 of file array.c.
References ary, ary_ensure_room_for_push(), ARY_SET_LEN, idx, RARRAY_LEN, and RARRAY_PTR().
Referenced by add_event_call_back(), add_modules(), addrinfo_list_new(), ary_reject(), backtrace_collect(), BigDecimal_split(), callback(), cdhash_each(), check_exec_env_i(), check_exec_redirect1(), chunk_ii(), collect_all(), collect_caller_bindings_cfunc(), collect_caller_bindings_iseq(), collect_i(), collect_local_variables_in_iseq(), collect_trace(), collect_values(), compile_array_(), cv_list_i(), cycle_i(), define_final0(), drop_i(), drop_while_i(), each_cons_i(), each_slice_i(), econv_convpath(), enc_names_i(), env_each_pair(), env_keys(), env_to_a(), env_values(), env_values_at(), EVENTSINK_Invoke(), evs_push(), fdbm_delete_if(), fdbm_keys(), fdbm_select(), fdbm_to_a(), fdbm_values(), fdbm_values_at(), features_index_add_single(), fgdbm_delete_if(), fgdbm_keys(), fgdbm_select(), fgdbm_to_a(), fgdbm_values(), fgdbm_values_at(), filename_completion_proc_call(), find_all_i(), first_i(), flat_map_i(), flatten(), foletype_s_progids(), foletypelib_s_typelibs(), for(), fsdbm_delete_if(), fsdbm_keys(), fsdbm_select(), fsdbm_to_a(), fsdbm_values(), fsdbm_values_at(), gc_profile_record_get(), generator_each(), grep_i(), grep_iter_i(), group_by_i(), gvar_i(), Init_Array(), Init_Encoding(), Init_ossl_ssl(), Init_VM(), ins_methods_push(), insn_operand_intern(), int_ossl_asn1_decode0_cons(), iseq_add_mark_object_compile_time(), iseq_data_to_ary(), iseq_set_arguments(), ivar_i(), JSON_parse_array(), JSON_parse_string(), keys_i(), lazy_init_iterator(), lazy_zip(), lazy_zip_arrays_func(), lazy_zip_func(), lex_getline(), list_i(), make_addrinfo(), make_hostent_internal(), match_array(), match_i(), mk_ary_of_str(), nsdr(), ole_method_params(), ole_methods_sub(), ole_type_impl_ole_types(), ole_typedesc2val(), ole_types_from_typelib(), ole_usertype2val(), ole_variables(), open_key_args(), ossl_asn1_decode0(), ossl_asn1_decode_all(), ossl_get_errors(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), ossl_ssl_cipher_to_ary(), ossl_ssl_get_peer_cert_chain(), ossl_sslctx_get_ciphers(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_sslctx_session_remove_cb(), ossl_x509_get_extensions(), ossl_x509crl_get_extensions(), ossl_x509crl_get_revoked(), ossl_x509name_to_a(), ossl_x509req_get_attributes(), ossl_x509revoked_get_extensions(), ossl_x509stctx_get_chain(), pack_pack(), parse(), partition_i(), proc_waitall(), push_include(), push_pattern(), push_value(), r_object0(), random_dump(), rb_ary_and(), rb_ary_collect(), rb_ary_diff(), rb_ary_or(), rb_ary_product(), rb_ary_select(), rb_ary_uniq(), rb_ary_zip(), rb_construct_expanded_load_path(), rb_enc_name_list_i(), rb_execarg_addopt(), rb_f_global_variables(), rb_f_local_variables(), rb_f_untrace_var(), rb_fiddle_ptr_free_get(), rb_gc_register_mark_object(), rb_get_values_at(), rb_gzreader_readlines(), rb_hash_values_at(), rb_insns_name_array(), rb_io_readlines(), rb_iseq_add_mark_object(), rb_iseq_parameters(), rb_mod_ancestors(), rb_mod_included_modules(), rb_mod_nesting(), rb_provide_feature(), rb_require_safe(), rb_str_enumerate_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_str_enumerate_lines(), rb_str_scan(), rb_str_split_m(), rb_struct_define(), rb_struct_define_without_accessor(), rb_struct_select(), rb_thread_s_handle_interrupt(), rb_threadptr_pending_interrupt_enque(), rb_uninterruptible(), rb_zlib_crc_table(), reachable_object_from_i(), reg_names_iter(), reject_i(), ruby_init_loadpath_safe(), ruby_set_argv(), ruby_vm_at_exit(), save_env_i(), save_redirect_fd(), scan_once(), select_internal(), set_argv(), slicebefore_ii(), sock_s_gethostbyaddr(), strio_readlines(), switch(), symbols_i(), take_i(), take_while_i(), thgroup_list_i(), thread_keys_i(), thread_list_i(), to_a_i(), unnamed_parameters(), username_completion_proc_call(), values_i(), waitall_each(), wmap_aset(), yycompile0(), zip_ary(), and zip_i().
Definition at line 3498 of file array.c.
References i, Qnil, RARRAY_LEN, RARRAY_PTR(), rb_equal(), RB_TYPE_P, T_ARRAY, and v.
Referenced by Init_Array().
Definition at line 3156 of file array.c.
References ary_make_shared(), ARY_OWNS_HEAP_P, ARY_SET_LEN, ARY_SET_PTR, ARY_SHARED, ARY_SHARED_P, FL_SET_EMBED, FL_UNSET_EMBED, FL_UNSET_SHARED, MEMCPY, ptr, RARRAY_EMBED_LEN_MAX, RARRAY_LEN, RARRAY_PTR(), rb_ary_decrement_share(), rb_ary_modify_check(), rb_ary_set_shared(), rb_ary_unshare_safe(), to_ary(), and xfree.
Referenced by enc_list(), Init_Array(), rb_ary_flatten_bang(), rb_ary_initialize(), rb_ary_sort_by_bang(), rb_ary_to_a(), rb_construct_expanded_load_path(), and reset_loaded_features_snapshot().
expands or shrinks ary to len elements.
expanded region will be filled with Qnil.
ary | an array |
len | new size |
Definition at line 1501 of file array.c.
References ary, ARY_CAPA, ARY_DEFAULT_SIZE, ary_discard(), ary_double_capa(), ARY_EMBED_P, ARY_EMBED_PTR, ARY_HEAP_PTR, ARY_MAX_SIZE, ARY_SET_CAPA, ARY_SET_EMBED_LEN, ARY_SET_HEAP_LEN, ARY_SET_LEN, MEMCPY, RARRAY, RARRAY_EMBED_LEN_MAX, RARRAY_LEN, RARRAY_PTR(), rb_ary_modify(), rb_eIndexError, rb_mem_clear(), rb_raise(), REALLOC_N, and tmp.
Referenced by enum_sort_by(), rb_get_values_at(), and wmap_free_map().
Definition at line 1775 of file array.c.
References RARRAY_LEN, RARRAY_PTR(), and rb_ary_new4().
Referenced by obj_resurrect().
Definition at line 2031 of file array.c.
References ary, ary_reverse(), RARRAY_LEN, RARRAY_PTR(), and rb_ary_modify().
Referenced by collect_caller_bindings(), and rb_ary_reverse_bang().
Definition at line 2093 of file array.c.
References ary, ary_reverse(), len, ptr, Qnil, RARRAY_LEN, RARRAY_PTR(), rb_ary_modify(), and rotate_count().
Referenced by rb_ary_rotate_bang().
Definition at line 358 of file array.c.
References ARY_EMBED_P, ARY_SHARED_P, Qfalse, Qtrue, and RARRAY.
Referenced by get_loaded_features_index(), and rb_get_expanded_load_path().
Definition at line 916 of file array.c.
References ARY_DEFAULT_SIZE, ARY_EMBED_P, ARY_INCREASE_LEN, ARY_INCREASE_PTR, ary_make_shared(), ARY_SHARED, ARY_SHARED_NUM, ARY_SHARED_P, assert, MEMMOVE, Qnil, RARRAY_LEN, RARRAY_PTR(), rb_ary_modify_check(), and top.
Referenced by argf_next_argv(), each_cons_i(), filename_completion_proc_call(), process_sflag(), rb_ary_shift_m(), rb_threadptr_pending_interrupt_deque(), require_libraries(), and username_completion_proc_call().
Definition at line 2361 of file array.c.
References ary, rb_ary_dup(), and rb_ary_sort_bang().
Referenced by enum_sort(), and Init_Array().
Definition at line 2278 of file array.c.
References ary_sort_data::ary, ary, ARY_EMBED_LEN, ARY_EMBED_P, ARY_EMBED_PTR, ARY_HEAP_PTR, ary_make_substitution(), ARY_SET_CAPA, ARY_SET_EMBED_LEN, ARY_SET_HEAP_LEN, ARY_SET_LEN, ARY_SET_PTR, ARY_SHARED_P, assert, FL_FREEZE, FL_SET, FL_SET_EMBED, FL_UNSET, FL_UNSET_EMBED, FL_UNSET_SHARED, len, MEMCPY, ary_sort_data::opt_inited, ary_sort_data::opt_methods, RARRAY_LEN, RARRAY_PTR(), rb_ary_modify(), rb_ary_unshare(), rb_block_given_p(), rb_cArray, RBASIC, ruby_qsort(), sort_1(), sort_2(), tmp, and xfree.
Referenced by Init_Array(), and rb_ary_sort().
Definition at line 719 of file array.c.
References ARY_CAPA, ary_double_capa(), ARY_MAX_SIZE, ARY_SET_LEN, idx, RARRAY_LEN, RARRAY_PTR(), rb_ary_modify(), rb_eIndexError, rb_mem_clear(), rb_raise(), and val.
Referenced by addrinfo_ip_unpack(), ary_new_dim(), ary_store_dim(), check_exec_fds(), collect_caller_bindings(), collect_caller_bindings_cfunc(), collect_caller_bindings_iseq(), decorate_convpath(), econv_primitive_errinfo(), enc_register_at(), enum_minmax(), enum_sort_by(), evs_delete(), get_loaded_features_index(), Init_ossl_asn1(), iseq_build_from_ary_body(), iseq_data_to_ary(), lep_svar_set(), ossl_generate_cb(), path_entries(), path_s_glob(), pty_getpty(), rb_ary_aset(), rb_ary_collect_bang(), rb_ary_delete(), rb_ary_delete_same(), rb_ary_initialize(), rb_ary_select_bang(), rb_ary_transpose(), rb_ary_uniq_bang(), rb_enc_aliases_enc_i(), reg_named_captures_iter(), search_convpath_i(), sym_to_proc(), unnamed_parameters(), zip_ary(), and zip_i().
Definition at line 1097 of file array.c.
References ary_make_partial(), ary_new(), klass, Qnil, RARRAY_LEN, and rb_obj_class().
Referenced by rb_apply(), rb_ary_aref(), rb_ary_drop(), rb_ary_take(), and take_items().
VALUE rb_ary_tmp_new | ( | long | ) |
Definition at line 465 of file array.c.
References ary_new().
Referenced by callback(), compile_array_(), enum_sort_by(), fdbm_delete_if(), features_index_add_single(), fgdbm_delete_if(), Init_load(), Init_Thread(), Init_top_self(), iseq_set_arguments(), lazy_init_iterator(), method_missing(), open_key_args(), prepare_iseq_build(), r_object0(), rb_construct_expanded_load_path(), rb_iseq_add_mark_object(), rb_struct_define(), rb_struct_define_without_accessor(), rb_struct_new(), rb_struct_s_def(), sym_to_proc(), thread_create_core(), and wmap_aset().
Definition at line 1412 of file array.c.
References NIL_P(), rb_ary_new3(), rb_check_array_type(), and tmp.
Referenced by rb_ary_splice(), and vm_expandarray().
Definition at line 1982 of file array.c.
References rb_ary_inspect().
Definition at line 1071 of file array.c.
References rb_ary_unshift_m().
Referenced by check_funcall_exec(), ole_invoke(), parser_set_encode(), and vm_call0_body().
Definition at line 545 of file array.c.
References rb_ary_new3().
Referenced by addrinfo_getnameinfo(), addrinfo_mdump(), assoc_i(), BigDecimal_coerce(), BigDecimal_divmod(), BigDecimal_prec(), check_exec_env_i(), check_exec_redirect1(), chunk_i(), chunk_ii(), each_pair_i(), econv_convpath(), enum_minmax_by(), enum_partition(), env_assoc(), env_each_pair(), env_rassoc(), env_shift(), env_to_a(), fdbm_delete_if(), fdbm_each_pair(), fdbm_select(), fdbm_shift(), fdbm_to_a(), fgdbm_delete_if(), fgdbm_each_pair(), fgdbm_select(), fgdbm_shift(), fgdbm_to_a(), fix_divmod(), flo_coerce(), flo_divmod(), fsdbm_delete_if(), fsdbm_each_pair(), fsdbm_select(), fsdbm_shift(), fsdbm_to_a(), match_offset(), math_frexp(), math_lgamma(), nucomp_coerce(), nucomp_marshal_dump(), nucomp_polar(), nucomp_rect(), num_coerce(), num_divmod(), numeric_polar(), numeric_rect(), nurat_coerce(), nurat_marshal_dump(), ossl_bn_coerce(), proc_wait2(), proc_waitall(), pty_open(), rassoc_i(), rb_big_coerce(), rb_big_divmod(), rb_file_s_split(), rb_gcdlcm(), rb_hash_shift(), rb_io_s_pipe(), rb_struct_each_pair(), rsock_s_recvfrom(), rsock_s_recvfrom_nonblock(), save_redirect_fd(), search_convpath_i(), sock_accept(), sock_accept_nonblock(), sock_s_getnameinfo(), sock_s_unpack_sockaddr_in(), sock_sysaccept(), sockopt_linger(), switch(), to_a_i(), and waitall_each().
Definition at line 824 of file vm_method.c.
References name, NOEX_MODFUNC, NOEX_PRIVATE, NOEX_PROTECTED, NOEX_PUBLIC, rb_add_method(), rb_eArgError, rb_enc_copy(), rb_id2name(), rb_id2str(), rb_id_attrset(), rb_intern_str, rb_is_const_id(), rb_is_local_id(), rb_name_error(), rb_raise(), rb_sprintf(), rb_warning(), SCOPE_CHECK, SCOPE_TEST, VM_METHOD_TYPE_ATTRSET, and VM_METHOD_TYPE_IVAR.
Definition at line 1122 of file variable.c.
References FALSE, and ivar_get().
Definition at line 1604 of file variable.c.
References ALLOC, autoload, av, check_autoload_table, DATA_PTR(), autoload_data_i::feature, FL_TAINT, FL_UNSET, OBJ_FREEZE, PRIsVALUE, Qnil, Qundef, QUOTE_ID, rb_const_set(), rb_eArgError, rb_eNameError, rb_is_const_id(), rb_raise(), rb_safe_level, rb_str_new2, RCLASS_CONST_TBL, RCLASS_IV_TBL, autoload_data_i::safe_level, st_add_direct(), st_init_numtable(), st_insert(), st_lookup(), tbl, autoload_data_i::thread, TypedData_Wrap_Struct, autoload_data_i::value, and value.
Definition at line 1765 of file variable.c.
References args, autoload_const_set(), autoload_defined_p(), autoload_require(), check_autoload_data, check_autoload_required(), id, autoload_const_set_args::id, mod, autoload_const_set_args::mod, Qfalse, Qnil, Qundef, rb_ensure(), RB_GC_GUARD, rb_jump_tag(), rb_protect(), rb_safe_level, rb_set_safe_level_force(), rb_sourcefile, rb_thread_current(), reset_safe(), result, RTEST, src, state, autoload_data_i::thread, and autoload_const_set_args::value.
Definition at line 1810 of file variable.c.
References autoload_defined_p(), check_autoload_data, check_autoload_required(), autoload_data_i::feature, Qnil, and RCLASS_SUPER.
Definition at line 830 of file vm.c.
References vm_svar_get().
Definition at line 836 of file vm.c.
References vm_svar_set().
Definition at line 766 of file vm_backtrace.c.
References vm_backtrace_print().
double rb_big2dbl | ( | VALUE | ) |
Definition at line 1429 of file bignum.c.
References big2dbl(), d, isinf(), and rb_warning().
Referenced by flo_div(), flo_divmod(), flo_minus(), flo_mod(), flo_mul(), flo_plus(), flo_pow(), int_pair_to_real_inclusive(), ole_val2ptr_variant(), ole_val2variant(), rb_big_divide(), rb_big_fdiv(), rb_big_minus(), rb_big_mul(), rb_big_plus(), rb_big_pow(), rb_big_to_f(), and rb_Float().
SIGNED_VALUE rb_big2long | ( | VALUE | ) |
Definition at line 1243 of file bignum.c.
References big2ulong(), LONG_MAX, LONG_MIN, rb_eRangeError, rb_raise(), RBIGNUM_POSITIVE_P, and TRUE.
Referenced by rb_num2long().
Definition at line 1159 of file bignum.c.
References rb_big2str0().
Referenced by GetVpValueWithPrec(), rb_big_to_s(), and rb_str_format().
Definition at line 1113 of file bignum.c.
References big2str_find_n1(), big2str_karatsuba(), big2str_orig(), BIGZEROP, FIXNUM_P, KARATSUBA_DIGITS, len, ptr, rb_big_clone(), rb_big_resize(), rb_eArgError, rb_fix2str(), rb_raise(), rb_str_resize(), rb_usascii_str_new(), rb_usascii_str_new2, RBIGNUM_SET_SIGN, RBIGNUM_SIGN, and RSTRING_PTR.
Referenced by rb_big2str(), and rb_str_format().
Definition at line 1225 of file bignum.c.
References big2ulong(), LONG_MAX, LONG_MIN, rb_eRangeError, rb_raise(), RBIGNUM_POSITIVE_P, and TRUE.
Referenced by rb_gzfile_set_mtime(), rb_num2ulong(), and rb_num_to_uint().
Definition at line 1215 of file bignum.c.
References big2ulong(), FALSE, RBIGNUM_SIGN, and SIGNED_VALUE.
Referenced by num2i32(), and rb_dlcfunc_call().
Definition at line 3279 of file bignum.c.
References BDIGIT, BDIGITS, bigand_int(), bignew, bignorm(), FIX2LONG, FIXNUM_P, get2comp(), i, rb_big_clone(), rb_num_coerce_bit(), RB_TYPE_P, RBIGNUM_LEN, RBIGNUM_SIGN, T_BIGNUM, and big_div_struct::zds.
Referenced by fix_and(), and Init_Bignum().
Definition at line 192 of file bignum.c.
References BDIGIT, BDIGITS, bignew_1(), CLASS_OF, len, MEMCPY, RBIGNUM_LEN, and RBIGNUM_SIGN.
Referenced by big_rshift(), bigdivrem(), limited_big_rand(), rand_int(), rb_big2str0(), rb_big_abs(), rb_big_and(), rb_big_neg(), rb_big_or(), rb_big_uminus(), rb_big_xor(), and rb_str_format().
Definition at line 1553 of file bignum.c.
References BDIGIT, BDIGITS, FIX2LONG, INT2FIX, rb_int2big(), rb_integer_float_cmp(), rb_intern, rb_num_coerce_cmp(), RBIGNUM_LEN, RBIGNUM_SIGN, T_BIGNUM, T_FIXNUM, T_FLOAT, and TYPE.
Referenced by big_op(), fix_cmp(), fix_ge(), fix_gt(), fix_le(), fix_lt(), Init_Bignum(), and rb_integer_float_cmp().
Definition at line 2924 of file bignum.c.
References rb_big_divide().
Referenced by fix_divide(), and Init_Bignum().
Definition at line 3010 of file bignum.c.
References bigdivmod(), bignorm(), div, FIX2LONG, mod, rb_assoc_new(), rb_int2big(), rb_intern, rb_num_coerce_bin(), T_BIGNUM, T_FIXNUM, and TYPE.
Referenced by fix_divmod(), Init_Bignum(), and pack_pack().
Definition at line 1706 of file bignum.c.
References BDIGIT, BDIGITS, FIX2LONG, MEMCMP, Qfalse, Qtrue, rb_equal(), rb_int2big(), rb_integer_float_eq(), RBIGNUM_LEN, RBIGNUM_SIGN, T_BIGNUM, T_FIXNUM, T_FLOAT, and TYPE.
Referenced by fix_equal(), Init_Bignum(), and rb_integer_float_eq().
Definition at line 1737 of file bignum.c.
References BDIGIT, BDIGITS, MEMCMP, Qfalse, Qtrue, RB_TYPE_P, RBIGNUM_LEN, RBIGNUM_SIGN, and T_BIGNUM.
Referenced by Init_Bignum().
Definition at line 2937 of file bignum.c.
References rb_big_divide(), and rb_intern.
Referenced by Init_Bignum().
Definition at line 3544 of file bignum.c.
References big2ulong(), big_lshift(), big_rshift(), bignorm(), check_shiftdown(), FIX2LONG, FIXNUM_P, NIL_P(), rb_to_int(), RB_TYPE_P, RBIGNUM_SIGN, shift, t, T_BIGNUM, and TRUE.
Referenced by fix_lshift(), Init_Bignum(), and rb_fix_lshift().
Definition at line 2068 of file bignum.c.
References bigadd(), bigadd_int(), bignorm(), bigsub_int(), DBL2NUM, FIX2LONG, n, rb_big2dbl(), rb_num_coerce_bin(), RBIGNUM_SIGN, RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, T_FLOAT, and TYPE.
Referenced by fix_minus(), Init_Bignum(), rand_int(), rand_range(), sub(), and wsub().
Definition at line 2952 of file bignum.c.
References bigdivmod(), bignorm(), FIX2LONG, rb_int2big(), rb_num_coerce_bin(), T_BIGNUM, T_FIXNUM, and TYPE.
Referenced by fix_mod(), Init_Bignum(), and mod().
Definition at line 2660 of file bignum.c.
References bigmul0(), bignorm(), DBL2NUM, FIX2LONG, rb_big2dbl(), rb_int2big(), rb_num_coerce_bin(), RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, T_FLOAT, and TYPE.
Referenced by f_imul(), fix_mul(), Init_Bignum(), int_pair_to_real_inclusive(), int_pow(), mul(), pack_unpack(), and wmul().
Definition at line 186 of file bignum.c.
References bignew.
Referenced by int_pair_to_real_inclusive(), and mt_state().
Definition at line 282 of file bignum.c.
References bignorm().
Referenced by fix_aref(), limited_big_rand(), make_seed_value(), mt_state(), r_object0(), and rand_range().
Definition at line 3375 of file bignum.c.
References BDIGIT, BDIGITS, bignew, bignorm(), bigor_int(), BIGRAD, FIX2LONG, FIXNUM_P, get2comp(), i, rb_big_clone(), rb_num_coerce_bit(), RB_TYPE_P, RBIGNUM_LEN, RBIGNUM_SIGN, T_BIGNUM, and big_div_struct::zds.
Referenced by fix_or(), and Init_Bignum().
Definition at line 369 of file bignum.c.
References BDIGIT, BDIGITS, BITSPERDIG, DIGSPERLONG, FIX2LONG, FIXNUM_P, i, len, rb_to_int(), RBIGNUM_LEN, RBIGNUM_NEGATIVE_P, and tmp.
Referenced by pack_pack().
Definition at line 2031 of file bignum.c.
References bigadd(), bigadd_int(), bignorm(), bigsub_int(), DBL2NUM, FIX2LONG, n, rb_big2dbl(), rb_num_coerce_bin(), RBIGNUM_SIGN, RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, T_FLOAT, and TYPE.
Referenced by add(), fix_plus(), Init_Bignum(), pack_unpack(), rand_range(), rb_random_int32(), ulong_to_num_plus_1(), and wadd().
Definition at line 3175 of file bignum.c.
References bigmul0(), bignorm(), bigsqr(), bigtrunc(), BIGZEROP, BITSPERDIG, d, DBL2NUM, ffs(), FIX2LONG, FIXNUM_MAX, INT2FIX, rb_big2dbl(), rb_complex_raw1, rb_funcall(), rb_intern, rb_num_coerce_bin(), rb_rational_raw1, rb_warn(), RBIGNUM_DIGITS, RBIGNUM_LEN, RBIGNUM_SIGN, RFLOAT_VALUE, round(), SIGNED_VALUE, SIZEOF_BDIGITS, T_BIGNUM, T_FIXNUM, T_FLOAT, and TYPE.
Referenced by fix_pow(), Init_Bignum(), int_pow(), and power_cache_get_power0().
Definition at line 160 of file bignum.c.
References rb_big_realloc(), and RBIGNUM_SET_LEN.
Referenced by big2str_karatsuba(), bigmul1_toom3(), bigtrunc(), get2comp(), make_seed_value(), r_object0(), and rb_big2str0().
Definition at line 3608 of file bignum.c.
References big2ulong(), big_lshift(), big_rshift(), bignorm(), check_shiftdown(), FIX2LONG, FIXNUM_P, NIL_P(), rb_to_int(), RB_TYPE_P, RBIGNUM_SIGN, shift, t, T_BIGNUM, and TRUE.
Referenced by Init_Bignum(), int_pair_to_real_inclusive(), and rb_fix_rshift().
VALUE rb_big_unpack | ( | unsigned long * | buf, |
long | num_longs | ||
) |
Definition at line 411 of file bignum.c.
References BDIGIT, BDIGITS, BIGDN, BIGLO, bignew, bignorm(), d, DIGSPERLONG, get2comp(), i, INT2FIX, len, LONG2NUM, and RBIGNUM_SET_SIGN.
Referenced by pack_unpack().
Definition at line 3470 of file bignum.c.
References BDIGIT, BDIGITS, bignew, bignorm(), bigxor_int(), FIX2LONG, FIXNUM_P, get2comp(), i, rb_big_clone(), rb_num_coerce_bit(), RB_TYPE_P, RBIGNUM_LEN, RBIGNUM_SET_SIGN, RBIGNUM_SIGN, T_BIGNUM, and big_div_struct::zds.
Referenced by fix_xor(), and Init_Bignum().
Definition at line 91 of file bignum.c.
References BIGZEROP.
Referenced by rand_int(), and rand_range().
Definition at line 322 of file proc.c.
References rb_thread_struct::cfp, GET_THREAD(), rb_binding_new_with_cfp(), and th.
Definition at line 472 of file proc.c.
References proc_new(), rb_cProc, and TRUE.
Definition at line 458 of file proc.c.
References FALSE, proc_new(), and rb_cProc.
Definition at line 557 of file array.c.
References rb_check_convert_type(), and T_ARRAY.
Referenced by addrinfo_initialize(), dir_s_glob(), divmodv(), econv_init(), enum_zip(), flat_map_i(), flatten(), io_puts_ary(), lazy_flat_map_to_ary(), lazy_zip(), ossl_x509name_initialize(), path_split(), rb_Array(), rb_ary_assoc(), rb_ary_cmp(), rb_ary_initialize(), rb_ary_s_try_convert(), rb_ary_to_ary(), rb_check_argv(), rb_econv_init_by_convpath(), rb_execarg_addopt(), rb_hash_s_create(), rb_io_s_popen(), rb_reg_s_union_m(), rb_str_format_m(), rb_yield_splat(), sock_s_getnameinfo(), take_items(), time_timespec(), vm_yield_setup_block_args(), and wdivmod().
Definition at line 2009 of file error.c.
References FL_ABLE, FL_TAINT, FL_UNTRUSTED, flags, klass, PRIsVALUE, rb_check_frozen_internal, rb_check_trusted_internal, rb_eSecurityError, rb_raise(), rb_safe_level, and RBASIC.
Referenced by random_init(), and random_load().
Definition at line 1987 of file error.c.
References rb_check_frozen_internal.
Definition at line 254 of file intern.h.
References rb_check_frozen_internal.
Definition at line 408 of file vm_eval.c.
References check_funcall_callable(), check_funcall_missing(), check_funcall_respond_to(), CLASS_OF, GET_THREAD(), klass, NOEX_OK, Qundef, rb_search_method_entry(), stack_check(), and vm_call0().
Definition at line 461 of file hash.c.
References rb_check_convert_type(), and T_HASH.
Definition at line 1509 of file string.c.
References rb_check_convert_type(), str, and T_STRING.
Definition at line 2759 of file object.c.
References Qnil, rb_check_convert_type(), rb_cNumeric, rb_obj_is_kind_of(), RB_TYPE_P, T_FLOAT, and val.
Definition at line 2488 of file object.c.
References rb_check_to_integer().
Definition at line 2468 of file object.c.
References convert_type(), FALSE, FIXNUM_P, Qnil, rb_cInteger, rb_obj_is_kind_of(), RB_TYPE_P, T_BIGNUM, v, and val.
Definition at line 2003 of file error.c.
References rb_check_trusted_internal.
Definition at line 260 of file intern.h.
References rb_check_trusted_internal.
Definition at line 1842 of file object.c.
References RCLASS_SUPER.
Definition at line 1503 of file object.c.
References CLASS_OR_MODULE_P, class_search_ancestor(), mod, Qfalse, Qnil, Qtrue, rb_eTypeError, rb_raise(), RB_TYPE_P, RCLASS_ORIGIN, and T_ICLASS.
Definition at line 383 of file variable.c.
References rb_class_path(), and rb_class_real().
Definition at line 1794 of file object.c.
References obj, rb_obj_alloc(), and rb_obj_call_init().
Definition at line 261 of file variable.c.
References NIL_P(), path, rb_ivar_set(), rb_str_dup(), and rb_tmp_class_path().
Definition at line 171 of file object.c.
References BUILTIN_TYPE, FL_SINGLETON, flags, RBASIC, RCLASS_SUPER, and T_ICLASS.
Definition at line 1824 of file object.c.
References Qnil, rb_cBasicObject, rb_eTypeError, rb_raise(), RB_TYPE_P, RCLASS_SUPER, and T_ICLASS.
Definition at line 46 of file vm_method.c.
References rb_vm_change_state().
Definition at line 64 of file vm_method.c.
References rb_vm_change_state().
Definition at line 225 of file io.c.
References rb_cloexec_fcntl_dupfd().
Definition at line 232 of file io.c.
References dup2(), errno, O_CLOEXEC, rb_maygvl_fd_fix_cloexec(), rb_w32_get_osfhandle(), and ret.
Definition at line 308 of file io.c.
References errno, F_DUPFD, fcntl(), rb_cloexec_fcntl_dupfd(), rb_maygvl_fd_fix_cloexec(), and ret.
Definition at line 209 of file io.c.
References O_CLOEXEC, rb_maygvl_fd_fix_cloexec(), and ret.
Definition at line 97 of file bignum.c.
References BIGZEROP, FIX2LONG, FIXNUM_P, INT2FIX, NIL_P(), rb_cmperr(), rb_funcall(), RB_TYPE_P, RBIGNUM_SIGN, RTEST, and T_BIGNUM.
Referenced by cmp(), cmp_eq(), cmp_ge(), cmp_gt(), cmp_le(), cmp_lt(), enum_each_cons_size(), flo_cmp(), max_by_i(), max_i(), max_ii(), min_by_i(), min_i(), min_ii(), minmax_by_i(), minmax_by_i_update(), minmax_i(), minmax_i_update(), minmax_ii(), minmax_ii_update(), r_le(), r_lt(), range_bsearch(), range_max(), range_min(), rb_ary_bsearch(), rb_invcmp(), sort_1(), sort_2(), sort_by_cmp(), and wcmp().
Definition at line 1390 of file complex.c.
References nucomp_s_convert(), and rb_cComplex.
Referenced by nurat_coerce().
Definition at line 1376 of file complex.c.
References nucomp_s_canonicalize_internal(), and rb_cComplex.
Referenced by num_imaginary().
Definition at line 1382 of file complex.c.
References f_complex_polar(), and rb_cComplex.
Referenced by read_comp().
Definition at line 1370 of file complex.c.
References nucomp_s_new_internal(), and rb_cComplex.
Definition at line 2103 of file variable.c.
References FALSE, rb_const_defined_0(), and TRUE.
Definition at line 2109 of file variable.c.
References FALSE, rb_const_defined_0(), and TRUE.
Definition at line 2097 of file variable.c.
References FALSE, rb_const_defined_0(), and TRUE.
Definition at line 1876 of file variable.c.
References FALSE, rb_const_get_0(), and TRUE.
Definition at line 1882 of file variable.c.
References FALSE, rb_const_get_0(), and TRUE.
Definition at line 1870 of file variable.c.
References FALSE, rb_const_get_0(), and TRUE.
Definition at line 2017 of file variable.c.
References ary, data, list_i(), st_table::num_entries, rb_ary_new2(), st_foreach_safe(), st_free_table(), and tbl.
Definition at line 1938 of file variable.c.
References autoload_delete(), id, n, OBJ_UNTRUSTED, PRIsVALUE, Qnil, Qundef, QUOTE_ID, rb_check_frozen, rb_class_name(), rb_const_defined_at(), rb_eSecurityError, rb_name_error(), rb_raise(), rb_safe_level, rb_vm_change_state(), RCLASS_CONST_TBL, st_delete(), v, val, and xfree.
Definition at line 2141 of file variable.c.
References ALLOC, autoload_data(), autoload_delete(), check_autoload_data, check_before_mod_set(), CONST_PUBLIC, rb_const_entry_struct::file, rb_const_entry_struct::flag, rb_const_entry_struct::line, NIL_P(), PRIsVALUE, Qundef, QUOTE_ID, rb_class_name(), rb_cObject, rb_compile_warn(), rb_eTypeError, rb_raise(), rb_sourcefilename(), rb_sourceline(), rb_thread_current(), rb_vm_change_state(), rb_warn(), RCLASS_CONST_TBL, RSTRING_PTR, st_delete(), st_init_numtable(), st_insert(), st_lookup(), autoload_data_i::thread, val, rb_const_entry_struct::value, autoload_data_i::value, value, and xfree.
Definition at line 2425 of file object.c.
References conversion_mismatch(), convert_type(), TRUE, TYPE, v, and val.
Definition at line 1047 of file variable.c.
References data, FL_EXIVAR, FL_SET, FL_TEST, FL_UNSET, st_table::num_entries, rb_free_generic_ivar(), st_add_direct(), st_copy(), st_free_table(), st_insert(), st_lookup(), and tbl.
Definition at line 865 of file bignum.c.
References rb_cstr_to_inum().
Referenced by JSON_parse_integer().
Definition at line 2588 of file object.c.
References bad, buf, d, DBL_DIG, e, end, errno, ISDIGIT, ISSPACE, n, OutOfRange, p, q, rb_eArgError, rb_invalid_str(), rb_raise(), rb_warning(), and strtod.
Definition at line 579 of file bignum.c.
References bad, BDIGIT, BDIGIT_DBL, BDIGITS, BIGDN, BIGLO, bignew, bignorm(), BITSPERDIG, c, CHAR_BIT, conv_digit, end, i, INT2FIX, ISSPACE, len, LONG2FIX, POSFIXABLE, rb_eArgError, rb_invalid_str(), rb_raise(), rb_uint2big(), RBIGNUM_SET_SIGN, result, s, str, strlen(), STRTOUL, and val.
Referenced by asn1integer_to_num(), ossl_bn_to_i(), parser_yylex(), rb_cstr2inum(), rb_str_to_inum(), read_digits(), and str2num().
Definition at line 2409 of file variable.c.
References rb_cvar_get(), rb_intern, rb_is_class_id(), and rb_name_error().
Definition at line 2399 of file variable.c.
References rb_cvar_set(), rb_intern, rb_is_class_id(), and rb_name_error().
Definition at line 2391 of file variable.c.
References CVAR_LOOKUP, Qfalse, and Qtrue.
Definition at line 2364 of file variable.c.
References BUILTIN_TYPE, CVAR_LOOKUP, id, klass, original_module(), PRIsVALUE, QUOTE_ID, rb_class_name(), rb_name_error(), rb_warning(), RCLASS_IV_TBL, RTEST, ruby_verbose, st_delete(), T_CLASS, target, tmp, and value.
Definition at line 2331 of file variable.c.
References BUILTIN_TYPE, check_before_mod_set(), CVAR_LOOKUP, id, klass, original_module(), PRIsVALUE, QUOTE_ID, rb_class_name(), rb_warning(), RCLASS_IV_TBL, RTEST, ruby_verbose, st_delete(), st_init_numtable(), st_insert(), T_CLASS, target, and tmp.
VALUE rb_dbl2big | ( | double | ) |
Definition at line 1353 of file bignum.c.
References bignorm(), and dbl2big().
Referenced by case_when_optimizable_literal(), dbl2ival(), fix_divide(), flo_ceil(), flo_floor(), flo_truncate(), float_decode_internal(), num_interval_step_size(), nurat_div(), rb_big_divide(), rb_convert_to_integer(), rb_integer_float_cmp(), rb_integer_float_eq(), and rb_str_format().
VALUE rb_dbl_cmp | ( | double | , |
double | |||
) |
void rb_define_alloc_func | ( | VALUE | , |
rb_alloc_func_t | |||
) |
Definition at line 2419 of file variable.c.
References rb_cvar_set(), rb_intern, rb_is_class_id(), and rb_name_error().
VALUE rb_detach_process | ( | rb_pid_t | pid | ) |
Definition at line 1015 of file process.c.
References detach_process_pid(), detach_process_watcher(), id_pid(), PIDT2NUM, rb_define_singleton_method(), rb_thread_create(), and rb_thread_local_aset().
Definition at line 878 of file dir.c.
References my_getcwd, path, rb_enc_associate(), rb_filesystem_encoding(), rb_secure(), rb_tainted_str_new2, and xfree.
Referenced by dir_s_chdir(), dir_s_getwd(), and rb_realpath_internal().
Definition at line 3119 of file gc.c.
References during_gc, and rb_objspace.
Definition at line 33 of file enum.c.
References Qnil, and rb_ary_new4().
Referenced by collect_all(), drop_i(), each_with_index_i(), lazy_grep_func(), lazy_grep_iter(), lazy_reject_func(), lazy_select_func(), member_i(), take_i(), take_while_i(), zip_ary(), and zip_i().
Definition at line 398 of file enumerator.c.
References rb_enumeratorize_with_size().
Referenced by argf_bytes(), argf_chars(), argf_codepoints(), argf_lines(), rb_gzreader_bytes(), rb_gzreader_lines(), rb_io_bytes(), rb_io_chars(), rb_io_codepoints(), rb_io_lines(), strio_bytes(), strio_chars(), strio_codepoints(), and strio_lines().
Definition at line 407 of file enumerator.c.
References enumerator_allocate(), enumerator_init(), lazy_to_enum_i(), Qnil, rb_cEnumerator, rb_cLazy, rb_obj_is_kind_of(), RTEST, and enumerator::size_fn.
Referenced by obj_to_enum(), and rb_enumeratorize().
Definition at line 2887 of file hash.c.
References env_delete(), env_keys(), envtbl, i, keys, NIL_P(), Qnil, RARRAY_LEN, RARRAY_PTR(), rb_f_getenv(), and val.
Definition at line 2356 of file hash.c.
References getenv(), PATH_ENV, path_tainted, and path_tainted_p().
Definition at line 67 of file object.c.
References id_eql, rb_funcall(), and RTEST.
Definition at line 1993 of file error.c.
References rb_eSecurityError, rb_obj_classname(), rb_raise(), and rb_safe_level.
Definition at line 1444 of file vm_eval.c.
References eval_string(), EXEC_TAG, JUMP_TAG, OBJ_TAINTED, POP_TAG, PUSH_TAG, Qnil, RARRAY_LENINT, RARRAY_PTR(), rb_funcall2(), rb_intern, rb_safe_level, rb_set_safe_level_force(), RB_TYPE_P, rb_vm_top_self(), safe, state, T_STRING, and val.
Definition at line 541 of file error.c.
References rb_funcall(), rb_intern, and rb_str_new().
Referenced by rb_exc_new2(), rb_threadptr_raise(), and setup_exception().
Definition at line 547 of file error.c.
References rb_exc_new(), and strlen().
Referenced by compile_err_append(), fiber_switch(), for(), gzfile_raise(), if(), Init_Thread(), make_localjump_error(), next_i(), raise_zlib_error(), switch(), and tcl_protect_core().
Definition at line 553 of file error.c.
References rb_funcall(), rb_intern, and StringValue.
Referenced by cannot_be_coerced_into_BigDecimal(), compile_err_append(), finish_writeconv(), if(), Init_eval(), Init_GC(), Init_Proc(), make_econv_exception(), make_exception(), ole_raise(), ossl_make_error(), raise_from_check(), raise_loaderror(), raise_zlib_error(), rand_random(), rb_arg_error_new(), rb_econv_open_exc(), rb_enc_raise(), rb_enc_reg_error_desc(), rb_fatal(), rb_raise(), and tcl_protect_core().
Definition at line 97 of file eval_jump.c.
References end_proc_data::data, end_procs, ephemeral_end_procs, rb_thread_struct::errinfo, error_handle(), EXEC_TAG, end_proc_data::func, GET_THREAD(), link(), end_proc_data::next, NIL_P(), POP_TAG, PUSH_TAG, rb_safe_level, rb_set_safe_level_force(), end_proc_data::safe, safe, status, th, and xfree.
Referenced by ruby_finalize_0().
Definition at line 4881 of file thread.c.
References exec_recursive(), and func.
Definition at line 4904 of file thread.c.
References exec_recursive(), and func.
Definition at line 4892 of file thread.c.
References exec_recursive(), func, and rb_obj_id().
Definition at line 4916 of file thread.c.
References exec_recursive(), func, and rb_obj_id().
Definition at line 584 of file string.c.
References rb_default_external_encoding(), and rb_external_str_new_with_enc().
Definition at line 590 of file string.c.
References rb_default_external_encoding(), rb_external_str_new_with_enc(), and strlen().
Definition at line 3653 of file process.c.
References args, EXIT_FAILURE, GET_THREAD(), INT2NUM, NIL_P(), rb_class_new_instance(), rb_eSystemExit, rb_exc_raise(), rb_exit(), rb_io_puts(), rb_scan_args(), rb_secure(), rb_stderr, ruby_error_print(), StringValue, and UNREACHABLE.
Definition at line 2424 of file process.c.
References CHILD_ERRMSG_BUFLEN, rb_execarg::cmd, rb_execarg::invoke, Qnil, rb_exec_async_signal_safe(), rb_exec_without_timer_thread(), rb_execarg_fixup(), rb_execarg_get(), rb_execarg_new(), RB_GC_GUARD, rb_sys_fail(), rb_sys_fail_str(), rb_execarg::sh, TRUE, and rb_execarg::use_shell.
Definition at line 3623 of file process.c.
References exit_status_code(), EXIT_SUCCESS, rb_exit(), rb_scan_args(), rb_secure(), status, and UNREACHABLE.
Definition at line 847 of file variable.c.
References ary, buf, gvar_i(), i, ID2SYM, rb_ary_new(), rb_ary_push(), rb_intern2(), and st_foreach_safe().
Definition at line 364 of file signal.c.
References argc, FIX2INT, i, INT2FIX, kill(), killpg, NIL_P(), NUM2PIDT, rb_check_arity, rb_check_string_type(), rb_eArgError, rb_id2name(), rb_obj_classname(), rb_raise(), rb_secure(), rb_sys_fail(), RSTRING_PTR, s, signm2signo(), str, SYM2ID, T_FIXNUM, T_STRING, T_SYMBOL, TYPE, and UNLIMITED_ARGUMENTS.
Definition at line 70 of file vm_method.c.
References rb_notimplement(), and UNREACHABLE.
Definition at line 806 of file load.c.
References rb_require_safe(), and rb_safe_level.
Definition at line 437 of file sprintf.c.
References GETNTHARG, and rb_str_format().
Definition at line 646 of file variable.c.
References ALLOC, cmd, trace_var::data, trace_var::func, global_entry, trace_var::next, NIL_P(), OBJ_TAINTED, Qnil, rb_block_proc(), rb_eSecurityError, rb_f_untrace_var(), rb_global_entry(), rb_raise(), rb_scan_args(), rb_secure(), rb_to_id(), rb_trace_eval(), trace_var::removed, and var.
Definition at line 706 of file variable.c.
References ary, cmd, trace_var::data, data, global_entry, id, trace_var::next, NIL_P(), PRIsVALUE, Qnil, QUOTE, QUOTE_ID, rb_ary_new(), rb_ary_new3(), rb_ary_push(), rb_check_id(), rb_name_error(), rb_name_error_str(), rb_scan_args(), rb_secure(), remove_trace(), trace_var::removed, st_lookup(), and var.
Definition at line 202 of file io.c.
References rb_maygvl_fd_fix_cloexec(), and rb_update_max_fd().
Definition at line 523 of file load.c.
References FALSE, IS_DLEXT, IS_RBEXT, IS_SOEXT, Qnil, rb_feature_p(), rb_file_expand_path_fast(), rb_get_path(), rb_str_new2, RSTRING_PTR, strchr(), strrchr(), and TRUE.
Definition at line 1422 of file cont.c.
References GetFiberPtr, Qfalse, Qtrue, rb_fiber_struct::status, and TERMINATED.
Referenced by get_next_values(), and ruby_Init_Fiber_as_Coroutine().
Definition at line 1230 of file cont.c.
References rb_fiber_struct::cont, rb_thread_struct::fiber, GET_THREAD(), rb_thread_struct::root_fiber, root_fiber_alloc(), and rb_context_struct::self.
Referenced by fiber_link_join(), fiber_switch(), get_next_values(), next_init(), rb_fiber_s_current(), and return_fiber().
Definition at line 1120 of file cont.c.
References fiber_alloc(), fiber_init(), func, rb_cFiber, and rb_proc_new().
Referenced by next_init().
Definition at line 1378 of file cont.c.
References rb_fiber_struct::cont, fiber_switch(), GetFiberPtr, rb_fiber_struct::prev, Qnil, rb_eFiberError, rb_raise(), ROOT_FIBER_CONTEXT, rb_fiber_struct::transfered, and rb_context_struct::type.
Referenced by get_next_values(), and rb_fiber_m_resume().
Definition at line 1394 of file cont.c.
References rb_fiber_transfer(), and return_fiber().
Referenced by next_i(), next_ii(), and rb_fiber_s_yield().
Definition at line 3368 of file file.c.
References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.
Definition at line 3803 of file file.c.
References enc, end, FilePathStringValue, isdirsep, name, OBJ_INFECT, p, rb_enc_copy(), rb_enc_get(), rb_str_cat(), rb_str_new(), rb_usascii_str_new2, RSTRING_LEN, skipprefix, skiproot(), StringValueCStr, strrdirsep, and top.
Definition at line 3325 of file file.c.
References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.
Definition at line 5498 of file io.c.
References io_alloc(), rb_cFile, rb_file_open_internal(), and rb_str_new_cstr().
Definition at line 5491 of file io.c.
References FilePathValue, io_alloc(), rb_cFile, and rb_file_open_internal().
Definition at line 3388 of file file.c.
References Qnil, rb_file_absolute_path(), and rb_scan_args().
Definition at line 3355 of file file.c.
References Qnil, rb_file_expand_path(), and rb_scan_args().
Definition at line 608 of file string.c.
References rb_external_str_new_with_enc(), and rb_filesystem_encoding().
Definition at line 614 of file string.c.
References rb_external_str_new_with_enc(), rb_filesystem_encoding(), and strlen().
Definition at line 5382 of file file.c.
References rb_find_file_safe(), and rb_safe_level.
Definition at line 5307 of file file.c.
References rb_find_file_ext_safe(), and rb_safe_level.
Definition at line 5313 of file file.c.
References copy_path_class(), file_expand_path_1(), FL_TAINT, FL_UNSET, FL_UNTRUSTED, fpath_check, i, is_explicit_relative(), MAXPATHLEN, OBJ_TAINTED, RARRAY_LEN, RARRAY_PTR(), rb_enc_associate_index(), rb_eSecurityError, rb_file_expand_path_internal(), rb_file_load_ok(), RB_GC_GUARD, rb_get_expanded_load_path(), rb_get_path_check(), rb_is_absolute_path(), rb_raise(), rb_str_cat2(), rb_str_dup(), rb_str_set_len(), rb_str_tmp_new(), rb_usascii_encindex(), RBASIC, RSTRING_LEN, RSTRING_PTR, str, StringValueCStr, and tmp.
Definition at line 5388 of file file.c.
References copy_path_class(), file_expand_path_1(), fpath_check, i, is_explicit_relative(), MAXPATHLEN, OBJ_TAINTED, path, RARRAY_LEN, RARRAY_PTR(), rb_enc_associate_index(), rb_eSecurityError, rb_file_expand_path_internal(), rb_file_load_ok(), RB_GC_GUARD, rb_get_expanded_load_path(), rb_get_path_check(), rb_is_absolute_path(), rb_raise(), rb_str_tmp_new(), rb_usascii_encindex(), RSTRING_LEN, RSTRING_PTR, str, StringValueCStr, and tmp.
Definition at line 2573 of file numeric.c.
References b, buf, CHAR_BIT, FIX2LONG, int, neg, rb_eArgError, rb_raise(), rb_usascii_str_new2, ruby_digitmap, SIZEOF_VALUE, and val.
Definition at line 2700 of file object.c.
References DBL2NUM, FIX2LONG, rb_big2dbl(), rb_convert_type(), rb_eTypeError, rb_raise(), rb_str_to_dbl(), T_BIGNUM, T_FIXNUM, T_FLOAT, T_NIL, T_STRING, TRUE, TYPE, UNREACHABLE, and val.
Definition at line 919 of file eval.c.
References frame_called_id(), GET_THREAD(), and previous_frame().
Referenced by error_pos(), rb_f_callee_name(), rb_insecure_operation(), rb_secure(), and set_method_visibility().
Definition at line 1558 of file vm.c.
References GET_THREAD(), and rb_thread_method_id_and_class().
Definition at line 902 of file eval.c.
References frame_func_id(), and GET_THREAD().
Referenced by argf_forward(), lazy_set_method(), rb_iterate(), rb_notimplement(), rb_struct_ref(), rb_struct_set(), and set_const_visibility().
Definition at line 1028 of file variable.c.
References key, st_delete(), st_free_table(), and tbl.
Definition at line 403 of file eval.c.
References FL_SINGLETON, FL_TEST, OBJ_FROZEN, rb_error_frozen(), T_CLASS, T_ICLASS, T_MODULE, and TYPE.
Referenced by rb_alias(), rb_include_module(), rb_prepend_module(), and rb_undef().
Definition at line 3110 of file gc.c.
References finalize_deferred(), finalizing, free_unused_heaps(), garbage_collect(), and rb_objspace.
Definition at line 1484 of file gc.c.
References rb_objspace_call_finalizer().
Definition at line 1349 of file gc.c.
References data, finalizer_table, FL_FINALIZE, FL_SET, FL_TEST, rb_objspace, st_insert(), st_lookup(), and table.
Definition at line 3285 of file gc.c.
References dont_gc, Qfalse, Qtrue, rb_objspace, rest_sweep(), and TRUE.
Definition at line 1457 of file gc.c.
References ATOMIC_EXCHANGE, ATOMIC_SET, finalize_deferred(), finalizing, and rb_objspace.
Definition at line 2963 of file gc.c.
References add_slot_local_freelist(), heaps_slot::free_next, rb_objspace::free_num, GET_HEAP_BITMAP, rb_objspace::heap, link_free_heap_slot(), MARKED_IN_BITMAP, NULL, rb_objspace, and rb_objspace::total_freed_object_num.
Definition at line 2343 of file gc.c.
References gc_mark_locations().
Definition at line 2549 of file gc.c.
References gc_mark(), and is_pointer_to_heap().
Definition at line 3297 of file gc.c.
References getenv(), initial_expand_heap(), initial_free_min, initial_heap_min_slots, initial_malloc_limit, NULL, rb_safe_level, RTEST, and ruby_verbose.
Definition at line 904 of file variable.c.
References FL_EXIVAR, FL_TEST, st_lookup(), and tbl.
Definition at line 250 of file random.c.
References default_mt(), and genrand_int32().
double rb_genrand_real | ( | void | ) |
Definition at line 257 of file random.c.
References default_mt(), and genrand_real().
unsigned long rb_genrand_ulong_limited | ( | unsigned long | i | ) |
Definition at line 908 of file random.c.
References default_mt(), and limited_rand().
rb_alloc_func_t rb_get_alloc_func | ( | VALUE | ) |
Definition at line 499 of file vm_method.c.
References Check_Type, klass, RCLASS_EXT, RCLASS_SUPER, T_CLASS, and UNDEF_ALLOC_FUNC.
Definition at line 2568 of file array.c.
References argc, end, FIX2LONG, FIXNUM_P, func, i, len, NUM2LONG, RARRAY_LEN, rb_ary_new2(), rb_ary_push(), rb_ary_resize(), rb_range_beg_len(), and result.
Referenced by match_values_at(), rb_ary_values_at(), and rb_struct_values_at().
Definition at line 7955 of file io.c.
References ARGF, next_argv, NIL_P(), Qnil, rb_default_rs, rb_f_gets(), rb_io_close(), rb_io_gets(), rb_lastline_set(), rb_rs, and retry.
Definition at line 66 of file hash.c.
References hval, id_hash, LONG2FIX, rb_funcall(), rb_to_int(), RBIGNUM_DIGITS, retry, T_BIGNUM, T_FIXNUM, and TYPE.
Definition at line 2851 of file object.c.
References NIL_P(), RARRAY_LEN, rb_check_hash_type(), rb_eTypeError, rb_hash_new(), rb_obj_classname(), rb_raise(), RB_TYPE_P, T_ARRAY, and tmp.
Definition at line 570 of file hash.c.
References hash_default_value(), RHASH, st_lookup(), and val.
Definition at line 1148 of file hash.c.
References clear_i(), hash, rb_hash_foreach(), rb_hash_modify_check(), RHASH, RHASH_ITER_LEV, and st_clear().
Definition at line 869 of file hash.c.
References Qnil, Qundef, rb_block_given_p(), rb_hash_delete_key(), rb_hash_modify_check(), rb_yield(), and val.
Definition at line 969 of file hash.c.
References delete_if_i(), hash, rb_hash_foreach(), rb_hash_modify_check(), rb_hash_size(), RETURN_SIZED_ENUMERATOR, and RHASH.
Definition at line 240 of file hash.c.
References FL_EXIVAR, FL_SET, FL_TAINT, FL_TEST, FL_UNTRUSTED, flags, HASH_PROC_DEFAULT, NEWOBJ_OF, rb_copy_generic_ivar(), rb_obj_class(), RBASIC, ret, RHASH, RHASH_EMPTY_P, RHASH_IFNONE, st_copy(), and T_MASK.
st_index_t rb_hash_end | ( | st_index_t | ) |
Definition at line 655 of file hash.c.
References rb_hash_fetch_m().
Definition at line 200 of file hash.c.
References hash_foreach_arg::arg, func, hash_foreach_arg::func, hash_foreach_arg::hash, hash, hash_foreach_call(), hash_foreach_ensure(), rb_ensure(), RHASH, and RHASH_ITER_LEV.
Definition at line 36 of file hash.c.
References rb_obj_freeze().
Definition at line 592 of file hash.c.
References Qnil, and rb_hash_lookup2().
Definition at line 581 of file hash.c.
References RHASH, st_lookup(), and val.
Definition at line 234 of file hash.c.
References hash_alloc(), and rb_cHash.
st_index_t rb_hash_start | ( | st_index_t | ) |
Definition at line 1416 of file random.c.
References hashseed, and st_hash_start.
Definition at line 266 of file hash.c.
References RHASH, and st_init_table().
st_index_t rb_hash_uint | ( | st_index_t | , |
st_index_t | |||
) |
st_index_t rb_hash_uint32 | ( | st_index_t | , |
uint32_t | |||
) |
VALUE rb_hash_update_by | ( | VALUE | hash1, |
VALUE | hash2, | ||
rb_hash_update_func * | func | ||
) |
Definition at line 1971 of file hash.c.
References func, update_arg::func, update_arg::hash, rb_hash_foreach(), rb_hash_modify(), and to_hash().
Definition at line 15236 of file ripper.c.
References id, ID2SYM, ID_ATTRSET, ID_CLASS, ID_CONST, ID_GLOBAL, ID_INSTANCE, ID_JUNK, ID_LOCAL, int, is_notop_id, PRIsVALUE, rb_id2name(), rb_name_error(), tAREF, and tASET.
Referenced by attrset_gen(), intern_str(), rb_attr(), rb_check_id(), rb_check_id_cstr(), rb_struct_set(), and setup_struct().
Definition at line 411 of file object.c.
References id_inspect, rb_default_external_encoding(), rb_eEncCompatError, rb_enc_asciicompat, rb_enc_get(), rb_enc_str_asciionly_p(), rb_funcall(), rb_obj_as_string(), rb_raise(), and str.
VALUE rb_int2big | ( | SIGNED_VALUE | ) |
VALUE rb_int2inum | ( | SIGNED_VALUE | ) |
Definition at line 2539 of file object.c.
References rb_convert_to_integer().
Definition at line 545 of file eval.c.
References rb_eInterrupt, and rb_raise().
Referenced by rb_signal_exec().
Definition at line 1445 of file io.c.
References io, and rb_io_write().
Definition at line 4654 of file io.c.
References clear_codeconv(), rb_io_t::rb_io_enc_t::ecflags, rb_io_t::rb_io_enc_t::ecopts, rb_io_t::rb_io_enc_t::enc, rb_io_t::rb_io_enc_t::enc2, rb_io_t::encs, FMODE_BINMODE, FMODE_TEXTMODE, GetOpenFile, io, rb_io_t::mode, NULL, Qnil, rb_ascii8bit_encoding(), rb_econv_close(), rb_io_t::readconv, SET_BINARY_MODE_WITH_SEEK_CUR, and rb_io_t::writeconv.
Definition at line 4630 of file io.c.
References ECONV_NEWLINE_DECORATOR_MASK, rb_io_t::fd, FMODE_BINMODE, FMODE_TEXTMODE, GetOpenFile, io, rb_io_t::mode, O_BINARY, rb_econv_binmode(), rb_io_t::readconv, SET_BINARY_MODE_WITH_SEEK_CUR, rb_io_t::writeconv, and rb_io_t::writeconv_pre_ecflags.
Definition at line 4233 of file io.c.
References FALSE, rb_io_t::fd, finish_writeconv_arg::fptr, GetWriteIO, rb_io_t::pid, Qnil, rb_io_fptr_cleanup(), rb_last_status_clear(), rb_syswait(), rb_thread_fd_close(), RFILE, and TRUE.
Definition at line 1714 of file io.c.
References rb_io_t::fd, binwrite_arg::fptr, GetOpenFile, io_fillbuf(), NEED_NEWLINE_DECORATOR_ON_READ, NEED_READCONV, Qfalse, Qtrue, rb_io_check_char_readable(), READ_CHAR_PENDING, READ_CHECK, and READ_DATA_PENDING.
Definition at line 1478 of file io.c.
References rb_io_t::fd, FMODE_READABLE, FMODE_WRITABLE, binwrite_arg::fptr, GetOpenFile, GetWriteIO, id_flush, io, io_fflush(), io_unread(), rb_io_t::mode, rb_funcall(), rb_sys_fail(), rb_thread_io_blocking_region(), RB_TYPE_P, rb_w32_get_osfhandle(), and T_FILE.
Definition at line 3713 of file io.c.
References c, rb_io_t::fd, FMODE_TTY, GetOpenFile, INT2FIX, io_fillbuf(), rb_io_buffer_t::len, rb_io_t::mode, rb_io_buffer_t::off, rb_io_buffer_t::ptr, Qnil, rb_io_check_byte_readable(), rb_io_flush(), rb_stdout, RB_TYPE_P, rb_io_t::rbuf, READ_CHECK, and T_FILE.
Definition at line 3122 of file io.c.
References rb_default_rs, and rb_io_getline_1().
Definition at line 6760 of file io.c.
References argc, i, NIL_P(), Qnil, rb_io_write(), rb_lastline_get(), rb_output_fs, and rb_output_rs.
Definition at line 6701 of file io.c.
References Qnil, rb_f_sprintf(), and rb_io_write().
Definition at line 6925 of file io.c.
References argc, i, io_puts_ary(), Qnil, rb_default_rs, rb_exec_recursive(), rb_io_write(), rb_obj_as_string(), RB_TYPE_P, RSTRING_LEN, str_end_with_asciichar(), and T_STRING.
Definition at line 3774 of file io.c.
References FIX2INT, FIXNUM_P, GetOpenFile, io_ungetbyte(), NIL_P(), Qnil, rb_io_check_byte_readable(), rb_str_new(), and SafeStringValue.
Definition at line 3809 of file io.c.
References rb_io_buffer_t::capa, rb_io_t::cbuf, FIX2UINT, FIXNUM_P, GetOpenFile, int, io_read_encoding(), io_ungetbyte(), rb_io_buffer_t::len, len, make_readconv(), MEMMOVE, NEED_NEWLINE_DECORATOR_ON_READ_CHECK, NEED_READCONV, NIL_P(), NUM2UINT, rb_io_buffer_t::off, rb_io_buffer_t::ptr, Qnil, rb_eIOError, rb_enc_uint_chr(), rb_io_check_char_readable(), rb_raise(), RB_TYPE_P, RSTRING_LEN, RSTRING_PTR, SafeStringValue, SET_BINARY_MODE, and T_BIGNUM.
Definition at line 1423 of file io.c.
References id_write, and rb_funcall().
Definition at line 17077 of file ripper.c.
References is_attrset_id.
Definition at line 17059 of file ripper.c.
References is_class_id.
Referenced by cv_i(), rb_cv_get(), rb_cv_set(), rb_define_class_variable(), rb_mod_cvar_defined(), rb_mod_cvar_get(), rb_mod_cvar_set(), and rb_mod_remove_cvar().
Definition at line 17053 of file ripper.c.
References is_const_id.
Referenced by defined_expr(), fc_i(), inspect_struct(), iseq_compile_each(), ole_const_load(), rb_attr(), rb_autoload(), rb_define_const(), rb_mod_const_defined(), rb_mod_const_get(), rb_mod_const_set(), rb_mod_remove_const(), and sv_i().
Definition at line 17065 of file ripper.c.
References is_global_id.
Definition at line 17071 of file ripper.c.
References is_instance_id.
Referenced by inspect_i(), ivar_i(), rb_obj_ivar_defined(), rb_obj_ivar_get(), rb_obj_ivar_set(), and rb_obj_remove_instance_variable().
Definition at line 17089 of file ripper.c.
References is_junk_id.
Definition at line 17083 of file ripper.c.
References is_local_id.
Referenced by collect_local_variables_in_iseq(), inspect_struct(), and rb_attr().
Definition at line 2586 of file variable.c.
st_index_t rb_ivar_count | ( | VALUE | ) |
Definition at line 1299 of file variable.c.
References BUILTIN_TYPE, count, data, FL_EXIVAR, FL_TEST, i, st_table::num_entries, Qundef, rb_special_const_p(), RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, SPECIAL_CONST_P, st_lookup(), T_CLASS, T_MODULE, T_OBJECT, and tbl.
Definition at line 1204 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, generic_ivar_defined(), index, Qfalse, Qtrue, Qundef, rb_special_const_p(), RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, st_lookup(), T_CLASS, T_MODULE, T_OBJECT, and val.
Definition at line 1271 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, func, obj_ivar_each(), rb_special_const_p(), RCLASS_IV_TBL, SPECIAL_CONST_P, st_foreach_safe(), st_lookup(), T_CLASS, T_MODULE, T_OBJECT, and tbl.
Definition at line 1116 of file variable.c.
References ivar_get(), and TRUE.
Definition at line 1128 of file variable.c.
References ALLOC_N, st_table::as, BUILTIN_TYPE, generic_ivar_set(), i, index, klass, len, MEMCPY, st_table::num_entries, OBJ_UNTRUSTED, ptr, Qundef, rb_check_frozen, rb_eSecurityError, rb_obj_class(), rb_raise(), rb_safe_level, RBASIC, RCLASS_IV_INDEX_TBL, RCLASS_IV_TBL, REALLOC_N, ROBJECT, ROBJECT_EMBED, ROBJECT_EMBED_LEN_MAX, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, st_add_direct(), st_init_numtable(), st_insert(), st_lookup(), T_CLASS, T_MODULE, T_OBJECT, and val.
Definition at line 309 of file process.c.
References GET_THREAD(), and rb_thread_struct::last_status.
Definition at line 315 of file process.c.
References GET_THREAD(), INT2FIX, rb_thread_struct::last_status, PIDT2NUM, rb_cProcessStatus, rb_iv_set(), rb_obj_alloc(), and th.
Definition at line 842 of file vm.c.
References vm_svar_get().
Definition at line 848 of file vm.c.
References vm_svar_set().
Definition at line 638 of file load.c.
References FilePathValue, load_failed(), rb_find_file(), rb_load_internal(), and tmp.
Definition at line 824 of file pepper_main.c.
References PepperInstance::as_int, PepperInstance::as_value, PepperInstance::async_call_args, PepperInstance::async_call_result, cmdline_options_init(), PepperInstance::cond, core_interface, f, FIXNUM_P, GET_PEPPER_INSTANCE, PepperInstance::instance, len, load_file(), load_file_internal(), load_file_read_contents(), PepperInstance::mutex, pruby_file_fetch_check_response(), rb_compile_cstr(), rb_parser_new(), rb_str_new_cstr(), RB_TYPE_P, RSTRING_LEN, RSTRING_PTR, s, str, and T_STRING.
Definition at line 596 of file string.c.
References rb_external_str_new_with_enc(), and rb_locale_encoding().
Definition at line 602 of file string.c.
References rb_external_str_new_with_enc(), rb_locale_encoding(), and strlen().
Definition at line 772 of file vm_backtrace.c.
Definition at line 642 of file eval.c.
References make_exception(), and TRUE.
Referenced by parser_set_encode(), rb_f_raise(), and rb_threadptr_raise().
Definition at line 2413 of file gc.c.
References mark_hash().
Definition at line 2389 of file gc.c.
References mark_set().
Definition at line 2543 of file gc.c.
References mark_tbl().
void rb_marshal_define_compat | ( | VALUE | newclass, |
VALUE | oldclass, | ||
VALUE(*)(VALUE) | dumper, | ||
VALUE(*)(VALUE, VALUE) | loader | ||
) |
Definition at line 113 of file marshal.c.
References ALLOC, marshal_compat_t::dumper, marshal_compat_t::loader, marshal_compat_t::newclass, marshal_compat_t::oldclass, Qnil, rb_eTypeError, rb_get_alloc_func(), rb_raise(), and st_insert().
Definition at line 2123 of file marshal.c.
References marshal_load().
Definition at line 37 of file array.c.
References Qnil.
Referenced by ary_make_shared(), rb_ary_fill(), rb_ary_resize(), rb_ary_shift_m(), rb_ary_splice(), rb_ary_store(), rb_struct_initialize_m(), and struct_alloc().
st_index_t rb_memhash | ( | const void * | ptr, |
long | len | ||
) |
Definition at line 1422 of file random.c.
References sip_hash24, sipseed, and sip_uint64_t::u32.
Definition at line 1532 of file vm_method.c.
References rb_method_entry_struct::flag, cache_entry::me, NOEX_BASIC, and rb_method_entry().
Definition at line 802 of file vm_method.c.
References rb_method_entry_struct::def, rb_method_entry_struct::flag, cache_entry::me, NOEX_PRIVATE, NOEX_PROTECTED, NOEX_RESPONDS, rb_method_entry_without_refinements(), rb_method_definition_struct::type, and VM_METHOD_TYPE_NOTIMPLEMENTED.
Definition at line 1504 of file proc.c.
References proc, Qnil, rb_block_given_p(), rb_block_proc(), and rb_method_call_with_block().
Definition at line 1511 of file proc.c.
References rb_proc_t::block, block, BUILTIN_TYPE, data, METHOD::defined_class, EXEC_TAG, GET_THREAD(), GetProcPtr, METHOD::id, JUMP_TAG, METHOD::me, method_data_type, NIL_P(), OBJ_TAINTED, rb_thread_struct::passed_block, POP_TAG, PUSH_TAG, Qnil, Qundef, rb_eTypeError, rb_raise(), rb_safe_level, rb_set_safe_level_force(), rb_vm_call(), METHOD::rclass, METHOD::recv, result, safe, state, T_MODULE, th, and TypedData_Get_Struct.
Definition at line 2511 of file variable.c.
References cvar_list(), mod_cvar_at(), mod_cvar_of(), Qtrue, rb_scan_args(), RTEST, and tbl.
Definition at line 1982 of file variable.c.
References data, RCLASS_CONST_TBL, st_foreach_safe(), st_init_numtable(), sv_i(), and tbl.
Definition at line 1518 of file variable.c.
References rb_to_id(), rb_vm_pop_cfunc_frame(), uninitialized_constant(), and UNREACHABLE.
Definition at line 1995 of file variable.c.
References data, mod, rb_cObject, rb_mod_const_at(), RCLASS_SUPER, and tmp.
Definition at line 2046 of file variable.c.
References Qtrue, rb_const_list(), rb_mod_const_at(), rb_mod_const_of(), rb_scan_args(), RTEST, and tbl.
Definition at line 1823 of file proc.c.
References METHOD::me, original_method_entry(), and rb_method_entry_arity().
Definition at line 1667 of file vm_eval.c.
References specific_eval().
Definition at line 1693 of file vm_eval.c.
References rb_ary_new4(), and yield_under().
Definition at line 210 of file variable.c.
References classname(), NIL_P(), path, and rb_str_dup().
Definition at line 1916 of file variable.c.
References PRIsVALUE, QUOTE, QUOTE_ID, rb_check_id(), rb_class_name(), rb_const_remove(), rb_is_const_id(), rb_is_const_name(), rb_name_error(), and rb_name_error_str().
Definition at line 2552 of file variable.c.
References id, n, OBJ_UNTRUSTED, PRIsVALUE, QUOTE, QUOTE_ID, rb_check_frozen, rb_check_id(), rb_class_name(), rb_cvar_defined(), rb_eSecurityError, rb_is_class_id(), rb_is_class_name(), rb_name_error(), rb_name_error_str(), rb_raise(), rb_safe_level, RCLASS_IV_TBL, st_delete(), UNREACHABLE, and val.
Definition at line 1464 of file string.c.
References enc, rb_eEncCompatError, rb_enc_asciicompat, rb_enc_get(), rb_enc_name, and rb_raise().
Definition at line 4295 of file thread.c.
References rb_mutex_struct::allow_trap, FALSE, GET_THREAD(), GetMutexPtr, GVL_UNLOCK_BEGIN, GVL_UNLOCK_END, rb_thread_struct::interrupt_mask, rb_mutex_struct::lock, lock_func(), lock_interrupt(), rb_thread_struct::locking_mutex, mutex_locked(), NULL, Qfalse, rb_check_deadlock(), rb_eThreadError, rb_mutex_trylock(), rb_raise(), reset_unblock_function(), RUBY_VM_CHECK_INTS_BLOCKING, set_unblock_function(), rb_vm_struct::sleeper, rb_thread_struct::status, rb_mutex_struct::th, th, THREAD_STOPPED_FOREVER, TRAP_INTERRUPT_MASK, rb_thread_struct::vm, and vm_living_thread_num().
Definition at line 4185 of file thread.c.
References GetMutexPtr, Qfalse, Qtrue, and rb_mutex_struct::th.
Definition at line 4173 of file thread.c.
References mutex_alloc(), and rb_cMutex.
Definition at line 4489 of file thread.c.
References end, INT2FIX, NIL_P(), Qnil, rb_ensure(), rb_mutex_lock(), rb_mutex_sleep_forever(), rb_mutex_unlock(), rb_mutex_wait_for(), rb_time_interval(), and time.
Definition at line 4538 of file thread.c.
References func, rb_ensure(), rb_mutex_lock(), and rb_mutex_unlock().
Definition at line 4212 of file thread.c.
References GET_THREAD(), GetMutexPtr, rb_mutex_struct::lock, mutex_locked(), Qfalse, Qtrue, and rb_mutex_struct::th.
Definition at line 4426 of file thread.c.
References err, GET_THREAD(), GetMutexPtr, rb_eThreadError, rb_mutex_unlock_th(), and rb_raise().
Definition at line 377 of file variable.c.
References classid, ID2SYM, and rb_ivar_set().
Definition at line 2198 of file numeric.c.
References FIXABLE, FIXNUM_P, LONG2FIX, PRIdVALUE, rb_eRangeError, rb_num2long(), rb_raise(), SIGNED_VALUE, v, and val.
Definition at line 284 of file numeric.c.
References do_coerce(), rb_funcall(), and TRUE.
Definition at line 3230 of file numeric.c.
References bit_coerce(), rb_funcall(), and TRUE.
Definition at line 291 of file numeric.c.
References do_coerce(), FALSE, Qnil, and rb_funcall().
Definition at line 299 of file numeric.c.
References c, do_coerce(), FALSE, NIL_P(), Qnil, rb_cmperr(), and rb_funcall().
Definition at line 1740 of file object.c.
References FL_SINGLETON, FL_TEST, klass, obj, PRIsVALUE, rb_cBasicObject, rb_class2name(), rb_class_real(), rb_eTypeError, rb_get_alloc_func(), rb_obj_class(), rb_raise(), rb_sourcefile, rb_sourceline(), RCLASS_SUPER, RUBY_DTRACE_OBJECT_CREATE, and RUBY_DTRACE_OBJECT_CREATE_ENABLED.
Definition at line 895 of file string.c.
References obj, OBJ_TAINT, OBJ_TAINTED, rb_any_to_s(), rb_funcall(), RB_TYPE_P, str, and T_STRING.
Definition at line 1233 of file eval.c.
References PASS_PASSED_BLOCK, and rb_funcall2().
Referenced by rb_class_new_instance(), rb_digest_class_s_digest(), rb_proc_s_new(), and thread_s_new().
Definition at line 194 of file object.c.
References CLASS_OF, and rb_class_real().
Definition at line 305 of file object.c.
References FL_FINALIZE, FL_FREEZE, FL_SINGLETON, FL_TAINT, FL_TEST, FL_UNTRUSTED, id_init_clone, init_copy(), rb_eTypeError, rb_funcall(), rb_obj_alloc(), rb_obj_class(), rb_obj_classname(), rb_raise(), rb_singleton_class_attached(), rb_singleton_class_clone_and_attach(), rb_special_const_p(), and RBASIC.
Definition at line 347 of file object.c.
References id_init_dup, init_copy(), rb_eTypeError, rb_funcall(), rb_obj_alloc(), rb_obj_class(), rb_obj_classname(), rb_raise(), and rb_special_const_p().
Definition at line 1012 of file object.c.
References obj, OBJ_FREEZE, OBJ_FROZEN, OBJ_UNTRUSTED, Qtrue, rb_eSecurityError, rb_raise(), rb_safe_level, SPECIAL_CONST_P, st_init_numtable(), and st_insert().
Definition at line 1041 of file object.c.
References OBJ_FROZEN, Qfalse, Qtrue, SPECIAL_CONST_P, and st_lookup().
Definition at line 1690 of file gc.c.
References FIXNUM_FLAG, FLONUM_P, LONG2NUM, nonspecial_obj_id, SIGNED_VALUE, SPECIAL_CONST_P, SYM2ID, and SYMBOL_P.
Definition at line 363 of file object.c.
References obj, rb_check_frozen, rb_check_trusted, rb_eTypeError, rb_obj_class(), rb_raise(), and TYPE.
Definition at line 1596 of file vm_eval.c.
References klass, rb_singleton_class(), rb_special_singleton_class(), SPECIAL_CONST_P, and specific_eval().
Definition at line 1628 of file vm_eval.c.
References klass, rb_ary_new4(), rb_singleton_class(), rb_special_singleton_class(), SPECIAL_CONST_P, and yield_under().
Definition at line 1368 of file variable.c.
References ary, ivar_i(), rb_ary_new(), and rb_ivar_foreach().
Definition at line 556 of file object.c.
References class_or_module_required(), Qfalse, Qtrue, and rb_obj_class().
Definition at line 593 of file object.c.
References CLASS_OF, class_or_module_required(), class_search_ancestor(), Qfalse, Qtrue, and RCLASS_ORIGIN.
Definition at line 904 of file proc.c.
References method_data_type, Qfalse, Qtrue, and rb_typeddata_is_kind_of().
Definition at line 91 of file proc.c.
References Qfalse, Qtrue, and rb_typeddata_is_kind_of().
Definition at line 1215 of file proc.c.
References CLASS_OF, FALSE, mnew(), rb_check_id(), rb_cMethod, and rb_method_name_error().
Definition at line 1831 of file proc.c.
References CLASS_OF, and rb_mod_method_arity().
Definition at line 1400 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, generic_ivar_remove(), id, index, n, OBJ_UNTRUSTED, PRIsVALUE, Qnil, Qundef, QUOTE, QUOTE_ID, rb_check_frozen, rb_check_id(), rb_eSecurityError, rb_is_instance_id(), rb_is_instance_name(), rb_name_error(), rb_name_error_str(), rb_raise(), rb_safe_level, rb_special_const_p(), RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, st_delete(), st_lookup(), T_CLASS, T_MODULE, T_OBJECT, UNREACHABLE, v, and val.
Definition at line 1559 of file vm_method.c.
References args, basic_obj_respond_to(), CLASS_OF, FL_SINGLETON, FL_TEST, ID2SYM, idRespond_to, NIL_P(), NUM2INT, path, PRIsVALUE, Qtrue, QUOTE_ID, RARRAY_PTR(), rb_compile_warn(), rb_funcall2(), rb_method_basic_definition_p(), rb_mod_method_location(), rb_obj_method_arity(), rb_warn(), RSTRING_PTR, RTEST, and ruby_verbose.
Definition at line 901 of file object.c.
References obj, OBJ_TAINT, OBJ_TAINTED, rb_check_frozen, and rb_secure().
Definition at line 884 of file object.c.
References OBJ_TAINTED, Qfalse, and Qtrue.
Definition at line 972 of file object.c.
References FL_UNSET, FL_UNTRUSTED, obj, OBJ_UNTRUSTED, rb_check_frozen, and rb_secure().
Definition at line 920 of file object.c.
References FL_TAINT, FL_UNSET, obj, OBJ_TAINTED, rb_check_frozen, and rb_secure().
Definition at line 953 of file object.c.
References obj, OBJ_UNTRUST, OBJ_UNTRUSTED, rb_check_frozen, and rb_secure().
Definition at line 938 of file object.c.
References OBJ_UNTRUSTED, Qfalse, and Qtrue.
Definition at line 371 of file variable.c.
References rb_path_to_class(), and rb_str_new_cstr().
Definition at line 5239 of file file.c.
References p, path, path_check_0(), PATH_SEP_CHAR, rb_str_new(), strchr(), strlen(), and TRUE.
Definition at line 331 of file variable.c.
References c, enc, id, p, path, PRIsVALUE, QUOTE, rb_check_id_cstr(), rb_cObject, rb_const_defined_at(), rb_const_get_at(), rb_eArgError, rb_enc_asciicompat, rb_enc_get(), rb_eTypeError, RB_GC_GUARD, rb_raise(), RB_TYPE_P, RSTRING_PTR, T_CLASS, and T_MODULE.
Definition at line 5588 of file io.c.
References errno, rb_cloexec_pipe(), rb_gc(), rb_update_max_fd(), and ret.
Definition at line 681 of file proc.c.
References GetProcPtr, rb_proc_t::is_lambda, max(), min(), proc, rb_proc_min_max_arity(), and UNLIMITED_ARGUMENTS.
Definition at line 571 of file proc.c.
References check_argc, GET_THREAD(), GetProcPtr, proc, RARRAY_LEN, RARRAY_PTR(), RB_GC_GUARD, and rb_vm_invoke_proc().
Definition at line 584 of file proc.c.
References rb_proc_t::block, block, GET_THREAD(), GetProcPtr, NIL_P(), proc, RB_GC_GUARD, and rb_vm_invoke_proc().
Definition at line 1347 of file process.c.
References after_exec(), before_exec(), preserving_errno, proc_exec_sh(), Qfalse, and ret.
Definition at line 231 of file proc.c.
References GetProcPtr, rb_proc_t::is_lambda, proc, Qfalse, and Qtrue.
Definition at line 2018 of file proc.c.
References func, mproc(), and rb_iterate().
Definition at line 771 of file eval.c.
References rb_thread_struct::cfp, GET_THREAD(), MEMCPY, rb_vm_protect_tag::prev, proc, rb_thread_struct::protect_tag, Qnil, rb_vm_rewind_cfp(), result, SAVE_ROOT_JMPBUF, status, th, TH_EXEC_TAG, TH_POP_TAG, and TH_PUSH_TAG.
Referenced by BigDecimal_save_exception_mode(), BigDecimal_save_limit(), BigDecimal_save_rounding_mode(), decode_enum(), decode_int(), decode_time(), EVENTSINK_Invoke(), exc_equal(), fdbm_delete_if(), fgdbm_delete_if(), for(), fsdbm_delete_if(), goruby_run_node(), gzfile_wrap(), if(), init_libraries(), io_s_write(), load_encoding(), name_err_mesg_to_str(), ossl_buf2str(), ossl_client_cert_cb(), ossl_pem_passwd_cb(), ossl_pkcs12_initialize(), ossl_protect_membio2str(), ossl_protect_obj2bio(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_sslctx_session_remove_cb(), ossl_tmp_dh_callback(), ossl_verify_cb(), parse(), pruby_obj_to_var(), rb_autoload_load(), rb_eval_string_protect(), rb_glob_caller(), rb_hash_fetch_m(), rb_io_s_pipe(), rb_io_s_read(), readline_readline(), ruby_eval_string_from_file_protect(), run_finalizer(), tcl_protect_core(), ttymode(), zstream_expand_buffer(), and zstream_expand_buffer_protect().
Definition at line 566 of file load.c.
References rb_provide_feature(), and rb_usascii_str_new2.
Definition at line 517 of file load.c.
References rb_feature_provided().
Definition at line 996 of file random.c.
References CHAR_BIT, genrand_int32(), i, id_bytes, len, LONG2NUM, rb_random_t::mt, ptr, r, rb_funcall2(), rb_str_new(), RSTRING_PTR, SIZEOF_INT32, and try_get_rnd().
Definition at line 914 of file random.c.
References genrand_int32(), id_rand, INT2FIX, rb_random_t::mt, NUM2ULONG, rb_big_plus(), rb_funcall2(), try_get_rnd(), and ULONG2NUM.
double rb_random_real | ( | VALUE | rnd | ) |
Definition at line 931 of file random.c.
References d, genrand_real(), id_rand, rb_random_t::mt, NUM2DBL, rb_eRangeError, rb_funcall2(), rb_raise(), try_get_rnd(), and v.
unsigned long rb_random_ulong_limited | ( | VALUE | rnd, |
unsigned long | limit | ||
) |
Definition at line 962 of file random.c.
References id_rand, limited_rand(), rb_random_t::mt, NUM2ULONG, r, rb_eRangeError, rb_funcall2(), rb_num_negative_p(), rb_raise(), rb_to_int(), try_get_rnd(), ulong_to_num_plus_1(), and v.
Definition at line 990 of file range.c.
References b, e, end, len, NUM2LONG, Qfalse, Qnil, Qtrue, rb_eRangeError, rb_raise(), and rb_range_values().
Definition at line 67 of file range.c.
References range, range_init(), rb_cRange, and rb_obj_alloc().
Definition at line 1755 of file rational.c.
References a, nurat_s_convert(), and rb_cRational.
Definition at line 1747 of file rational.c.
References nurat_s_canonicalize_internal(), and rb_cRational.
Definition at line 1741 of file rational.c.
References nurat_s_new_internal(), and rb_cRational.
Definition at line 2476 of file re.c.
References rb_reg_s_alloc().
Definition at line 1075 of file re.c.
References match_backref_number().
Definition at line 2488 of file re.c.
References err, NULL, rb_reg_initialize_str(), and rb_reg_raise_str().
Definition at line 1483 of file re.c.
References rb_reg_nth_match().
Definition at line 2741 of file re.c.
References LONG2FIX, Qnil, rb_str_sublen(), and reg_match_pos().
Definition at line 2800 of file re.c.
References LONG2FIX, Qnil, rb_backref_set(), rb_lastline_get(), rb_reg_search(), rb_str_sublen(), RB_TYPE_P, and T_STRING.
Definition at line 1546 of file re.c.
References BEG, i, match_check(), NIL_P(), re_registers::num_regs, Qnil, rb_reg_nth_match(), and RMATCH_REGS.
Definition at line 1528 of file re.c.
References BEG, END, match_check(), NIL_P(), OBJ_TAINT, OBJ_TAINTED, Qnil, rb_str_subseq(), RMATCH, RMATCH_REGS, RSTRING_LEN, and str.
Definition at line 1501 of file re.c.
References BEG, match_check(), NIL_P(), OBJ_TAINT, OBJ_TAINTED, Qnil, rb_str_subseq(), RMATCH, RMATCH_REGS, and str.
Definition at line 2519 of file re.c.
References rb_ascii8bit_encoding(), and rb_enc_reg_new().
Definition at line 2482 of file re.c.
References rb_reg_alloc(), and rb_reg_init_str().
Definition at line 1439 of file re.c.
References BEG, match_check(), NIL_P(), re_registers::num_regs, Qfalse, Qnil, Qtrue, and RMATCH_REGS.
Definition at line 1457 of file re.c.
References BEG, END, end, len, match_check(), NIL_P(), re_registers::num_regs, OBJ_INFECT, Qnil, rb_str_subseq(), RMATCH, RMATCH_REGS, and str.
Definition at line 3078 of file re.c.
References ARG_ENCODING_FIXED, ARG_ENCODING_NONE, ARG_REG_OPTION_MASK, flags, KCODE_FIXED, rb_reg_check(), RBASIC, REG_ENCODING_NONE, and RREGEXP.
Definition at line 720 of file vm_method.c.
References rb_intern, and remove_method().
Definition at line 714 of file vm_method.c.
References remove_method().
Definition at line 934 of file load.c.
References rb_thread_struct::errinfo, EXEC_TAG, FilePathValue, GET_THREAD(), JUMP_TAG, load_ext(), load_failed(), load_lock(), load_unlock(), LONG2NUM, NIL_P(), path, POP_TAG, PUSH_TAG, Qfalse, Qnil, Qtrue, rb_ary_push(), rb_load_internal(), rb_provide_feature(), rb_safe_level, rb_set_safe_level_force(), rb_sourcefile, rb_sourceline(), rb_vm_call_cfunc(), rb_vm_top_self(), result, RSTRING_PTR, ruby_dln_librefs, RUBY_DTRACE_FIND_REQUIRE_ENTRY, RUBY_DTRACE_FIND_REQUIRE_ENTRY_ENABLED, RUBY_DTRACE_FIND_REQUIRE_RETURN, RUBY_DTRACE_FIND_REQUIRE_RETURN_ENABLED, RUBY_DTRACE_REQUIRE_ENTRY, RUBY_DTRACE_REQUIRE_ENTRY_ENABLED, RUBY_DTRACE_REQUIRE_RETURN, RUBY_DTRACE_REQUIRE_RETURN_ENABLED, safe, search_required(), state, StringValuePtr, and th.
Definition at line 1443 of file random.c.
References default_rand, INT2FIX, rb_random_t::mt, r, rb_random_t::seed, and uninit_genrand.
Definition at line 1598 of file vm_method.c.
References FALSE, and rb_obj_respond_to().
Definition at line 308 of file variable.c.
References classid, classpath, ID2SYM, OBJ_FREEZE, rb_cObject, rb_intern, rb_ivar_set(), rb_str_cat2(), rb_str_dup(), rb_str_new2, rb_tmp_class_path(), str, and tmp_classpath.
Definition at line 285 of file variable.c.
References classid, classpath, ID2SYM, OBJ_FREEZE, rb_cObject, rb_intern_str, rb_ivar_set(), rb_str_append(), rb_str_cat2(), rb_str_dup(), rb_str_new_frozen(), rb_tmp_class_path(), str, and tmp_classpath.
Definition at line 60 of file eval_jump.c.
References ALLOC, end_proc_data::data, data, end_procs, ephemeral_end_procs, end_proc_data::func, func, GET_THREAD(), link(), list, end_proc_data::next, rb_safe_level, end_proc_data::safe, th, and rb_thread_struct::top_wrapper.
Referenced by Init_curses(), Init_tcltklib(), m_core_set_postexe(), and rb_f_at_exit().
Definition at line 870 of file vm.c.
References rb_thread_struct::cfp, GET_THREAD(), rb_control_frame_struct::iseq, rb_iseq_struct::location, rb_iseq_location_struct::path, rb_vm_get_ruby_level_next_cfp(), RSTRING_PTR, and th.
Definition at line 884 of file vm.c.
References rb_thread_struct::cfp, GET_THREAD(), rb_vm_get_ruby_level_next_cfp(), rb_vm_get_sourceline(), and th.
Definition at line 3757 of file process.c.
References NULL, and rb_spawn_internal().
Definition at line 3751 of file process.c.
References rb_spawn_internal().
Definition at line 871 of file bignum.c.
References rb_str_to_inum().
Definition at line 2125 of file string.c.
References enc, ENC_CODERANGE, ENC_CODERANGE_SET, len, memcpy(), OBJ_INFECT, rb_enc_associate(), rb_enc_check(), rb_str_buf_append(), rb_str_modify_expand(), RSTRING, RSTRING_LEN, RSTRING_PTR, str, STR_ASSOC_P, and StringValue.
Definition at line 1423 of file string.c.
References add, assoc, FL_SET, rb_ary_concat(), rb_check_frozen, RBASIC, RESIZE_CAPA, RSTRING, RSTRING_LEN, STR_ASSOC, STR_ASSOC_P, STR_EMBED_P, str_make_independent, and STR_SHARED_P.
Definition at line 1454 of file string.c.
References Qfalse, RSTRING, STR_ASSOC_P, and STR_SHARED_P.
Definition at line 2109 of file string.c.
References ENC_CODERANGE, ENC_CODERANGE_SET, ENCODING_GET, OBJ_INFECT, rb_enc_cr_str_buf_cat(), RSTRING_LEN, RSTRING_PTR, and str.
Definition at line 1951 of file string.c.
References rb_eArgError, rb_raise(), str, and str_buf_cat().
Definition at line 1961 of file string.c.
References rb_str_buf_cat(), and strlen().
Definition at line 2085 of file string.c.
References ALLOCA_N, buf, c, enc, ENC_CODERANGE_7BIT, ENC_CODERANGE_VALID, ENCODING_GET, rb_enc_asciicompat, rb_enc_codelen(), rb_enc_cr_str_buf_cat(), rb_enc_from_index(), rb_enc_mbcput, rb_enc_mbmaxlen, str, and strlen().
VALUE rb_str_buf_new | ( | long | ) |
Definition at line 777 of file string.c.
References ALLOC_N, FL_SET, rb_cString, RSTRING, str, str_alloc(), STR_BUF_MIN_SIZE, and STR_NOEMBED.
Definition at line 793 of file string.c.
References rb_str_buf_cat(), rb_str_buf_new(), str, and strlen().
size_t rb_str_capacity | ( | VALUE | ) |
Definition at line 360 of file string.c.
References RSTRING, RSTRING_EMBED_LEN_MAX, STR_EMBED_P, and STR_NOCAPA_P.
Definition at line 1967 of file string.c.
References len, memcpy(), p, rb_eArgError, rb_raise(), rb_str_buf_cat(), rb_str_modify_expand(), RSTRING, str, and STR_ASSOC_P.
Definition at line 1986 of file string.c.
References rb_str_cat(), and strlen().
Definition at line 2312 of file string.c.
References ENCODING_GET, lesser, memcmp(), rb_str_comparable(), retval, and RSTRING_GETMEM.
Definition at line 2287 of file string.c.
References ENC_CODERANGE_7BIT, ENCODING_GET, FALSE, rb_enc_asciicompat, rb_enc_from_index(), rb_enc_str_coderange(), RSTRING_LEN, and TRUE.
Definition at line 2166 of file string.c.
References ALLOCA_N, buf, code, enc, ENC_CODERANGE, ENC_CODERANGE_7BIT, ENC_CODERANGE_SET, ENC_CODERANGE_VALID, FIX2LONG, FIXNUM_P, len, memcpy(), ONIGERR_INVALID_CODE_POINT_VALUE, ONIGERR_TOO_BIG_WIDE_CHAR_VALUE, rb_ascii8bit_encoding(), rb_enc_associate(), rb_enc_codelen(), rb_enc_mbcput, rb_enc_name, rb_enc_precise_mbclen(), rb_eRangeError, rb_num_to_uint(), rb_raise(), rb_str_append(), rb_str_cat(), rb_str_resize(), RB_TYPE_P, rb_usascii_encoding(), RSTRING_LEN, RSTRING_PTR, STR_ENC_GET, and T_BIGNUM.
Definition at line 3351 of file string.c.
References ELTS_SHARED, ENC_CODERANGE_CLEAR, int, len, memmove(), ptr, rb_str_new4, RBASIC, RSTRING, RSTRING_EMBED_LEN_MAX, RSTRING_LEN, RSTRING_PTR, str, str_modifiable(), STR_NOEMBED, STR_SET_EMBED, STR_SET_EMBED_LEN, STR_SHARED_P, and xfree.
Definition at line 4634 of file string.c.
References c, enc, ENC_CODERANGE_7BIT, ENC_CODERANGE_SET, IS_EVSTR, ISPRINT, len, MBCLEN_CHARFOUND_LEN, MBCLEN_CHARFOUND_P, n, OnigEncodingTypeST::name, OBJ_INFECT, p, q, rb_ascii8bit_encoding(), rb_enc_asciicompat, rb_enc_associate(), rb_enc_get(), rb_enc_mbc_to_codepoint, rb_enc_precise_mbclen(), rb_str_new5, rb_utf8_encoding(), result, RSTRING_LEN, RSTRING_PTR, snprintf, and strlen().
Definition at line 946 of file string.c.
References rb_obj_class(), and str_duplicate().
Shortens str and adds three dots, an ellipsis, if it is longer than len characters.
str | the string to ellipsize. |
len | the maximum string length. |
Definition at line 7727 of file string.c.
References enc, Qnil, rb_eIndexError, rb_enc_asciicompat, rb_enc_associate(), rb_enc_from_encoding(), rb_enc_get(), rb_enc_mbminlen, rb_enc_nth(), rb_enc_step_back, rb_raise(), rb_str_append(), rb_str_cat(), rb_str_encode(), rb_str_new_with_class(), rb_str_subseq(), rb_usascii_str_new(), ret, RSTRING_LEN, RSTRING_PTR, and str.
Definition at line 230 of file file.c.
References enc, path, Qnil, rb_ascii8bit_encoding(), rb_enc_associate(), rb_enc_from_encoding(), rb_enc_get(), rb_filesystem_encoding(), rb_str_dup(), rb_str_encode(), rb_utf8_encoding(), and RSTRING_LEN.
Definition at line 2363 of file string.c.
References Qfalse, Qtrue, rb_equal(), rb_intern, rb_respond_to(), RB_TYPE_P, str_eql(), and T_STRING.
Definition at line 443 of file sprintf.c.
References arg, argc, argv, BIT_DIGITS, buf, c, CHECK, CHECK_FOR_FLAGS, CHECK_FOR_WIDTH, d, enc, ENC_CODERANGE_7BIT, ENC_CODERANGE_BROKEN, ENC_CODERANGE_SET, ENC_CODERANGE_UNKNOWN, end, expr, fbuf, FILL, FIX2LONG, FIXABLE, FIXNUM_P, flags, FMINUS, fmt_setup(), FNONE, FPLUS, FPREC, FPREC0, FSHARP, FSPACE, FWIDTH, FZERO, GETARG, GETASTER, GETNAMEARG, GETNUM, GETPOSARG, hash, i, ID2SYM, int, isinf(), isnan, len, LONG2FIX, memcpy(), memset(), n, NIL_P(), NUM2INT, OBJ_TAINT, OBJ_TAINTED, p, PRIdSIZE, PUSH, Qundef, rb_big2str(), rb_big2str0(), rb_big_2comp(), rb_big_clone(), rb_check_id_cstr(), rb_check_string_type(), rb_dbl2big(), rb_eArgError, rb_eKeyError, rb_enc_associate(), rb_enc_check(), rb_enc_codelen(), rb_enc_codepoint_len(), rb_enc_copy(), rb_enc_get(), rb_enc_isprint, rb_enc_mbclen(), rb_enc_mbcput, rb_enc_nth(), rb_enc_raise(), rb_enc_right_char_head, rb_enc_strlen(), rb_enc_toupper(), rb_Float(), RB_GC_GUARD, rb_id2name(), rb_inspect(), rb_int2big(), rb_Integer(), rb_long2int, rb_obj_as_string(), rb_raise(), rb_str_buf_new(), rb_str_coderange_scan_restartable(), rb_str_new4, rb_str_resize(), rb_str_set_len(), rb_str_to_inum(), rb_warn(), rb_warning(), RBIGNUM_SIGN, remove_sign_bits(), result, retry, RFLOAT_VALUE, RSTRING_END, RSTRING_LEN, RSTRING_PTR, RTEST, ruby_debug, ruby_verbose, s, sign_bits(), snprintf, str, StringValue, strlen(), t, T_BIGNUM, T_FIXNUM, T_FLOAT, T_STRING, tmp, TRUE, TYPE, v, and val.
Definition at line 830 of file string.c.
References RSTRING, STR_EMBED_P, STR_SHARED_P, and xfree.
Definition at line 1798 of file string.c.
References ary, OBJ_FREEZE, rb_obj_freeze(), RSTRING, and STR_ASSOC_P.
st_index_t rb_str_hash | ( | VALUE | ) |
Definition at line 2248 of file string.c.
References e, ENC_CODERANGE_7BIT, ENCODING_GET, rb_enc_str_coderange(), rb_memhash(), RSTRING_LEN, and RSTRING_PTR.
Definition at line 2258 of file string.c.
References len, memcmp(), rb_str_comparable(), RSTRING_LEN, and RSTRING_PTR.
Definition at line 4512 of file string.c.
References buf, c, CHAR_ESC_LEN, enc, int, ISPRINT, MBCLEN_CHARFOUND_LEN, MBCLEN_CHARFOUND_P, n, NULL, OBJ_INFECT, p, q, rb_default_external_encoding(), rb_default_internal_encoding(), rb_enc_asciicompat, rb_enc_associate(), rb_enc_codepoint, rb_enc_find(), rb_enc_isascii, rb_enc_isprint, rb_enc_mbc_to_codepoint, rb_enc_mbminlen, rb_enc_precise_mbclen(), rb_enc_unicode_p(), rb_str_buf_cat_escaped_char(), rb_str_buf_new(), rb_usascii_encoding(), result, RSTRING_END, RSTRING_PTR, snprintf, str_buf_cat(), str_buf_cat2, STR_ENC_GET, and strlen().
Definition at line 7229 of file string.c.
References id, ID2SYM, RB_GC_GUARD, and rb_intern_str.
Definition at line 1182 of file string.c.
References len, LONG2NUM, STR_ENC_GET, and str_strlen().
Definition at line 1369 of file string.c.
References ENC_CODERANGE_CLEAR, str_independent(), and str_make_independent.
Definition at line 1377 of file string.c.
References ENC_CODERANGE_CLEAR, rb_eArgError, rb_raise(), REALLOC_N, RSTRING, RSTRING_EMBED_LEN_MAX, RSTRING_LEN, STR_EMBED_P, str_independent(), str_make_independent_expand(), and STR_UNSET_NOCAPA.
Definition at line 425 of file string.c.
References rb_cString, and str_new().
Definition at line 447 of file string.c.
References rb_eArgError, rb_raise(), rb_str_new(), and strlen().
Definition at line 713 of file string.c.
References assert, assoc, ENCODING_GET, FL_SET, FL_TAINT, FL_UNSET, FL_UNTRUSTED, flags, klass, OBJ_FREEZE, OBJ_FROZEN, OBJ_INFECT, rb_enc_cr_str_exact_copy(), rb_obj_class(), RBASIC, RSTRING, RSTRING_LEN, RSTRING_PTR, str, STR_ASSOC, STR_ASSOC_P, STR_EMBED_P, str_new(), str_new3(), and STR_SHARED_P.
Definition at line 677 of file string.c.
References OBJ_INFECT, rb_obj_class(), and str_new3().
long rb_str_offset | ( | VALUE | , |
long | |||
) |
Definition at line 1611 of file string.c.
References RSTRING_END, RSTRING_PTR, single_byte_optimizable(), STR_ENC_GET, and str_offset().
Definition at line 1236 of file string.c.
References enc, ENC_CODERANGE, ENC_CODERANGE_AND, ENCODING_CODERANGE_SET, memcpy(), OBJ_TAINT, OBJ_TAINTED, rb_enc_check(), rb_enc_to_index, rb_str_new(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Definition at line 4034 of file string.c.
References str, str_discard(), str_modifiable(), str_replace(), and StringValue.
Definition at line 1854 of file string.c.
References ENC_CODERANGE_CLEAR, len, MEMCPY, rb_eArgError, rb_raise(), REALLOC_N, RSTRING, RSTRING_EMBED_LEN_MAX, RSTRING_LEN, str, STR_EMBED_P, str_independent(), str_make_independent_expand(), STR_SET_EMBED, STR_SET_EMBED_LEN, STR_SET_NOEMBED, and xfree.
Definition at line 952 of file string.c.
References rb_cString, rb_sourcefile, rb_sourceline(), RSTRING_LEN, RUBY_DTRACE_STRING_CREATE, RUBY_DTRACE_STRING_CREATE_ENABLED, str_alloc(), and str_replace().
Definition at line 1838 of file string.c.
References len, rb_bug(), rb_eRuntimeError, rb_raise(), rb_str_capacity(), RSTRING_PTR, str_modifiable(), STR_SET_LEN, and STR_SHARED_P.
Definition at line 7633 of file string.c.
References NIL_P(), rb_eTypeError, rb_id2name(), rb_raise(), RB_TYPE_P, T_STRING, and val.
Definition at line 857 of file string.c.
References enc, ENC_CODERANGE, ENC_CODERANGE_SET, FL_SET, flags, memcpy(), OBJ_INFECT, rb_enc_associate(), RBASIC, RSTRING, RSTRING_EMBED_LEN_MAX, RSTRING_LEN, RSTRING_PTR, str_discard(), STR_ENC_GET, STR_NOCAPA, STR_NOCAPA_P, STR_SET_EMBED, STR_SET_EMBED_LEN, STR_SET_NOEMBED, and STR_UNSET_NOCAPA.
Definition at line 6146 of file string.c.
References rb_str_new2, rb_str_split_m(), and StringValue.
long rb_str_strlen | ( | VALUE | ) |
Definition at line 1168 of file string.c.
References STR_ENC_GET, and str_strlen().
long rb_str_sublen | ( | VALUE | , |
long | |||
) |
Definition at line 1658 of file string.c.
References ENC_CODERANGE, enc_strlen(), RSTRING_PTR, single_byte_optimizable(), and STR_ENC_GET.
Definition at line 1669 of file string.c.
References OBJ_INFECT, rb_enc_cr_str_copy_for_substr(), RB_GC_GUARD, rb_str_drop_bytes(), rb_str_new5, rb_str_new_frozen(), rb_str_new_shared(), RSTRING_EMBED_LEN_MAX, RSTRING_LEN, and RSTRING_PTR.
Definition at line 1775 of file string.c.
References len, OBJ_INFECT, Qnil, rb_enc_cr_str_copy_for_substr(), RB_GC_GUARD, rb_obj_class(), rb_str_new4, rb_str_new5, rb_str_subpos(), RSTRING, RSTRING_EMBED_LEN_MAX, RSTRING_END, and str_new3().
Definition at line 2988 of file string.c.
References c, e, enc, enc_succ_alnum_char(), enc_succ_char(), ISALPHA, ISDIGIT, MEMCPY, memmove(), NEIGHBOR_FOUND, NEIGHBOR_NOT_CHAR, NEIGHBOR_WRAPPED, OBJ_INFECT, ONIGENC_CODE_TO_MBC_MAXLEN, rb_enc_asciicompat, rb_enc_cr_str_copy_for_substr(), rb_enc_precise_mbclen(), rb_enc_prev_char, rb_enc_str_coderange(), rb_str_new5, RESIZE_CAPA, RSTRING_LEN, RSTRING_PTR, s, str, STR_ENC_GET, and STR_SET_LEN.
Definition at line 1268 of file string.c.
References len, LONG_MAX, memcpy(), n, NUM2LONG, OBJ_INFECT, rb_eArgError, rb_enc_cr_str_copy_for_substr(), rb_raise(), rb_str_new5, RSTRING_LEN, and RSTRING_PTR.
VALUE rb_str_tmp_new | ( | long | ) |
Definition at line 2672 of file object.c.
References ALLOCV, ALLOCV_END, len, MEMCPY, p, rb_cstr_to_dbl(), rb_eArgError, rb_raise(), ret, RSTRING_LEN, RSTRING_PTR, s, StringValue, and v.
Definition at line 777 of file bignum.c.
References ALLOCV, ALLOCV_END, len, MEMCPY, p, rb_cstr_to_inum(), rb_must_asciicompat(), ret, RSTRING_LEN, RSTRING_PTR, s, StringValue, StringValueCStr, and v.
Referenced by f_to_i(), obj2int(), obj2subsecx(), obj2vint(), rb_convert_to_integer(), rb_str2inum(), rb_str_format(), rb_str_hex(), rb_str_oct(), rb_str_to_i(), rb_str_upto(), and usec2subsecx().
Definition at line 1821 of file string.c.
References FL_TEST, FL_UNSET, rb_eRuntimeError, rb_raise(), str, and STR_TMPLOCK.
Definition at line 3455 of file string.c.
References rb_str_splice().
Definition at line 1288 of file sprintf.c.
References __SSTR, __SWR, BSD_vfprintf(), f, klass, rb_str_capacity(), rb_str_modify(), rb_str_resize(), RBASIC, RSTRING_END, RSTRING_PTR, ruby__sfvextra(), ruby__sfvwrite(), str, StringValue, and rb_printf_buffer_extra::value.
Definition at line 2791 of file object.c.
References NIL_P(), rb_check_string_type(), rb_convert_type(), T_STRING, and tmp.
Definition at line 442 of file struct.c.
References RARRAY_LENINT, RARRAY_PTR(), and rb_class_new_instance().
Definition at line 240 of file struct.c.
References struct_alloc().
Definition at line 698 of file struct.c.
References i, NUM2LONG, PRIsVALUE, QUOTE, rb_check_id(), rb_eIndexError, rb_name_error_str(), rb_raise(), rb_struct_aref_id(), RB_TYPE_P, RSTRUCT_LEN, RSTRUCT_PTR, SYM2ID, T_STRING, and T_SYMBOL.
Definition at line 773 of file struct.c.
References i, NUM2LONG, PRIsVALUE, QUOTE, rb_check_id(), rb_eIndexError, rb_name_error_str(), rb_raise(), rb_struct_aset_id(), rb_struct_modify(), RB_TYPE_P, RSTRUCT_LEN, RSTRUCT_PTR, SYM2ID, T_STRING, T_SYMBOL, and val.
Definition at line 279 of file struct.c.
References anonymous_struct(), ary, ID2SYM, new_struct(), rb_ary_push(), rb_ary_tmp_new(), rb_cStruct, rb_intern, rb_str_new2, setup_struct(), st, and va_end().
VALUE rb_struct_define_without_accessor | ( | const char * | , |
VALUE | , | ||
rb_alloc_func_t | , | ||
... | |||
) |
Definition at line 246 of file struct.c.
References anonymous_struct(), ID2SYM, id_members, klass, name, NULL, OBJ_FREEZE, rb_ary_push(), rb_ary_tmp_new(), rb_define_alloc_func(), rb_define_class(), rb_intern, rb_ivar_set(), struct_alloc(), and va_end().
Definition at line 98 of file struct.c.
References i, ID2SYM, len, not_a_member(), ptr, RARRAY_LEN, RARRAY_PTR(), rb_struct_members(), RSTRUCT_PTR, and UNREACHABLE.
Definition at line 414 of file struct.c.
References RARRAY_LENINT, RARRAY_PTR(), and rb_struct_initialize_m().
Definition at line 53 of file struct.c.
References RARRAY_LEN, rb_eTypeError, rb_obj_class(), rb_raise(), rb_struct_s_members(), and RSTRUCT_LEN.
Definition at line 448 of file struct.c.
References args, i, N_REF_FUNC, num_members(), numberof, RARRAY_PTR(), rb_ary_tmp_new(), rb_class_new_instance(), rb_long2int, size, and va_end().
Definition at line 39 of file struct.c.
References id_members, NIL_P(), rb_eTypeError, rb_raise(), RB_TYPE_P, struct_ivar_get(), and T_ARRAY.
Definition at line 17044 of file ripper.c.
References ary, global_symbols, st_table::num_entries, rb_ary_new2(), st_foreach(), symbols::sym_id, and symbols_i().
Referenced by Init_String().
Definition at line 7924 of file string.c.
References rb_cString, rb_id2str(), str_new3(), and SYM2ID.
Definition at line 16624 of file ripper.c.
References rb_ascii8bit_encoding(), and rb_enc_symname_p().
void rb_syswait | ( | rb_pid_t | pid | ) |
Definition at line 3676 of file process.c.
References rb_waitpid(), and status.
Definition at line 479 of file string.c.
References OBJ_TAINT, rb_str_new2, and str.
Definition at line 2912 of file thread.c.
References GET_THREAD(), thread_debug, and vm_living_thread_num().
Definition at line 3851 of file thread.c.
References GET_THREAD(), rb_thread_struct::join_list, NULL, rb_reset_random_seed(), rb_thread_atfork_internal(), and terminate_atfork_i().
Definition at line 3874 of file thread.c.
References rb_thread_atfork_internal(), and terminate_atfork_before_exec_i().
Definition at line 1098 of file thread.c.
References GET_THREAD(), and RUBY_VM_CHECK_INTS_BLOCKING.
Definition at line 727 of file thread.c.
References rb_cThread, rb_thread_alloc(), and thread_create_core().
Definition at line 2358 of file thread.c.
References GET_THREAD(), and rb_thread_struct::self.
Definition at line 2086 of file thread.c.
References GET_THREAD(), st_foreach(), and thread_fd_close_i().
int rb_thread_fd_select | ( | int | , |
rb_fdset_t * | , | ||
rb_fdset_t * | , | ||
rb_fdset_t * | , | ||
struct timeval * | |||
) |
Definition at line 3496 of file thread.c.
References do_select(), rb_fd_resize, rb_thread_sleep_forever(), and rb_thread_wait_for().
Definition at line 3445 of file thread.c.
References rb_thread_wait_fd_rw(), and TRUE.
Definition at line 1115 of file thread.c.
References GetThreadPtr, RUBY_VM_INTERRUPTED, and th.
Definition at line 2141 of file thread.c.
References eKillSignal, EXIT_SUCCESS, GET_THREAD(), GetThreadPtr, rb_vm_struct::main_thread, rb_exit(), rb_secure(), rb_threadptr_interrupt(), rb_threadptr_pending_interrupt_enque(), rb_threadptr_to_kill(), rb_thread_struct::safe_level, rb_thread_struct::status, th, thread, thread_debug, rb_thread_struct::thread_id, THREAD_KILLED, rb_thread_struct::to_kill, and rb_thread_struct::vm.
Definition at line 2671 of file thread.c.
References GET_THREAD(), GetThreadPtr, rb_thread_struct::local_storage, Qnil, rb_eSecurityError, rb_raise(), rb_safe_level, st_lookup(), th, and val.
Definition at line 2756 of file thread.c.
References GET_THREAD(), GetThreadPtr, rb_thread_struct::local_storage, NIL_P(), OBJ_FROZEN, Qnil, rb_error_frozen(), rb_eSecurityError, rb_raise(), rb_safe_level, st_delete_wrap(), st_init_numtable(), st_insert(), th, and val.
Definition at line 2379 of file thread.c.
References GET_THREAD(), rb_vm_struct::main_thread, rb_thread_struct::self, and rb_thread_struct::vm.
Definition at line 2272 of file thread.c.
References rb_thread_schedule(), rb_thread_wakeup(), and thread.
Definition at line 1146 of file thread.c.
References GET_THREAD(), rb_thread_schedule_limits(), rb_threadptr_execute_interrupts(), RUBY_VM_INTERRUPTED_ANY, and UNLIKELY.
Definition at line 1123 of file thread.c.
References INT2FIX, rb_thread_wait_for(), and rb_time_timeval().
Definition at line 1028 of file thread.c.
References GET_THREAD(), sleep_forever(), and thread_debug.
Definition at line 2299 of file thread.c.
References Qnil, rb_eThreadError, rb_raise(), rb_thread_alone(), and rb_thread_sleep_deadly().
Definition at line 3439 of file thread.c.
References rb_thread_wait_fd_rw().
Definition at line 1074 of file thread.c.
References GET_THREAD(), sleep_timeval(), and th.
Definition at line 2228 of file thread.c.
References rb_eThreadError, rb_raise(), rb_thread_wakeup_alive(), RTEST, and thread.
Definition at line 2237 of file thread.c.
References GetThreadPtr, Qnil, rb_threadptr_ready(), rb_thread_struct::status, th, thread, THREAD_KILLED, THREAD_RUNNABLE, THREAD_STOPPED, and THREAD_STOPPED_FOREVER.
Definition at line 2496 of file time.c.
References time_timeval(), and TRUE.
VALUE rb_time_nano_new | ( | time_t | , |
long | |||
) |
Definition at line 2390 of file time.c.
References nsec2timew(), and time_new_timew().
VALUE rb_time_new | ( | time_t | , |
long | |||
) |
Definition at line 2364 of file time.c.
References nsec2timew(), rb_eRangeError, rb_raise(), time_new_timew(), TIMET_MAX, and time_object::timew.
Definition at line 2396 of file time.c.
References NIL_P(), rb_time_magnify(), time, time_new_timew(), time_set_utc_offset(), utc_offset_arg(), v2w(), and validate_utc_offset().
Definition at line 3849 of file time.c.
References GetTimeval, rb_warn(), time, TIME_COPY_GMT, time_new_timew(), TIME_SCALE, time_object::timew, wadd(), and WINT2FIXWV.
Definition at line 2519 of file time.c.
References FALSE, GetTimeval, IsTimeval, t, time, time_timespec(), and timew2timespec().
Definition at line 2745 of file object.c.
References NIL_P(), Qfalse, Qtrue, rb_cNumeric, rb_convert_type(), rb_eTypeError, rb_obj_classname(), rb_obj_is_kind_of(), rb_raise(), RB_TYPE_P, T_FLOAT, and val.
Definition at line 2482 of file object.c.
References rb_to_integer().
Definition at line 728 of file signal.c.
References rb_vm_struct::cmd, GET_VM, rb_vm_struct::safe, signal_exec(), and rb_vm_struct::trap_list.
Definition at line 868 of file vm_method.c.
References attached, c, CALL_METHOD_HOOK, rb_method_entry_struct::def, FL_SINGLETON, FL_TEST, klass, cache_entry::me, NIL_P(), NOEX_PUBLIC, obj, OBJ_UNTRUSTED, object_id, PRIsVALUE, QUOTE_ID, rb_add_method(), rb_class_name(), rb_cObject, rb_eSecurityError, rb_eTypeError, rb_frozen_class_p(), rb_id2name(), rb_ivar_get(), rb_name_error(), rb_raise(), rb_safe_level, rb_secure(), RB_TYPE_P, rb_vm_cbase(), rb_warn(), search_method(), T_CLASS, T_MODULE, undefined, UNDEFINED_METHOD_ENTRY_P, UNDEFINED_REFINED_METHOD_P, and VM_METHOD_TYPE_UNDEF.
Definition at line 493 of file vm_method.c.
References rb_define_alloc_func(), and UNDEF_ALLOC_FUNC.
Definition at line 164 of file io.c.
References ATOMIC_CAS, errno, fstat, max_file_descriptor, rb_bug(), and stat.
Definition at line 431 of file string.c.
References ENC_CODERANGE_7BIT, ENCODING_CODERANGE_SET, rb_str_new(), rb_usascii_encindex(), and str.
int rb_uv_to_utf8 | ( | char | [6], |
unsigned | long | ||
) |
Definition at line 2192 of file pack.c.
References castchar, rb_eRangeError, rb_raise(), and UNREACHABLE.
Definition at line 1269 of file sprintf.c.
References NULL, and rb_enc_vsprintf().
Definition at line 746 of file process.c.
References errno, flags, GET_THREAD(), wait_data::pid, rb_eArgError, rb_last_status_set(), rb_raise(), rb_thread_alone(), rb_thread_blocking_region(), rb_thread_call_without_gvl(), rb_thread_schedule(), rb_waitpid_blocking(), result, retry, RUBY_UBF_PROCESS, RUBY_VM_CHECK_INTS, st, st_delete(), st_foreach(), st_init_numtable(), st_insert(), wait_data::status, status, and wait_each().
Definition at line 7099 of file io.c.
References rb_write_error2(), and strlen().
Definition at line 7085 of file io.c.
References rb_io_t::fd, orig_stderr, rb_io_write(), rb_stderr, rb_str_new(), and RFILE.
Definition at line 237 of file signal.c.
References signo2signm().
Definition at line 133 of file hash.c.
References a, foreach_safe_arg::arg, foreach_safe_i(), func, foreach_safe_arg::func, rb_eRuntimeError, rb_raise(), st_foreach_check(), table, and foreach_safe_arg::tbl.
RUBY_EXTERN VALUE rb_argv0 |
RUBY_EXTERN VALUE rb_default_rs |
RUBY_EXTERN VALUE rb_fs |
RUBY_EXTERN VALUE rb_output_fs |
RUBY_EXTERN VALUE rb_output_rs |
RUBY_EXTERN VALUE rb_rs |
RUBY_EXTERN char* ruby_sourcefile |
RUBY_EXTERN int ruby_sourceline |