Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Typedefs | |
typedef VALUE | rb_enumerator_size_func(VALUE, VALUE, VALUE) |
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 *) |
Variables | |
RUBY_EXTERN VALUE | rb_fs |
RUBY_EXTERN VALUE | rb_output_fs |
RUBY_EXTERN VALUE | rb_rs |
RUBY_EXTERN VALUE | rb_default_rs |
RUBY_EXTERN VALUE | rb_output_rs |
RUBY_EXTERN VALUE | rb_argv0 |
#define INTEGER_PACK_2COMP 0x80 |
Definition at line 143 of file intern.h.
Referenced by rb_big_pack(), and rb_big_unpack().
#define INTEGER_PACK_BIG_ENDIAN |
#define INTEGER_PACK_LITTLE_ENDIAN |
#define INTEGER_PACK_LSWORD_FIRST 0x02 |
Definition at line 139 of file intern.h.
Referenced by rb_big_pack(), and rb_big_unpack().
#define INTEGER_PACK_NATIVE_BYTE_ORDER 0x40 |
Definition at line 142 of file intern.h.
Referenced by rb_big_pack(), and rb_big_unpack().
#define OBJ_INIT_COPY | ( | obj, | |
orig | |||
) | RB_OBJ_INIT_COPY(obj, orig) |
Definition at line 283 of file intern.h.
Referenced by rb_struct_init_copy().
#define rb_argv rb_get_argv() |
Definition at line 663 of file intern.h.
Referenced by ruby_set_argv().
#define rb_ary_new2 rb_ary_new_capa |
Definition at line 90 of file intern.h.
Referenced by ossl_generate_cb_2(), rb_ary_dup(), rb_ary_new(), rb_ary_new_from_args(), rb_const_list(), rb_get_values_at(), rb_hash_fetch_values(), rb_hash_values_at(), rb_iseq_parameters(), and rb_sym_all_symbols().
#define rb_ary_new3 rb_ary_new_from_args |
Definition at line 91 of file intern.h.
Referenced by BIGNUM_1c(), rb_Array(), rb_ary_to_ary(), rb_assoc_new(), rb_check_backtrace(), and rsock_ipaddr().
#define rb_ary_new4 rb_ary_new_from_values |
Definition at line 92 of file intern.h.
Referenced by rb_ary_resurrect(), rb_enum_values_pack(), and rb_scan_args().
#define rb_big2int | ( | x | ) | rb_big2long(x) |
#define rb_big2uint | ( | x | ) | rb_big2ulong(x) |
#define rb_check_arity rb_check_arity /* for ifdef */ |
Definition at line 298 of file intern.h.
Referenced by rb_ary_dig(), rb_clock_getres(), rb_clock_gettime(), rb_f_abort(), rb_f_exit(), rb_f_kill(), rb_file_s_absolute_path(), rb_file_s_expand_path(), rb_hash_dig(), and rb_obj_methods().
#define rb_check_frozen | ( | obj | ) | rb_check_frozen_inline(obj) |
Definition at line 271 of file intern.h.
Referenced by rb_const_remove(), rb_copy_generic_ivar(), rb_enc_associate_index(), rb_enc_set_index(), rb_io_taint_check(), rb_ivar_set(), rb_mod_remove_cvar(), rb_obj_init_copy(), rb_obj_remove_instance_variable(), rb_obj_taint(), rb_obj_untaint(), and rb_undefine_finalizer().
#define rb_check_frozen_internal | ( | obj | ) |
Definition at line 255 of file intern.h.
Referenced by rb_check_copyable(), and rb_check_frozen().
#define rb_check_trusted | ( | obj | ) | rb_check_trusted_inline(obj) |
#define rb_Complex1 | ( | x | ) | rb_Complex((x), INT2FIX(0)) |
#define rb_Complex2 | ( | x, | |
y | |||
) | rb_Complex((x), (y)) |
#define rb_complex_new1 | ( | x | ) | rb_complex_new((x), INT2FIX(0)) |
#define rb_complex_new2 | ( | x, | |
y | |||
) | rb_complex_new((x), (y)) |
#define rb_complex_raw1 | ( | x | ) | rb_complex_raw((x), INT2FIX(0)) |
Definition at line 177 of file intern.h.
Referenced by rb_big_pow().
#define rb_complex_raw2 | ( | x, | |
y | |||
) | rb_complex_raw((x), (y)) |
#define rb_enc_str_new_lit | ( | str, | |
enc | |||
) | rb_enc_str_new_static((str), rb_strlen_lit(str), (enc)) |
#define rb_enc_str_new_literal | ( | str, | |
enc | |||
) | rb_enc_str_new_lit(str, enc) |
#define rb_exc_new2 rb_exc_new_cstr |
#define rb_exc_new3 rb_exc_new_str |
Definition at line 244 of file intern.h.
Referenced by rb_enc_raise(), rb_fatal(), rb_raise(), and rb_vm_register_special_exception_str().
Definition at line 355 of file intern.h.
Referenced by rb_w32_select_with_thread().
Definition at line 353 of file intern.h.
Referenced by rb_thread_fd_select().
#define rb_fd_select | ( | n, | |
rfds, | |||
wfds, | |||
efds, | |||
timeout | |||
) | select((n), (rfds), (wfds), (efds), (timeout)) |
#define rb_hash_end | ( | h | ) | st_hash_end(h) |
#define rb_hash_uint | ( | h, | |
i | |||
) | st_hash_uint((h), (i)) |
#define rb_hash_uint32 | ( | h, | |
i | |||
) | st_hash_uint32((h), (i)) |
#define RB_OBJ_INIT_COPY | ( | obj, | |
orig | |||
) | ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1)) |
#define rb_Rational1 | ( | x | ) | rb_Rational((x), INT2FIX(1)) |
#define rb_Rational2 | ( | x, | |
y | |||
) | rb_Rational((x), (y)) |
#define rb_rational_new1 | ( | x | ) | rb_rational_new((x), INT2FIX(1)) |
#define rb_rational_new2 | ( | x, | |
y | |||
) | rb_rational_new((x), (y)) |
#define rb_rational_raw1 | ( | x | ) | rb_rational_raw((x), INT2FIX(1)) |
Definition at line 163 of file intern.h.
Referenced by rb_numeric_quo().
#define rb_rational_raw2 | ( | x, | |
y | |||
) | rb_rational_raw((x), (y)) |
#define RB_RESERVED_FD_P | ( | fd | ) | rb_reserved_fd_p(fd) |
#define rb_str_buf_cat rb_str_cat |
#define rb_str_buf_cat2 rb_str_cat_cstr |
#define rb_str_buf_new2 rb_str_buf_new_cstr |
#define rb_str_cat2 rb_str_cat_cstr |
#define rb_str_dup_frozen rb_str_new_frozen |
#define rb_str_new2 rb_str_new_cstr |
Definition at line 835 of file intern.h.
Referenced by Init_fiddle(), Init_openssl(), Init_ossl_config(), make_inspect(), ole_typedesc2val(), ossl_get_errors(), rb_exit(), rb_feature_provided(), rb_invalid_str(), rb_syserr_new(), rb_threadptr_signal_exit(), reg_enum_key(), reg_get_val(), rsock_ipaddr(), and VpAlloc().
#define rb_str_new3 rb_str_new_shared |
Definition at line 836 of file intern.h.
Referenced by rb_reg_quote().
#define rb_str_new4 rb_str_new_frozen |
Definition at line 837 of file intern.h.
Referenced by rsock_bsock_send().
#define rb_str_new5 rb_str_new_with_class |
#define rb_str_new_lit | ( | str | ) | rb_str_new_static((str), rb_strlen_lit(str)) |
#define rb_str_new_literal | ( | str | ) | rb_str_new_lit(str) |
#define rb_tainted_str_new2 rb_tainted_str_new_cstr |
Definition at line 839 of file intern.h.
Referenced by rb_dir_getwd_ospath().
#define rb_usascii_str_new2 rb_usascii_str_new_cstr |
Definition at line 841 of file intern.h.
Referenced by rb_fix2str().
#define rb_usascii_str_new_lit | ( | str | ) | rb_usascii_str_new_static((str), rb_strlen_lit(str)) |
#define rb_usascii_str_new_literal | ( | str | ) | rb_usascii_str_new_lit(str) |
#define rb_utf8_str_new_lit | ( | str | ) | rb_utf8_str_new_static((str), rb_strlen_lit(str)) |
#define rb_utf8_str_new_literal | ( | str | ) | rb_utf8_str_new_lit(str) |
#define RETURN_ENUMERATOR | ( | obj, | |
argc, | |||
argv | |||
) | RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0) |
Definition at line 234 of file intern.h.
Referenced by rb_ary_each(), rb_hash_delete_if(), rb_hash_keep_if(), rb_hash_reject_bang(), and rb_hash_select_bang().
#define RUBY_UBF_IO ((rb_unblock_function_t *)-1) |
#define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) |
#define UNLIMITED_ARGUMENTS (-1) |
Definition at line 44 of file intern.h.
Referenced by rb_ary_dig(), rb_f_kill(), rb_hash_dig(), and rb_vm_ifunc_new().
typedef fd_set rb_fdset_t |
CONSTFUNC | ( | void | rb_error_untrustedVALUE | ) |
CONSTFUNC | ( | VALUE | rb_dbl_cmpdouble, double | ) |
CONSTFUNC | ( | int | rb_is_const_idID | ) |
NORETURN | ( | void | rb_cmperrVALUE, VALUE | ) |
NORETURN | ( | void | rb_invalid_strconst char *, const char * | ) |
NORETURN | ( | void | rb_error_frozenconst char * | ) |
NORETURN | ( | void | rb_error_frozen_objectVALUE | ) |
NORETURN | ( | void | rb_error_arityint, int, int | ) |
NORETURN | ( | VALUE | rb_f_exitint, const VALUE * | ) |
NORETURN | ( | VALUE | rb_f_notimplementint argc, const VALUE *argv, VALUE obj | ) |
NORETURN | ( | void | rb_interruptvoid | ) |
NORETURN | ( | void | rb_jump_tagint | ) |
NORETURN | ( | VALUE | rb_mod_const_missingVALUE, VALUE | ) |
PRINTF_ARGS | ( | NORETURN(void rb_loaderror(const char *,...)) | , |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | NORETURN(void rb_loaderror_with_path(VALUE path, const char *,...)) | , |
2 | , | ||
3 | |||
) |
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 | ( | VALUE | rb_sprintfconst char *,..., |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | VALUE | rb_str_catfVALUE, const char *,..., |
2 | , | ||
3 | |||
) |
PUREFUNC | ( | int | rb_during_gcvoid | ) |
PUREFUNC | ( | VALUE | rb_obj_taintedVALUE | ) |
PUREFUNC | ( | VALUE | rb_class_inherited_pVALUE, VALUE | ) |
PUREFUNC | ( | size_t | rb_str_capacityVALUE | ) |
size_t rb_absint_numwords | ( | VALUE | val, |
size_t | word_numbits, | ||
size_t * | nlz_bits_ret | ||
) |
Definition at line 3364 of file bignum.c.
References CHAR_BIT, rb_absint_size(), and SIZE_MAX.
int rb_absint_singlebit_p | ( | VALUE | val | ) |
Definition at line 3428 of file bignum.c.
References BDIGIT, bdigit_roomof, BDIGITS, BIGDN, BIGLO, BIGNUM_LEN, dp, FIX2LONG, FIXNUM_P, numberof, POW2_P, and rb_to_int().
Referenced by rb_big_bit_length().
size_t rb_absint_size | ( | VALUE | val, |
int * | nlz_bits_ret | ||
) |
Definition at line 3229 of file bignum.c.
References BDIGIT, bdigit_roomof, BDIGITS, BIGDN, BIGLO, BIGNUM_LEN, dp, FIX2LONG, FIXNUM_P, numberof, and rb_to_int().
Referenced by rb_absint_numwords(), rb_big_bit_length(), and rb_num_to_uint().
Definition at line 1525 of file vm_method.c.
References cache_entry::defined_class, METHOD_VISI_UNDEF, NIL_P, rb_eTypeError, rb_frozen_class_p(), and rb_raise().
Referenced by rb_define_alias().
Definition at line 912 of file variable.c.
References ALLOC, rb_global_variable::block_trace, rb_global_variable::counter, rb_global_entry::id, trace_var::next, rb_eRuntimeError, rb_global_entry(), rb_id_table_insert(), rb_id_table_lookup(), rb_raise(), rb_global_variable::trace, rb_global_entry::var, and xfree().
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 argc, argv, OBJ_FREEZE, RARRAY_LENINT, rb_ary_subseq(), and RBASIC_CLEAR_CLASS.
Definition at line 1285 of file array.c.
References FIX2LONG, FIXNUM_P, len, NULL, NUM2LONG, Qfalse, Qnil, RARRAY_LEN, rb_ary_entry(), rb_ary_subseq(), rb_range_beg_len(), and rb_scan_args().
Definition at line 3792 of file array.c.
References NIL_P, Qnil, RARRAY_AREF, RARRAY_LEN, rb_check_array_type(), and rb_equal().
Definition at line 936 of file array.c.
References RARRAY_LEN.
Definition at line 3501 of file array.c.
Referenced by rb_threadptr_pending_interrupt_clear().
Definition at line 4055 of file array.c.
References INT2FIX, len, NIL_P, Qnil, rb_check_array_type(), and rb_exec_recursive_paired().
Definition at line 3006 of file array.c.
References Qnil, RARRAY_AREF, RARRAY_LEN, rb_ary_store(), rb_block_given_p(), rb_equal(), and rb_yield().
Definition at line 3059 of file array.c.
References ARY_INCREASE_LEN, len, MEMMOVE, Qnil, RARRAY_AREF, RARRAY_LEN, RARRAY_PTR_USE, and rb_ary_modify().
Definition at line 1930 of file array.c.
References RARRAY_LEN, and rb_ary_new2.
Referenced by rb_ary_sort().
Definition at line 1821 of file array.c.
References RETURN_SIZED_ENUMERATOR.
Definition at line 1215 of file array.c.
References len, Qnil, RARRAY_CONST_PTR, and RARRAY_LEN.
Referenced by rb_ary_aref(), rb_ary_at(), and rb_error_frozen_object().
void rb_ary_free | ( | VALUE | ) |
Definition at line 559 of file array.c.
References ARY_HEAP_PTR, ARY_HEAP_SIZE, ARY_OWNS_HEAP_P, RB_DEBUG_COUNTER_INC, RUBY_FUNC_EXPORTED, and ruby_sized_xfree().
Definition at line 409 of file array.c.
References rb_obj_freeze().
Definition at line 3975 of file array.c.
References Qfalse, Qtrue, RARRAY_AREF, RARRAY_LEN, and rb_equal().
void rb_ary_modify | ( | VALUE | ) |
Definition at line 319 of file array.c.
Referenced by rb_ary_delete_at(), rb_ary_resize(), rb_ary_reverse(), rb_ary_rotate(), rb_ary_sort_bang(), and rb_ary_store().
VALUE rb_ary_new | ( | void | ) |
Definition at line 499 of file array.c.
References RARRAY_EMBED_LEN_MAX, and rb_ary_new2.
Referenced by ole_methods_from_typeinfo(), ole_variant2val(), ossl_get_errors(), rb_call_end_proc(), rb_f_global_variables(), rb_f_untrace_var(), rb_insns_name_array(), rb_mod_ancestors(), rb_mod_included_modules(), rb_obj_instance_variables(), rb_scan_args(), and rb_thread_list().
VALUE rb_ary_new_capa | ( | long | capa | ) |
Definition at line 493 of file array.c.
Referenced by rb_hash_keys(), and rb_hash_values().
VALUE rb_ary_new_from_args | ( | long | n, |
... | |||
) |
Definition at line 505 of file array.c.
References ARY_SET, ARY_SET_LEN, and rb_ary_new2.
Referenced by rb_iseq_pathobj_new().
Definition at line 538 of file array.c.
References rb_ary_tmp_new_from_values(), and rb_cArray.
Definition at line 924 of file array.c.
References RARRAY_LEN.
Referenced by ole_typedesc2val(), ossl_get_errors(), rb_f_untrace_var(), rb_gc_register_mark_object(), rb_get_kwargs(), rb_get_values_at(), rb_hash_fetch_values(), rb_hash_values_at(), rb_insns_name_array(), rb_iseq_add_mark_object(), rb_iseq_parameters(), rb_mod_ancestors(), rb_mod_included_modules(), rb_scan_args(), rb_thread_list(), and rb_threadptr_pending_interrupt_enque().
Definition at line 3825 of file array.c.
References Qnil, RARRAY_AREF, RARRAY_LEN, rb_equal(), RB_TYPE_P, and T_ARRAY.
expands or shrinks ary to len elements.
expanded region will be filled with Qnil.
ary | an array |
len | new size |
Definition at line 1648 of file array.c.
References ARY_CAPA, ARY_MAX_SIZE, RARRAY_LEN, rb_ary_modify(), rb_eIndexError, and rb_raise().
Referenced by rb_get_values_at().
Definition at line 1940 of file array.c.
References RARRAY_CONST_PTR, RARRAY_LEN, rb_ary_new4, and rb_output_fs.
Definition at line 2224 of file array.c.
References RARRAY_LEN, RARRAY_PTR_USE, and rb_ary_modify().
Definition at line 2288 of file array.c.
References RARRAY_LEN, RARRAY_PTR, and rb_ary_modify().
Definition at line 437 of file array.c.
References ARY_EMBED_P, ARY_SHARED_P, Qfalse, Qtrue, and RARRAY.
Referenced by rb_get_expanded_load_path().
Definition at line 1019 of file array.c.
References RARRAY_LEN, and top.
Definition at line 2549 of file array.c.
References ary_sort_data::ary, rb_ary_dup(), and rb_ary_sort_bang().
Definition at line 2465 of file array.c.
References ARY_SHARED_P, assert, RARRAY_LEN, and rb_ary_modify().
Referenced by rb_ary_sort().
Definition at line 815 of file array.c.
References ARY_CAPA, ARY_MAX_SIZE, len, RARRAY_LEN, rb_ary_modify(), rb_eIndexError, and rb_raise().
Referenced by ossl_generate_cb_2(), rb_ary_delete(), rb_ary_delete_same(), and rb_sym_to_proc().
Definition at line 1231 of file array.c.
References Qnil, RARRAY_LEN, and rb_obj_class().
Referenced by rb_apply(), and rb_ary_aref().
VALUE rb_ary_tmp_new | ( | long | ) |
Definition at line 544 of file array.c.
Referenced by Init_vm_objects(), rb_gc_register_mark_object(), rb_get_kwargs(), rb_iseq_disasm(), and rb_sym_to_proc().
Definition at line 1553 of file array.c.
References NIL_P, rb_ary_new3, and rb_check_array_type().
Definition at line 639 of file array.c.
References rb_ary_new3.
Referenced by rb_big_divrem_normal(), and rsock_ipaddr().
Definition at line 1137 of file vm_method.c.
References METHOD_VISI_PUBLIC.
Referenced by rb_define_attr().
Definition at line 1224 of file variable.c.
References Qnil, and rb_ivar_lookup().
Referenced by rb_error_frozen_object(), rb_refinement_module_get_refined_class(), rb_singleton_class_internal_p(), and ruby_th_dtrace_setup().
Definition at line 2151 of file variable.c.
Definition at line 2201 of file variable.c.
VALUE rb_backref_get | ( | void | ) |
Definition at line 1229 of file vm.c.
Referenced by rb_f_global_variables().
void rb_backref_set | ( | VALUE | ) |
Definition at line 1235 of file vm.c.
Referenced by rb_reg_match2().
void rb_backtrace | ( | void | ) |
Definition at line 770 of file vm_backtrace.c.
double rb_big2dbl | ( | VALUE | ) |
Definition at line 5270 of file bignum.c.
Referenced by rb_big_mul(), and rb_float_pow().
long rb_big2long | ( | VALUE | ) |
Definition at line 5108 of file bignum.c.
Referenced by rb_num2long().
Definition at line 5062 of file bignum.c.
Referenced by rb_int2str().
unsigned long rb_big2ulong | ( | VALUE | ) |
Definition at line 5093 of file bignum.c.
Referenced by rb_num_to_uint().
Definition at line 6298 of file bignum.c.
References BDIGIT, RB_INTEGER_TYPE_P, rb_num_coerce_bit(), big_div_struct::yn, and big_div_struct::zds.
Definition at line 3002 of file bignum.c.
References BIGNUM_LEN.
Referenced by rb_big_abs(), rb_big_comp(), and rb_big_uminus().
Definition at line 5367 of file bignum.c.
References FIXNUM_P.
Referenced by rb_integer_float_cmp().
Definition at line 6080 of file bignum.c.
References div, FIX2LONG, FIXNUM_P, mod, RB_BIGNUM_TYPE_P, rb_int2big(), rb_intern, and rb_num_coerce_bin().
Definition at line 5492 of file bignum.c.
References BDIGIT, BDIGITS, BIGNUM_LEN, BIGNUM_SIGN, MEMCMP, Qfalse, Qtrue, and RB_BIGNUM_TYPE_P.
Definition at line 5801 of file bignum.c.
References BIGNUM_SIGN, FIX2LONG, and FIXNUM_P.
Referenced by rb_int_pred().
Definition at line 6048 of file bignum.c.
References FIX2LONG, FIXNUM_P, RB_BIGNUM_TYPE_P, rb_int2big(), and rb_num_coerce_bin().
Definition at line 5881 of file bignum.c.
References DBL2NUM, FIX2LONG, FIXNUM_P, rb_big2dbl(), RB_BIGNUM_TYPE_P, RB_FLOAT_TYPE_P, rb_int2big(), rb_num_coerce_bin(), and RFLOAT_VALUE.
Definition at line 6417 of file bignum.c.
References BDIGIT, RB_INTEGER_TYPE_P, rb_num_coerce_bit(), big_div_struct::yn, and big_div_struct::zds.
void rb_big_pack | ( | VALUE | val, |
unsigned long * | buf, | ||
long | num_longs | ||
) |
Definition at line 3197 of file bignum.c.
References INTEGER_PACK_2COMP, INTEGER_PACK_LSWORD_FIRST, INTEGER_PACK_NATIVE_BYTE_ORDER, and rb_integer_pack().
Definition at line 5772 of file bignum.c.
References BIGNUM_SIGN, FIX2LONG, and FIXNUM_P.
Referenced by rb_int_succ().
Definition at line 6189 of file bignum.c.
References BIGNUM_NEGATIVE_P, BIGZEROP, idPow, INT2FIX, RB_BIGNUM_TYPE_P, rb_complex_raw1, RB_FLOAT_TYPE_P, rb_funcall(), RFLOAT_VALUE, round(), and SIGNED_VALUE.
VALUE rb_big_unpack | ( | unsigned long * | buf, |
long | num_longs | ||
) |
Definition at line 3205 of file bignum.c.
References INTEGER_PACK_2COMP, INTEGER_PACK_LSWORD_FIRST, INTEGER_PACK_NATIVE_BYTE_ORDER, and rb_integer_unpack().
Definition at line 6511 of file bignum.c.
References BDIGIT, RB_INTEGER_TYPE_P, rb_num_coerce_bit(), big_div_struct::yn, and big_div_struct::zds.
VALUE rb_binding_new | ( | void | ) |
Definition at line 333 of file proc.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, GET_THREAD, and rb_vm_make_binding().
VALUE rb_block_proc | ( | void | ) |
Definition at line 780 of file proc.c.
Referenced by rb_f_trace_var(), and rb_method_call().
Definition at line 651 of file array.c.
References rb_check_convert_type_with_id(), and T_ARRAY.
Referenced by rb_Array(), rb_ary_assoc(), rb_ary_cmp(), rb_ary_to_ary(), and rb_yield_splat().
Definition at line 389 of file vm_eval.c.
References Qundef, and rb_check_funcall_default().
Referenced by rb_iseq_load_iseq(), and rb_threadptr_error_print().
Definition at line 722 of file hash.c.
References rb_check_convert_type_with_id(), and T_HASH.
Referenced by rb_Hash(), and rb_scan_args().
Definition at line 2246 of file string.c.
References rb_check_convert_type_with_id(), and T_STRING.
Referenced by rb_check_id(), rb_num_get_rounding_option(), rb_str_include_range_p(), rb_String(), and rb_threadptr_error_print().
Definition at line 444 of file variable.c.
References rb_class_path(), and rb_class_real().
Referenced by rb_any_to_s(), rb_const_warn_if_deprecated(), rb_cvar_get(), and rb_cvar_set().
Definition at line 295 of file variable.c.
References fc_result::path.
Referenced by rb_class_name(), rb_define_class_id_under(), and rb_thread_current_status().
Definition at line 319 of file variable.c.
References Qnil, RCLASS_IV_TBL, st_data_t, and st_lookup.
void rb_clear_constant_cache | ( | void | ) |
Definition at line 84 of file vm_method.c.
References INC_GLOBAL_CONSTANT_STATE.
Referenced by rb_const_remove().
void rb_clear_method_cache_by_class | ( | VALUE | ) |
Definition at line 90 of file vm_method.c.
References INC_GLOBAL_METHOD_STATE, Qundef, rb_cBasicObject, rb_class2name(), rb_cObject, rb_mKernel, and RUBY_DTRACE_HOOK.
int rb_cloexec_dup | ( | int | oldfd | ) |
Definition at line 283 of file io.c.
References rb_cloexec_fcntl_dupfd().
int rb_cloexec_dup2 | ( | int | oldfd, |
int | newfd | ||
) |
int rb_cloexec_fcntl_dupfd | ( | int | fd, |
int | minfd | ||
) |
Definition at line 362 of file io.c.
References errno, F_DUPFD, F_DUPFD_CLOEXEC, fcntl(), and rb_maygvl_fd_fix_cloexec().
Referenced by rb_cloexec_dup().
Definition at line 257 of file io.c.
References O_CLOEXEC, and rb_maygvl_fd_fix_cloexec().
Referenced by rb_file_load_ok(), and rb_pipe().
int rb_cloexec_pipe | ( | int | fildes[2] | ) |
Definition at line 2907 of file bignum.c.
References BIGNUM_SIGN, BIGZEROP, FIX2LONG, FIXNUM_P, INT2FIX, NIL_P, RB_BIGNUM_TYPE_P, rb_cmperr(), rb_funcall(), and RTEST.
Definition at line 2537 of file variable.c.
Referenced by Init_cparse(), rb_define_class(), and rb_define_module().
Definition at line 2543 of file variable.c.
Referenced by rb_const_remove(), rb_define_class_id_under(), and rb_define_module_id_under().
Definition at line 2531 of file variable.c.
Definition at line 2292 of file variable.c.
Referenced by generic_to_value(), Init_cparse(), Init_objspace(), rb_define_class(), and rb_define_module().
Definition at line 2298 of file variable.c.
Referenced by Init_cparse(), rb_define_class_id_under(), and rb_define_module_id_under().
Definition at line 2286 of file variable.c.
VALUE rb_const_list | ( | void * | ) |
Definition at line 2449 of file variable.c.
References st_table::num_entries, rb_ary_new2, and st_foreach_safe().
Referenced by rb_mod_constants().
Definition at line 2344 of file variable.c.
References ID2SYM, Qundef, rb_check_frozen, rb_clear_constant_cache(), rb_const_defined_at(), rb_const_lookup(), rb_id_table_delete(), rb_name_err_raise, RCLASS_CONST_TBL, val, and rb_const_entry_struct::value.
Referenced by rb_mod_remove_const().
Definition at line 2573 of file variable.c.
References NIL_P, PRIsVALUE, QUOTE_ID, rb_eTypeError, rb_raise(), and RCLASS_CONST_TBL.
Referenced by rb_autoload_str(), rb_define_class(), rb_define_class_id_under(), rb_define_const(), rb_define_module(), and rb_define_module_id_under().
Definition at line 1502 of file variable.c.
References FL_EXIVAR, FL_TEST, FL_UNSET, rb_check_frozen, and rb_free_generic_ivar().
Definition at line 4509 of file bignum.c.
References rb_cstr_to_inum().
Definition at line 3992 of file bignum.c.
References INT2FIX, NIL_P, NULL, rb_cstr_parse_inum(), and rb_invalid_str().
Referenced by rb_cstr2inum().
Definition at line 2932 of file variable.c.
Definition at line 2925 of file variable.c.
Definition at line 2906 of file variable.c.
References CVAR_LOOKUP, Qfalse, and Qtrue.
Referenced by rb_mod_remove_cvar().
Definition at line 2879 of file variable.c.
References CVAR_LOOKUP, id, ID2SYM, PRIsVALUE, QUOTE_ID, rb_class_name(), rb_name_err_raise, rb_warning(), RTEST, ruby_verbose, st_data_t, and autoload_data_i::value.
Definition at line 2846 of file variable.c.
References CVAR_LOOKUP, id, PRIsVALUE, QUOTE_ID, rb_class_name(), rb_warning(), RTEST, ruby_verbose, and st_data_t.
VALUE rb_dbl2big | ( | double | ) |
Definition at line 5214 of file bignum.c.
Referenced by rb_integer_float_cmp(), and rb_integer_float_eq().
void rb_define_alloc_func | ( | VALUE | , |
rb_alloc_func_t | |||
) |
Referenced by Init_Array(), Init_Dir(), Init_Encoding(), Init_fiddle_closure(), Init_fiddle_function(), Init_fiddle_handle(), Init_ossl_bn(), Init_ossl_cipher(), Init_ossl_digest(), Init_ossl_hmac(), Init_ossl_ns_spki(), Init_ossl_ocsp(), Init_ossl_x509attr(), Init_ossl_x509cert(), Init_ossl_x509crl(), Init_ossl_x509ext(), Init_ossl_x509req(), Init_ossl_x509revoked(), Init_psych_emitter(), Init_psych_parser(), Init_stringio(), Init_win32ole_method(), Init_win32ole_param(), Init_win32ole_record(), Init_win32ole_variant(), and rsock_init_addrinfo().
Definition at line 2939 of file variable.c.
VALUE rb_detach_process | ( | rb_pid_t | pid | ) |
Definition at line 1097 of file process.c.
References rb_thread_create().
VALUE rb_dir_getwd | ( | void | ) |
Definition at line 1114 of file dir.c.
References ENCINDEX_ASCII, ENCINDEX_US_ASCII, NULL, rb_dir_getwd_ospath(), rb_enc_associate_index(), rb_enc_to_index(), rb_filesystem_encoding(), and rb_str_conv_enc().
Definition at line 32 of file enum.c.
References Qnil, and rb_ary_new4.
Definition at line 450 of file enumerator.c.
References rb_enumeratorize_with_size().
VALUE rb_enumeratorize_with_size | ( | VALUE | , |
VALUE | , | ||
int | , | ||
const VALUE * | , | ||
rb_enumerator_size_func * | |||
) |
Definition at line 459 of file enumerator.c.
References rb_cLazy, rb_obj_is_kind_of(), and RTEST.
Referenced by rb_enumeratorize().
Definition at line 1507 of file vm_eval.c.
References GET_THREAD, OBJ_TAINTED, Qnil, RARRAY_CONST_PTR, RARRAY_LENINT, rb_funcallv(), rb_safe_level(), rb_set_safe_level_force(), RB_TYPE_P, RUBY_SAFE_LEVEL_MAX, T_STRING, TAG_NONE, TH_EXEC_TAG, TH_PUSH_TAG, and VAR_NOCLOBBERED.
void rb_exec_end_proc | ( | void | ) |
Definition at line 114 of file eval_jump.c.
References rb_thread_struct::ec, rb_execution_context_struct::errinfo, EXEC_TAG, GET_THREAD, rb_safe_level(), end_proc_data::safe, TAG_NONE, and TH_PUSH_TAG.
Definition at line 4709 of file thread.c.
Referenced by rb_invcmp(), and rb_io_puts().
Definition at line 4720 of file thread.c.
Referenced by rb_ary_cmp().
Definition at line 1055 of file string.c.
References rb_default_external_encoding(), and rb_external_str_new_with_enc().
Definition at line 1061 of file string.c.
References rb_default_external_encoding(), rb_external_str_new_with_enc(), and strlen().
VALUE rb_f_global_variables | ( | void | ) |
Definition at line 884 of file variable.c.
References rb_ary_new(), rb_backref_get(), rb_id_table_foreach(), and sym.
Definition at line 407 of file signal.c.
References FIX2INT, rb_check_arity, rb_sym2str, RSTRING_PTR, T_FIXNUM, T_STRING, T_SYMBOL, TYPE, and UNLIMITED_ARGUMENTS.
Definition at line 827 of file load.c.
References rb_require_safe(), and rb_safe_level().
Definition at line 458 of file sprintf.c.
References GETNTHARG, and rb_str_format().
Referenced by rb_io_printf().
Definition at line 688 of file variable.c.
References ALLOC, trace_var::func, trace_var::next, NIL_P, OBJ_TAINTED, rb_block_proc(), rb_eSecurityError, rb_f_untrace_var(), rb_global_entry(), rb_raise(), rb_scan_args(), rb_to_id(), rb_global_variable::trace, and rb_global_entry::var.
Definition at line 747 of file variable.c.
References rb_global_variable::block_trace, trace_var::data, id, trace_var::next, NIL_P, PRIsVALUE, QUOTE, QUOTE_ID, rb_ary_new(), rb_ary_push(), rb_check_id(), rb_id_table_lookup(), rb_name_error(), rb_name_error_str(), rb_scan_args(), trace_var::removed, and rb_global_entry::var.
Referenced by rb_f_trace_var().
void rb_fd_fix_cloexec | ( | int | fd | ) |
Definition at line 233 of file io.c.
References rb_maygvl_fd_fix_cloexec(), and rb_update_max_fd().
Definition at line 528 of file load.c.
References IS_RBEXT, Qnil, rb_file_expand_path_fast(), rb_get_path(), rb_str_new2, RSTRING_PTR, strchr(), and strrchr().
Referenced by rb_provided().
Definition at line 1631 of file cont.c.
References FIBER_TERMINATED_P, GetFiberPtr, Qfalse, and Qtrue.
Definition at line 1590 of file cont.c.
References rb_fiber_struct::cont, GetFiberPtr, rb_fiber_struct::prev, rb_raise(), ROOT_FIBER_CONTEXT, and rb_context_struct::type.
Definition at line 3823 of file file.c.
References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_f_require_relative(), and rb_file_s_absolute_path().
Definition at line 4317 of file file.c.
References FilePathStringValue, name, rb_enc_get(), RSTRING_LEN, and StringValueCStr.
Referenced by rb_f_require_relative().
Definition at line 3775 of file file.c.
References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_file_s_expand_path().
Definition at line 5910 of file io.c.
References FilePathValue.
Definition at line 3843 of file file.c.
References Qnil, rb_check_arity, rb_check_realpath(), rb_file_absolute_path(), and rb_realpath_internal().
Definition at line 3816 of file file.c.
References Qnil, rb_check_arity, and rb_file_expand_path().
Definition at line 1079 of file string.c.
References rb_external_str_new_with_enc(), and rb_filesystem_encoding().
Definition at line 1085 of file string.c.
References rb_external_str_new_with_enc(), rb_filesystem_encoding(), and strlen().
Referenced by rb_parser_compile_file(), and rb_parser_compile_string().
Definition at line 5965 of file file.c.
References rb_find_file_safe(), and rb_safe_level().
Definition at line 5893 of file file.c.
References rb_find_file_ext_safe(), and rb_safe_level().
Definition at line 5899 of file file.c.
References f, and StringValueCStr.
Referenced by rb_find_file_ext().
Definition at line 5971 of file file.c.
References f, and StringValueCStr.
Referenced by rb_find_file().
Definition at line 3417 of file numeric.c.
References buf, CHAR_BIT, FIX2LONG, neg, rb_bug(), rb_eArgError, rb_raise(), rb_usascii_str_new(), rb_usascii_str_new2, ruby_digitmap, SIZEOF_VALUE, and val.
Referenced by rb_int2str().
Definition at line 2273 of file rational.c.
References f.
Definition at line 2257 of file rational.c.
References f_abs.
Definition at line 2070 of file vm.c.
References GET_THREAD, and rb_thread_method_id_and_class().
void rb_free_generic_ivar | ( | VALUE | ) |
Definition at line 1133 of file variable.c.
References RUBY_FUNC_EXPORTED, st_data_t, st_delete, st_free_table, and xfree().
Referenced by rb_copy_generic_ivar().
void rb_gc | ( | void | ) |
Definition at line 6727 of file gc.c.
References rb_objspace.
Referenced by rb_fdopen(), rb_gc_for_fd(), rb_gc_start(), and rb_reg_region_copy().
Definition at line 2756 of file gc.c.
References finalizer_table, FL_FINALIZE, FL_SET, FL_TEST, rb_objspace, st_data_t, st_insert, and st_lookup.
size_t rb_gc_count | ( | void | ) |
Definition at line 6766 of file gc.c.
References rb_objspace::count, and rb_objspace::profile.
VALUE rb_gc_disable | ( | void | ) |
Definition at line 7389 of file gc.c.
References dont_gc, and rb_objspace.
VALUE rb_gc_enable | ( | void | ) |
void rb_gc_force_recycle | ( | VALUE | ) |
Definition at line 6175 of file gc.c.
References rb_objspace.
Referenced by rb_parser_free(), and rb_str_tmp_frozen_release().
Definition at line 6881 of file gc.c.
References rb_objspace.
void rb_gc_mark | ( | VALUE | ) |
Definition at line 4464 of file gc.c.
Referenced by rb_fiber_mark_self(), rb_gc_mark_node(), rb_iseq_mark(), rb_vm_mark(), and rb_vm_trace_mark_event_hooks().
void rb_gc_mark_maybe | ( | VALUE | ) |
Definition at line 4320 of file gc.c.
Referenced by rb_gc_mark_node(), rb_gvar_val_marker(), and rb_gvar_var_marker().
rb_alloc_func_t rb_get_alloc_func | ( | VALUE | ) |
Definition at line 681 of file vm_method.c.
References Check_Type, RCLASS_EXT, RCLASS_SUPER, T_CLASS, and UNDEF_ALLOC_FUNC.
Referenced by rb_marshal_define_compat().
Definition at line 2789 of file array.c.
References argc, FIX2LONG, FIXNUM_P, len, NUM2LONG, RARRAY_LEN, rb_ary_new2, rb_ary_push(), rb_ary_resize(), and rb_range_beg_len().
VALUE rb_gets | ( | void | ) |
Definition at line 8504 of file io.c.
References rb_default_rs, and rb_rs.
Definition at line 121 of file hash.c.
References hval, and rb_exec_recursive_outer().
Definition at line 831 of file hash.c.
References rb_hash_default_value(), RHASH, st_lookup, and val.
Referenced by pruby_get_instance(), rb_econv_open_opts(), rb_hash_dig(), rb_hash_values_at(), and rb_iseq_build_from_ary().
Definition at line 1616 of file hash.c.
References RHASH, and RHASH_ITER_LEV.
Referenced by pruby_register_instance(), rb_uninterruptible(), and rb_vm_add_root_module().
Definition at line 1119 of file hash.c.
References Qnil, Qundef, and rb_hash_delete_entry().
Referenced by pruby_unregister_instance().
Definition at line 1253 of file hash.c.
References RETURN_SIZED_ENUMERATOR.
st_index_t rb_hash_end | ( | st_index_t | ) |
Definition at line 917 of file hash.c.
Referenced by rb_hash_fetch_values().
Definition at line 385 of file hash.c.
References hash_foreach_arg::hash, RHASH, and RHASH_ITER_LEV.
Referenced by rb_hash_keys(), rb_hash_rassoc(), and rb_hash_values().
Definition at line 853 of file hash.c.
References Qnil, and rb_hash_lookup2().
Definition at line 842 of file hash.c.
References RHASH, st_lookup, and val.
Referenced by rb_hash_lookup(), and rb_io_extract_encoding_option().
VALUE rb_hash_new | ( | void | ) |
Definition at line 424 of file hash.c.
Referenced by Init_limits(), Init_sizeof(), Init_vm_objects(), rb_Hash(), rb_hash_new_with_size(), and rb_ident_hash_new().
Definition at line 1718 of file hash.c.
References INT2FIX, and RHASH_SIZE.
st_index_t rb_hash_start | ( | st_index_t | ) |
Definition at line 1506 of file random.c.
References st_hash_start().
Referenced by rb_dbl_long_hash().
Definition at line 475 of file hash.c.
References OBJ_WB_UNPROTECT.
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 100 of file symbol.c.
References is_notop_id, PRIsVALUE, rb_id2str(), rb_name_error(), sym, tAREF, and tASET.
int rb_integer_pack | ( | VALUE | val, |
void * | words, | ||
size_t | numwords, | ||
size_t | wordsize, | ||
size_t | nails, | ||
int | flags | ||
) |
Definition at line 3529 of file bignum.c.
References BDIGIT, bdigit_roomof, BDIGITS, BIGDN, BIGLO, BIGNUM_LEN, BIGNUM_POSITIVE_P, FIX2LONG, FIXNUM_P, numberof, RB_GC_GUARD, and rb_to_int().
Referenced by rb_big_pack().
VALUE rb_integer_unpack | ( | const void * | words, |
size_t | numwords, | ||
size_t | wordsize, | ||
size_t | nails, | ||
int | flags | ||
) |
Definition at line 3615 of file bignum.c.
Referenced by rb_big_unpack().
Definition at line 1532 of file io.c.
References rb_io_t::fd, fsync, binwrite_arg::ptr, rb_io_write(), and rb_w32_get_osfhandle().
Definition at line 5012 of file io.c.
References ECONV_NEWLINE_DECORATOR_MASK, rb_io_t::fd, FMODE_BINMODE, FMODE_TEXTMODE, GetOpenFile, 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 4501 of file io.c.
Referenced by rb_io_make_open_file().
Definition at line 1829 of file io.c.
References rb_io_t::fd, binwrite_arg::fptr, GetOpenFile, 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 3921 of file io.c.
References rb_io_t::fd, FMODE_TTY, GetOpenFile, rb_io_t::mode, rb_io_check_byte_readable(), rb_io_flush(), rb_stdout, RB_TYPE_P, READ_CHECK, and T_FILE.
Definition at line 7227 of file io.c.
References argc, NIL_P, Qnil, rb_io_write(), rb_lastline_get(), rb_output_fs, and rb_output_rs.
Definition at line 7166 of file io.c.
References Qnil, rb_f_sprintf(), and rb_io_write().
Definition at line 7399 of file io.c.
References argc, Qnil, rb_default_rs, rb_exec_recursive(), rb_io_write(), RB_TYPE_P, and T_STRING.
Referenced by rb_f_abort().
Definition at line 3982 of file io.c.
References FIX2INT, FIXNUM_P, GetOpenFile, NIL_P, Qnil, rb_io_check_byte_readable(), rb_str_new(), and SafeStringValue.
Definition at line 4017 of file io.c.
References FIX2UINT, FIXNUM_P, GetOpenFile, len, NIL_P, Qnil, rb_enc_uint_chr(), and rb_io_check_char_readable().
Definition at line 1510 of file io.c.
References rb_funcallv.
Referenced by rb_io_addstr(), rb_io_print(), rb_io_printf(), rb_io_puts(), and rb_parser_printf().
int rb_is_absolute_path | ( | const char * | ) |
Definition at line 5719 of file file.c.
References isdirsep.
Referenced by rb_file_expand_path_internal().
st_index_t rb_ivar_count | ( | VALUE | ) |
Definition at line 1566 of file variable.c.
References BUILTIN_TYPE, count, FL_EXIVAR, FL_TEST, gen_ivtbl::ivptr, st_table::num_entries, Qundef, RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, T_CLASS, T_MODULE, and T_OBJECT.
Definition at line 1374 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, Qfalse, Qtrue, Qundef, RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, st_data_t, st_lookup, T_CLASS, T_MODULE, T_OBJECT, and val.
Definition at line 1544 of file variable.c.
References BUILTIN_TYPE, SPECIAL_CONST_P, and T_OBJECT.
Referenced by rb_obj_instance_variables().
Definition at line 1210 of file variable.c.
References PRIsVALUE, Qnil, Qundef, QUOTE_ID, RB_DEBUG_COUNTER_INC, rb_ivar_lookup(), rb_warning(), RTEST, and ruby_verbose.
Referenced by rb_frozen_class_p(), rb_iv_get(), rb_method_name_error(), and rb_singleton_class_get().
Definition at line 1315 of file variable.c.
References BUILTIN_TYPE, ivar_update::iv_extended, ivar_update::iv_index_tbl, len, rb_check_frozen, RB_DEBUG_COUNTER_INC, T_OBJECT, and ivar_update::u.
Referenced by create_win32ole_variable(), rb_iv_set(), rb_key_err_new(), rb_name_class(), and rb_name_err_new().
VALUE rb_last_status_get | ( | void | ) |
void rb_last_status_set | ( | int | status, |
rb_pid_t | pid | ||
) |
Definition at line 485 of file process.c.
References GET_THREAD, rb_thread_struct::last_status, and rb_obj_alloc().
VALUE rb_lastline_get | ( | void | ) |
Definition at line 1241 of file vm.c.
Referenced by rb_io_print(), and rb_reg_match2().
void* rb_load_file | ( | const char * | ) |
Definition at line 2023 of file ruby.c.
References rb_load_file_str(), and rb_str_new_cstr().
void* rb_load_file_str | ( | VALUE | ) |
Definition at line 2030 of file ruby.c.
References rb_parser_load_file(), and rb_parser_new().
Referenced by rb_load_file().
void rb_load_protect | ( | VALUE | , |
int | , | ||
int * | |||
) |
Definition at line 1067 of file string.c.
References rb_external_str_new_with_enc(), and rb_locale_encoding().
Definition at line 1073 of file string.c.
References rb_external_str_new_with_enc(), rb_locale_encoding(), and strlen().
VALUE rb_make_backtrace | ( | void | ) |
Definition at line 813 of file vm_backtrace.c.
void rb_mark_tbl | ( | struct st_table * | ) |
Definition at line 4302 of file gc.c.
Referenced by rb_vm_mark().
void rb_marshal_define_compat | ( | VALUE | newclass, |
VALUE | oldclass, | ||
VALUE(*)(VALUE) | dumper, | ||
VALUE(*)(VALUE, VALUE) | loader | ||
) |
Definition at line 134 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.
void rb_mem_clear | ( | register VALUE * | , |
register | long | ||
) |
Definition at line 79 of file re.c.
Referenced by rb_num_get_rounding_option().
st_index_t rb_memhash | ( | const void * | ptr, |
long | len | ||
) |
Definition at line 1512 of file random.c.
References sip_hash13, and sip_uint64_t::u32.
Referenced by rb_dbl_long_hash(), and rb_str_hash().
Definition at line 1879 of file vm_method.c.
References FALSE, cache_entry::me, METHOD_ENTRY_BASIC, rb_method_entry(), and TRUE.
Referenced by rb_hash_default_value(), and rb_p().
Definition at line 1068 of file vm_method.c.
References BOUND_RESPONDS, rb_method_entry_struct::def, METHOD_ENTRY_VISI, METHOD_VISI_PRIVATE, METHOD_VISI_PROTECTED, NULL, rb_method_entry_without_refinements(), and VM_METHOD_TYPE_NOTIMPLEMENTED.
Definition at line 2075 of file proc.c.
References Qnil, rb_block_given_p(), rb_block_proc(), and rb_method_call_with_block().
Definition at line 2119 of file proc.c.
References GET_THREAD, OBJ_TAINTED, Qundef, rb_eTypeError, rb_raise(), rb_safe_level(), rb_set_safe_level_force(), METHOD::recv, RUBY_SAFE_LEVEL_MAX, and TypedData_Get_Struct.
Referenced by rb_method_call().
Definition at line 3025 of file variable.c.
References Qtrue, rb_scan_args(), and RTEST.
void* rb_mod_const_at | ( | VALUE | , |
void * | |||
) |
Definition at line 2414 of file variable.c.
References rb_id_table_foreach(), RCLASS_CONST_TBL, and st_init_numtable.
Referenced by rb_mod_const_of().
void* rb_mod_const_of | ( | VALUE | , |
void * | |||
) |
Definition at line 2427 of file variable.c.
References mod, rb_cObject, rb_mod_const_at(), and RCLASS_SUPER.
Referenced by rb_mod_constants().
Definition at line 2481 of file variable.c.
References Qtrue, rb_const_list(), rb_mod_const_of(), rb_scan_args(), and RTEST.
Definition at line 2413 of file proc.c.
Referenced by rb_obj_method_arity().
Definition at line 229 of file variable.c.
References fc_result::path.
Definition at line 2332 of file variable.c.
References id_for_var, rb_const_remove(), and rb_name_err_raise.
Definition at line 3066 of file variable.c.
References id, ID2SYM, id_for_var_message, rb_check_frozen, rb_cvar_defined(), rb_name_err_raise, RCLASS_IV_TBL, st_data_t, st_delete, and val.
void rb_must_asciicompat | ( | VALUE | ) |
Definition at line 2098 of file string.c.
References rb_eEncCompatError, rb_enc_asciicompat, rb_enc_get(), rb_enc_name, and rb_raise().
Referenced by rb_str_to_inum().
Definition at line 232 of file thread_sync.c.
References FL_TEST_RAW, GET_THREAD, GetMutexPtr, rb_thread_struct::interrupt_mask, rb_thread_struct::locking_mutex, MUTEX_ALLOW_TRAP, Qfalse, rb_eThreadError, rb_mutex_trylock(), rb_raise(), rb_vm_struct::sleeper, rb_thread_struct::status, sync_waiter::th, rb_mutex_struct::th, THREAD_STOPPED_FOREVER, TRAP_INTERRUPT_MASK, and rb_thread_struct::vm.
Referenced by rb_mutex_synchronize().
Definition at line 173 of file thread_sync.c.
References GetMutexPtr, Qfalse, Qtrue, and rb_mutex_struct::th.
VALUE rb_mutex_new | ( | void | ) |
Definition at line 161 of file thread_sync.c.
Definition at line 436 of file thread_sync.c.
References NIL_P, rb_ensure(), rb_mutex_unlock(), and rb_time_interval().
Definition at line 488 of file thread_sync.c.
References rb_ensure(), rb_mutex_lock(), and rb_mutex_unlock().
Definition at line 200 of file thread_sync.c.
References GET_THREAD, GetMutexPtr, Qfalse, Qtrue, sync_waiter::th, and rb_mutex_struct::th.
Referenced by rb_mutex_lock().
Definition at line 370 of file thread_sync.c.
References err, and GetMutexPtr.
Referenced by rb_mutex_sleep(), and rb_mutex_synchronize().
Definition at line 438 of file variable.c.
References rb_ivar_set().
Referenced by rb_define_class(), and rb_define_module_id().
Definition at line 3033 of file numeric.c.
References FIX2LONG, FIXABLE, FIXNUM_P, FLOAT_OUT_OF_RANGE, LONG2FIX, NIL_P, rb_eRangeError, rb_eTypeError, rb_num2long(), rb_raise(), rb_to_int(), RB_TYPE_P, RFLOAT_VALUE, T_BIGNUM, T_FALSE, T_FIXNUM, T_FLOAT, T_NIL, T_STRING, T_TRUE, and val.
Definition at line 473 of file numeric.c.
Referenced by rb_big_divmod(), rb_big_modulo(), rb_big_mul(), and rb_big_remainder().
Definition at line 4309 of file numeric.c.
Referenced by rb_big_and(), rb_big_or(), and rb_big_xor().
Definition at line 488 of file numeric.c.
Referenced by rb_float_gt().
Definition at line 1410 of file string.c.
References rb_funcall(), rb_obj_as_string_result(), RB_TYPE_P, and T_STRING.
Referenced by rb_inspect(), and rb_p().
Definition at line 3158 of file gc.c.
References FIXNUM_FLAG, FLONUM_P, LONG2NUM, nonspecial_obj_id, SIGNED_VALUE, SPECIAL_CONST_P, STATIC_SYM_P, and SYM2ID.
Definition at line 1634 of file variable.c.
References rb_ary_new(), and rb_ivar_foreach().
Definition at line 1338 of file proc.c.
References Qfalse, Qtrue, and rb_typeddata_is_kind_of().
Definition at line 116 of file proc.c.
References METHOD::klass, Qfalse, Qtrue, rb_proc_create(), and rb_typeddata_is_kind_of().
Definition at line 2421 of file proc.c.
References CLASS_OF, and rb_mod_method_arity().
Definition at line 1687 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, id, id_for_var, Qnil, Qundef, rb_check_frozen, RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, st_data_t, st_delete, st_lookup, T_CLASS, T_MODULE, T_OBJECT, and val.
Definition at line 1984 of file vm_method.c.
References CLASS_OF, and GET_THREAD.
Referenced by rb_respond_to().
Definition at line 432 of file variable.c.
References rb_path_to_class(), and rb_str_new_cstr().
Referenced by Init_md5(), Init_ossl_digest(), Init_rmd160(), and Init_sha1().
int rb_path_check | ( | const char * | ) |
Definition at line 5798 of file file.c.
References PATH_SEP_CHAR, strchr(), and strlen().
Definition at line 390 of file variable.c.
References id, fc_result::path, PRIsVALUE, QUOTE, rb_check_id_cstr(), rb_cObject, rb_eArgError, rb_enc_asciicompat, rb_enc_get(), rb_raise(), rb_str_subseq(), RSTRING_LEN, and RSTRING_PTR.
Referenced by rb_path2class().
int rb_pipe | ( | int * | pipes | ) |
Definition at line 6009 of file io.c.
References buf, dup2(), err, errno, FMODE_WRITABLE, memcmp(), NULL, rb_cloexec_open(), rb_cloexec_pipe(), rb_close_before_exec(), rb_gc_for_fd(), rb_update_max_fd(), and ruby_strtoul().
Definition at line 872 of file proc.c.
References check_argc, GET_THREAD, GetProcPtr, RARRAY_CONST_PTR, RARRAY_LEN, RB_GC_GUARD, rb_vm_invoke_proc(), and VM_BLOCK_HANDLER_NONE.
Referenced by rb_call_end_proc().
Definition at line 892 of file proc.c.
References GET_THREAD, GetProcPtr, and rb_vm_invoke_proc().
Definition at line 254 of file proc.c.
References GetProcPtr, rb_proc_t::is_lambda, Qfalse, and Qtrue.
Definition at line 2649 of file proc.c.
References rb_iterate().
int rb_provided | ( | const char * | ) |
Definition at line 522 of file load.c.
References rb_feature_provided().
unsigned long rb_random_ulong_limited | ( | VALUE | rnd, |
unsigned long | limit | ||
) |
Definition at line 1003 of file range.c.
References len, NUM2LONG, Qfalse, Qnil, Qtrue, rb_eRangeError, rb_raise(), and rb_range_values().
Referenced by rb_ary_aref(), and rb_get_values_at().
Definition at line 54 of file range.c.
References range, rb_cRange, and rb_obj_alloc().
Definition at line 979 of file range.c.
References EXCL, RANGE_BEG, RANGE_END, rb_cRange, rb_obj_is_kind_of(), and rb_respond_to().
Referenced by rb_range_beg_len().
Definition at line 1979 of file rational.c.
Definition at line 1994 of file rational.c.
Definition at line 1973 of file rational.c.
Definition at line 1988 of file rational.c.
Definition at line 1967 of file rational.c.
Definition at line 3202 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 2861 of file re.c.
Referenced by rb_reg_new_ary().
Definition at line 999 of file vm_method.c.
Definition at line 993 of file vm_method.c.
Definition at line 1045 of file load.c.
References JUMP_TAG, rb_errinfo(), rb_exc_raise(), rb_require_internal(), loaded_feature_searching::result, TAG_RAISE, and TAG_RETURN.
Referenced by rb_f_require(), rb_f_require_relative(), and rb_require().
int rb_reserved_fd_p | ( | int | fd | ) |
Referenced by rsock_init_sock().
Definition at line 1994 of file vm_method.c.
References FALSE, and rb_obj_respond_to().
Referenced by ossl_to_der_if_possible(), rb_range_values(), and rb_str_equal().
Definition at line 367 of file variable.c.
Definition at line 344 of file variable.c.
Referenced by rb_define_class_id_under(), and rb_define_module_id_under().
Definition at line 60 of file eval_jump.c.
References ALLOC, GET_THREAD, link(), list, and rb_thread_struct::top_wrapper.
const char* rb_sourcefile | ( | void | ) |
Definition at line 1269 of file vm.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, GET_THREAD, rb_control_frame_struct::iseq, rb_iseq_path(), rb_vm_get_ruby_level_next_cfp(), and RSTRING_PTR.
int rb_sourceline | ( | void | ) |
Definition at line 1283 of file vm.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, GET_THREAD, rb_vm_get_ruby_level_next_cfp(), and rb_vm_get_sourceline().
Definition at line 4515 of file bignum.c.
References rb_str_to_inum().
Definition at line 2900 of file string.c.
References rb_str_buf_append(), and StringValue.
Referenced by rb_keyword_error_new(), rb_load_fail(), rb_str_concat(), and rb_str_ellipsize().
Definition at line 2884 of file string.c.
References ENC_CODERANGE, ENC_CODERANGE_SET, ENCODING_GET, OBJ_INFECT, RSTRING_LEN, and RSTRING_PTR.
Referenced by rb_str_append().
Referenced by rb_str_buf_new_cstr().
Definition at line 2860 of file string.c.
References ALLOCA_N, buf, ENC_CODERANGE_7BIT, ENC_CODERANGE_VALID, ENCODING_GET, rb_enc_asciicompat, rb_enc_codelen(), rb_enc_from_index(), rb_enc_mbcput, rb_enc_mbmaxlen, and strlen().
VALUE rb_str_buf_new | ( | long | ) |
Definition at line 1282 of file string.c.
Referenced by rb_econv_append(), rb_reg_regsub(), rb_str_buf_new_cstr(), rb_str_concat_literals(), and rb_str_encode_ospath().
Definition at line 1298 of file string.c.
References rb_str_buf_cat(), rb_str_buf_new(), and strlen().
Referenced by rb_load_fail().
Definition at line 2746 of file string.c.
References rb_eArgError, and rb_raise().
Referenced by rb_str_cat_conv_enc_opts(), rb_str_concat(), rb_str_ellipsize(), rb_str_encode_ospath(), rb_str_initialize(), and rsock_inspect_sockaddr().
Referenced by make_inspect(), rb_iseq_disasm(), rb_iseq_disasm_insn(), rb_load_fail(), and rsock_inspect_sockaddr().
Definition at line 2756 of file string.c.
Referenced by rb_keyword_error_new().
Definition at line 3159 of file string.c.
References ENCODING_GET, lesser, memcmp(), rb_str_comparable(), and RSTRING_GETMEM.
Referenced by rb_iseq_pathobj_new().
Definition at line 3134 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.
Referenced by rb_str_cmp(), and rb_str_hash_cmp().
Definition at line 2999 of file string.c.
References ALLOCA_N, buf, ENC_CODERANGE, ENC_CODERANGE_7BIT, ENC_CODERANGE_SET, ENC_CODERANGE_VALID, ENCINDEX_ASCII, ENCINDEX_US_ASCII, FIX2LONG, FIXNUM_P, len, ONIGERR_INVALID_CODE_POINT_VALUE, ONIGERR_TOO_BIG_WIDE_CHAR_VALUE, rb_enc_associate_index(), rb_enc_codelen(), rb_enc_mbcput, rb_enc_name, rb_enc_precise_mbclen(), rb_enc_to_index(), rb_eRangeError, RB_INTEGER_TYPE_P, rb_num_to_uint(), rb_raise(), rb_str_append(), rb_str_cat(), rb_str_resize(), RSTRING_LEN, RSTRING_PTR, and STR_ENC_GET.
Referenced by make_inspect(), rb_iseq_disasm(), and rb_iseq_disasm_insn().
Definition at line 4473 of file string.c.
References RSTRING_LEN, and RSTRING_PTR.
Definition at line 5920 of file string.c.
References len, rb_enc_from_index(), and rb_enc_get_index().
Definition at line 1488 of file string.c.
Referenced by rb_str_conv_enc_opts(), rb_str_times(), rb_vm_set_progname(), rsock_ipaddr(), and ruby_set_script_name().
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 9575 of file string.c.
References 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(), RSTRING_LEN, and RSTRING_PTR.
Definition at line 232 of file file.c.
References gzfile::enc, ENCINDEX_ASCII, ENCINDEX_UTF_8, ENCODING_GET, FALSE, len, MBCLEN_CHARFOUND_LEN, MBCLEN_CHARFOUND_P, NULL, gzfile::path, rb_enc_associate(), rb_enc_from_index(), rb_enc_mbc_to_codepoint, rb_enc_precise_mbclen(), rb_filesystem_encindex(), rb_str_buf_new(), rb_str_cat(), rb_str_conv_enc(), rb_str_modify_expand(), rb_str_set_len(), rb_utf8_encoding(), RSTRING_LEN, and RSTRING_PTR.
Referenced by rb_require_internal().
Definition at line 3214 of file string.c.
References Qfalse, Qtrue, rb_equal(), rb_respond_to(), RB_TYPE_P, and T_STRING.
void rb_str_free | ( | VALUE | ) |
Definition at line 1316 of file string.c.
References FL_TEST, NULL, RB_DEBUG_COUNTER_INC, RB_DEBUG_COUNTER_INC_IF, rb_vm_fstring_table(), RSTRING_FSTR, RUBY_FUNC_EXPORTED, ruby_sized_xfree(), st_data_t, st_delete, STR_EMBED_P, STR_HEAP_PTR, STR_HEAP_SIZE, STR_NOFREE, and STR_SHARED.
Definition at line 2549 of file string.c.
References OBJ_FROZEN, rb_obj_freeze(), rb_str_resize(), and RSTRING_LEN.
st_index_t rb_str_hash | ( | VALUE | ) |
Definition at line 3094 of file string.c.
References ENC_CODERANGE_7BIT, ENCODING_GET, rb_enc_str_coderange(), rb_memhash(), RSTRING_LEN, and RSTRING_PTR.
Definition at line 3104 of file string.c.
References memcmp(), rb_str_comparable(), and RSTRING_GETMEM.
Definition at line 5813 of file string.c.
References buf, CHAR_ESC_LEN, ENCODING_GET, and rb_enc_from_index().
Referenced by rb_str_locktmp_ensure().
void rb_str_modify | ( | VALUE | ) |
Definition at line 2046 of file string.c.
Referenced by rb_str_cat_conv_enc_opts(), and rb_str_vcatf().
void rb_str_modify_expand | ( | VALUE | , |
long | |||
) |
Definition at line 2054 of file string.c.
References LONG_MAX, rb_eArgError, rb_raise(), RSTRING_LEN, and TERM_LEN.
Referenced by rb_str_encode_ospath(), and ruby_init_loadpath_safe().
Definition at line 737 of file string.c.
Referenced by asn1str_to_str(), rb_compile_cstr(), rb_enc_str_new(), rb_exc_new(), rb_execarg_commandline(), rb_io_ungetbyte(), rb_iseq_disasm(), rb_iseq_disasm_insn(), rb_parser_compile_cstr(), rb_parser_printf(), rb_reg_quote(), rb_str_concat_literals(), rb_tainted_str_new(), rb_usascii_str_new(), rsock_ipaddr(), ruby_init_loadpath(), and ruby_init_loadpath_safe().
Definition at line 771 of file string.c.
Referenced by rb_econv_open_exc(), rb_iseq_defined_string(), rb_load_file(), rb_parser_dump_tree(), rb_parser_fatal(), rb_parser_trace_lex_state(), rb_path2class(), rb_require(), rb_str_split(), rb_tainted_str_new_cstr(), rb_throw_obj(), rb_usascii_str_new_cstr(), rb_utf8_str_new_cstr(), ruby_eval_string_from_file(), and ruby_eval_string_from_file_protect().
Definition at line 1158 of file string.c.
References OBJ_FROZEN.
Referenced by rb_econv_substr_append(), rb_str_include_range_p(), and rb_str_subseq().
Definition at line 1149 of file string.c.
Referenced by rb_str_subseq().
Definition at line 1265 of file string.c.
Referenced by rb_str_ellipsize(), rb_str_subseq(), and rb_str_succ().
Definition at line 1854 of file string.c.
References LONG_MAX, rb_eArgError, rb_enc_check_str(), rb_enc_mbminlen, rb_raise(), RSTRING_GETMEM, and StringValue.
Definition at line 2644 of file string.c.
References rb_eArgError, and rb_raise().
Referenced by rb_econv_append(), rb_reg_quote(), rb_str_concat(), rb_str_freeze(), ruby_init_loadpath_safe(), and VpAlloc().
Definition at line 1494 of file string.c.
References RSTRING_LEN, and RUBY_DTRACE_CREATE_HOOK.
Referenced by rb_str_concat_literals().
str | the string to be scrubbed |
repl | the replacement character |
Definition at line 9638 of file string.c.
References STR_ENC_GET.
void rb_str_set_len | ( | VALUE | , |
long | |||
) |
Definition at line 2627 of file string.c.
References RString::capa, and TERM_LEN.
Referenced by rb_econv_append(), rb_file_expand_path_internal(), rb_str_encode_ospath(), and ruby_init_loadpath_safe().
Definition at line 9469 of file string.c.
References NIL_P, PRIsVALUE, rb_eTypeError, rb_id2str, rb_raise(), RB_TYPE_P, T_STRING, and val.
Definition at line 7602 of file string.c.
References rb_str_new_cstr(), and StringValue.
long rb_str_sublen | ( | VALUE | , |
long | |||
) |
Definition at line 2395 of file string.c.
Referenced by rb_reg_match2().
char* rb_str_subpos | ( | VALUE | , |
long | , | ||
long * | |||
) |
Definition at line 2430 of file string.c.
References RSTRING_LEN, RSTRING_PTR, and STR_ENC_GET.
Definition at line 2406 of file string.c.
References len, RB_GC_GUARD, rb_str_new_frozen(), rb_str_new_shared(), rb_str_new_with_class(), RSTRING, RSTRING_LEN, RSTRING_PTR, SHARABLE_SUBSTRING_P, STR_EMBEDDABLE_P, and TERM_LEN.
Referenced by rb_path_to_class(), rb_reg_regsub(), and rb_str_ellipsize().
Definition at line 4030 of file string.c.
References rb_str_new_with_class(), RSTRING_LEN, and RSTRING_PTR.
Definition at line 1896 of file string.c.
References INT2FIX, len, and rb_str_dup().
Definition at line 4226 of file bignum.c.
References len, NIL_P, NULL, rb_cstr_parse_inum(), rb_must_asciicompat(), RSTRING_GETMEM, and StringValue.
Referenced by fun1(), and rb_str2inum().
Definition at line 2610 of file string.c.
References FL_TEST, FL_UNSET, rb_eRuntimeError, rb_raise(), RUBY_FUNC_EXPORTED, and STR_TMPLOCK.
Referenced by rb_str_locktmp_ensure().
Definition at line 1465 of file sprintf.c.
References __SSTR, __SWR, f, rb_str_capacity(), rb_str_modify(), RBASIC, RBASIC_CLEAR_CLASS, RSTRING_END, and StringValue.
Referenced by rb_parser_fatal(), rb_parser_printf(), and rb_str_catf().
Definition at line 599 of file struct.c.
References RARRAY_CONST_PTR, RARRAY_LENINT, and rb_class_new_instance().
Definition at line 896 of file struct.c.
Referenced by rb_vm_opt_struct_aref().
Definition at line 923 of file struct.c.
Referenced by rb_vm_opt_struct_aset().
Definition at line 410 of file struct.c.
References RString::ary.
Definition at line 425 of file struct.c.
References RString::ary.
VALUE rb_struct_define_without_accessor | ( | const char * | , |
VALUE | , | ||
rb_alloc_func_t | , | ||
... | |||
) |
VALUE rb_struct_define_without_accessor_under | ( | VALUE | outer, |
const char * | class_name, | ||
VALUE | super, | ||
rb_alloc_func_t | alloc, | ||
... | |||
) |
Definition at line 65 of file struct.c.
References RARRAY_LEN, rb_eTypeError, rb_obj_class(), rb_raise(), rb_struct_s_members(), and RSTRUCT_LEN.
Definition at line 605 of file struct.c.
References N_REF_FUNC, rb_long2int, and size.
Definition at line 51 of file struct.c.
Referenced by rb_struct_members().
Definition at line 1130 of file struct.c.
References LONG2FIX, and RSTRUCT_LEN.
VALUE rb_sym_all_symbols | ( | void | ) |
Definition at line 806 of file symbol.c.
References RString::ary, and rb_ary_new2.
int rb_sym_interned_p | ( | VALUE | ) |
int rb_symname_p | ( | const char * | ) |
Definition at line 190 of file symbol.c.
References rb_ascii8bit_encoding(), and rb_enc_symname_p().
void rb_syswait | ( | rb_pid_t | pid | ) |
Definition at line 3891 of file process.c.
References rb_waitpid().
Definition at line 854 of file string.c.
References OBJ_TAINT, and rb_str_new().
Definition at line 872 of file string.c.
References OBJ_TAINT, and rb_str_new_cstr().
int rb_thread_alone | ( | void | ) |
Definition at line 3273 of file thread.c.
Referenced by rb_thread_stop().
void rb_thread_check_ints | ( | void | ) |
Definition at line 1219 of file thread.c.
References GET_THREAD, and RUBY_VM_CHECK_INTS_BLOCKING.
Definition at line 831 of file thread.c.
Referenced by rb_detach_process().
VALUE rb_thread_current | ( | void | ) |
Definition at line 2494 of file thread.c.
References GET_THREAD.
Referenced by VpGetPrecLimit(), and VpGetRoundMode().
void rb_thread_fd_close | ( | int | ) |
Definition at line 2219 of file thread.c.
References rb_notify_fd_close(), and rb_thread_schedule().
int rb_thread_fd_select | ( | int | , |
rb_fdset_t * | , | ||
rb_fdset_t * | , | ||
rb_fdset_t * | , | ||
struct timeval * | |||
) |
Definition at line 3789 of file thread.c.
References rb_fd_resize, rb_thread_sleep_forever(), and rb_thread_wait_for().
int rb_thread_interrupted | ( | VALUE | thval | ) |
Definition at line 1237 of file thread.c.
References RUBY_VM_INTERRUPTED.
Definition at line 3013 of file thread.c.
Referenced by VpGetPrecLimit(), and VpGetRoundMode().
Definition at line 3148 of file thread.c.
References OBJ_FROZEN, and rb_error_frozen().
VALUE rb_thread_main | ( | void | ) |
Definition at line 2515 of file thread.c.
References GET_THREAD.
Definition at line 2417 of file thread.c.
References rb_thread_schedule(), and rb_thread_wakeup().
void rb_thread_schedule | ( | void | ) |
Definition at line 1266 of file thread.c.
References GET_THREAD.
Referenced by rb_thread_fd_close(), and rb_thread_run().
void rb_thread_sleep | ( | int | ) |
Definition at line 1243 of file thread.c.
References INT2FIX, rb_thread_wait_for(), and rb_time_timeval().
void rb_thread_sleep_deadly | ( | void | ) |
void rb_thread_sleep_forever | ( | void | ) |
Definition at line 1160 of file thread.c.
References thread_debug.
Referenced by rb_thread_fd_select().
VALUE rb_thread_stop | ( | void | ) |
Definition at line 2441 of file thread.c.
References Qnil, rb_eThreadError, rb_raise(), rb_thread_alone(), and rb_thread_sleep_deadly().
void rb_thread_wait_fd | ( | int | ) |
Definition at line 3776 of file thread.c.
Referenced by rb_io_read_check().
void rb_thread_wait_for | ( | struct timeval | ) |
Definition at line 1205 of file thread.c.
References GET_THREAD.
Referenced by rb_thread_fd_select(), and rb_thread_sleep().
Definition at line 2370 of file thread.c.
References rb_eThreadError, rb_raise(), rb_thread_wakeup_alive(), and RTEST.
Referenced by rb_thread_run().
Definition at line 2379 of file thread.c.
Referenced by rb_thread_wakeup().
Definition at line 2299 of file time.c.
Referenced by rb_mutex_sleep().
VALUE rb_time_new | ( | time_t | , |
long | |||
) |
Definition at line 2143 of file time.c.
References NDIV, rb_eRangeError, and rb_raise().
Definition at line 3718 of file time.c.
References GetTimeval, and rb_warn().
Definition at line 2322 of file time.c.
References GetTimeval, and IsTimeval.
Definition at line 2305 of file time.c.
Referenced by rb_thread_sleep().
void rb_timespec_now | ( | struct timespec * | ) |
Definition at line 1749 of file time.c.
References clock_gettime(), CLOCK_REALTIME, gettimeofday(), rb_sys_fail(), timespec::tv_nsec, timeval::tv_sec, timespec::tv_sec, and timeval::tv_usec.
void rb_trap_exec | ( | void | ) |
void rb_trap_exit | ( | void | ) |
Definition at line 1024 of file signal.c.
References rb_vm_struct::cmd, GET_VM, and rb_vm_struct::trap_list.
Definition at line 1172 of file vm_method.c.
References cache_entry::me, NIL_P, object_id, rb_eTypeError, rb_frozen_class_p(), rb_id2name(), rb_raise(), and rb_warn().
void rb_undef_alloc_func | ( | VALUE | ) |
Definition at line 675 of file vm_method.c.
References rb_define_alloc_func(), and UNDEF_ALLOC_FUNC.
Referenced by Init_Binding(), Init_ISeq(), Init_ossl_engine(), Init_Proc(), Init_VM(), and InitVM_Struct().
Definition at line 2653 of file gc.c.
References finalizer_table, FL_FINALIZE, FL_UNSET, rb_check_frozen, rb_objspace, st_data_t, and st_delete.
void rb_update_max_fd | ( | int | fd | ) |
Definition at line 191 of file io.c.
References stat.
Referenced by rb_fd_fix_cloexec(), rb_file_load_ok(), rb_pipe(), and rsock_init_sock().
Definition at line 743 of file string.c.
References ENC_CODERANGE_7BIT, ENCODING_CODERANGE_SET, rb_str_new(), and rb_usascii_encindex().
Referenced by rb_fix2str(), and rb_str_ellipsize().
Definition at line 778 of file string.c.
References ENC_CODERANGE_7BIT, ENCODING_CODERANGE_SET, rb_str_new_cstr(), and rb_usascii_encindex().
Referenced by rb_locale_charmap().
Definition at line 751 of file string.c.
Referenced by ruby_init_loadpath_safe().
Definition at line 786 of file string.c.
References rb_enc_associate_index(), rb_str_new_cstr(), and rb_utf8_encindex().
int rb_uv_to_utf8 | ( | char | [6], |
unsigned | long | ||
) |
Definition at line 1893 of file pack.c.
References castchar, rb_eRangeError, rb_raise(), and UNREACHABLE.
Definition at line 1446 of file sprintf.c.
References NULL, and rb_enc_vsprintf().
Referenced by rb_fatal(), rb_name_error(), rb_name_error_str(), and rb_raise().
rb_pid_t rb_waitpid | ( | rb_pid_t | pid, |
int * | status, | ||
int | flags | ||
) |
Definition at line 902 of file process.c.
Referenced by rb_syswait().
void rb_write_error | ( | const char * | ) |
Definition at line 7574 of file io.c.
References rb_write_error2(), and strlen().
void rb_write_error2 | ( | const char * | , |
long | |||
) |
Definition at line 316 of file hash.c.
References foreach_safe_arg::arg, foreach_safe_arg::func, st_foreach_check(), and foreach_safe_arg::tbl.
Referenced by rb_const_list().
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 |