Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

Ruby Interpretor Interface
[Ruby]


Defines

#define RUBY_METHOD_FUNC(func)   ((VALUE (*)(ANYARGS))func)

Functions

void rb_obj_infect (VALUE, VALUE)
void rb_glob (char *, void(*(const char *, VALUE), VALUE))
void rb_globi (char *, void(*(const char *, VALUE), VALUE))
VALUE rb_define_class (const char *, VALUE)
VALUE rb_define_module (const char *)
VALUE rb_define_class_under (VALUE, const char *, VALUE)
VALUE rb_define_module_under (VALUE, const char *)
void rb_include_module (VALUE, VALUE)
void rb_extend_object (VALUE, VALUE)
void rb_define_variable (const char *, VALUE *)
void rb_define_virtual_variable (const char *, VALUE(*(ANYARGS), void(*)(ANYARGS)))
void rb_define_hooked_variable (const char *, VALUE *, VALUE(*(ANYARGS), void(*)(ANYARGS)))
void rb_define_readonly_variable (const char *, VALUE *)
void rb_define_const (VALUE, const char *, VALUE)
void rb_define_global_const (const char *, VALUE)
void rb_define_method (VALUE, const char *, VALUE(*(ANYARGS), int))
void rb_define_module_function (VALUE, const char *, VALUE(*(ANYARGS), int))
void rb_define_global_function (const char *, VALUE(*(ANYARGS), int))
void rb_undef_method (VALUE, const char *)
void rb_define_alias (VALUE, const char *, const char *)
void rb_define_attr (VALUE, const char *, int, int)
void rb_global_variable (VALUE *)
void rb_gc_register_address (VALUE *)
void rb_gc_unregister_address (VALUE *)
ID rb_intern (const char *)
char * rb_id2name (ID)
ID rb_to_id (VALUE)
char * rb_class2name (VALUE)
char * rb_obj_classname (VALUE)
void rb_p (VALUE)
VALUE rb_eval_string (const char *)
VALUE rb_eval_string_protect (const char *, int *)
VALUE rb_eval_string_wrap (const char *, int *)
VALUE rb_funcall (VALUE, ID, int,...)
VALUE rb_funcall2 (VALUE, ID, int, const VALUE *)
VALUE rb_funcall3 (VALUE, ID, int, const VALUE *)
int rb_scan_args (int, const VALUE *, const char *,...)
VALUE rb_call_super (int, const VALUE *)
VALUE rb_gv_set (const char *, VALUE)
VALUE rb_gv_get (const char *)
VALUE rb_iv_get (VALUE, const char *)
VALUE rb_iv_set (VALUE, const char *, VALUE)
VALUE rb_equal (VALUE, VALUE)
void rb_raise (VALUE, const char *,...)
void rb_fatal (const char *,...)
void rb_bug (const char *,...)
void rb_sys_fail (const char *)
void rb_iter_break (void)
void rb_exit (int)
void rb_notimplement (void)
void rb_warning (const char *,...)
void rb_sys_warning (const char *,...)
void rb_warn (const char *,...)
VALUE rb_each (VALUE)
VALUE rb_yield (VALUE)
VALUE rb_yield_values (int n,...)
VALUE rb_yield_splat (VALUE)
int rb_block_given_p (void)
VALUE rb_iterate (VALUE(*(VALUE), VALUE, VALUE(*)(ANYARGS), VALUE))
VALUE rb_rescue (VALUE(*(ANYARGS), VALUE, VALUE(*)(ANYARGS), VALUE))
VALUE rb_rescue2 (VALUE(*(ANYARGS), VALUE, VALUE(*)(ANYARGS), VALUE,...))
VALUE rb_ensure (VALUE(*(ANYARGS), VALUE, VALUE(*)(ANYARGS), VALUE))
VALUE rb_catch (const char *, VALUE(*(ANYARGS), VALUE))
void rb_throw (const char *, VALUE)
VALUE rb_require (const char *)
void ruby_init (void)
void ruby_options (int, char **)
void ruby_run (void)

Variables

RUBY_EXTERN VALUE ruby_verbose
RUBY_EXTERN VALUE ruby_debug


Define Documentation

#define RUBY_METHOD_FUNC func   )     ((VALUE (*)(ANYARGS))func)
 

Definition at line 537 of file ruby.h.


Function Documentation

int rb_block_given_p void   ) 
 

Definition at line 4646 of file eval.c.

References FRAME::iter, ITER_CUR, Qfalse, Qtrue, ruby_block, and ruby_frame.

Referenced by dir_s_chdir(), dir_s_open(), enum_all(), enum_any(), enum_collect(), enum_grep(), enum_max(), enum_min(), enum_zip(), env_delete_m(), env_fetch(), env_update_i(), is_defined(), method_call(), p_gid_switch(), p_uid_switch(), proc_alloc(), proc_invoke(), rb_ary_collect(), rb_ary_delete(), rb_ary_fetch(), rb_ary_fill(), rb_ary_initialize(), rb_ary_zip(), rb_call0(), rb_eval(), rb_f_at_exit(), rb_f_fork(), rb_f_send(), rb_hash_delete(), rb_hash_fetch(), rb_hash_initialize(), rb_hash_update(), rb_io_s_new(), rb_io_s_open(), rb_io_s_popen(), rb_iterator_p(), rb_mod_initialize(), rb_need_block(), rb_obj_call_init(), rb_scan_args(), rb_str_scan(), rb_str_sub_bang(), rb_struct_s_def(), rb_thread_initialize(), rb_thread_start(), sort_internal(), specific_eval(), str_gsub(), and zip_i().

void rb_bug const char *  ,
... 
 

This function does not return.

Definition at line 193 of file error.c.

References args, err_position(), ruby_platform, ruby_release_date, ruby_version, and va_init_list.

Referenced by arg_prepend(), assign(), class_prefix(), classname(), error_handle(), garbage_collect(), gc_mark_children(), obj_free(), prep_path(), rb_call0(), rb_check_type(), rb_eval(), rb_kcode(), rb_mod_modfunc(), rb_reg_kcode_m(), rb_singleton_class(), rb_struct_eql(), rb_struct_equal(), rb_struct_s_members(), rb_sys_fail(), rb_thread_restore_context(), rb_thread_schedule(), sighandler(), and unknown_node().

VALUE rb_call_super int  ,
const VALUE
 

Definition at line 6081 of file eval.c.

References CSTAT_SUPER, iter::iter, ITER_NOT, ITER_PRE, FRAME::last_class, FRAME::last_func, method_missing(), FRAME::orig_func, POP_ITER, PUSH_ITER, rb_call(), rb_id2name(), rb_name_error(), RCLASS, ruby_frame, ruby_iter, FRAME::self, and VALUE.

Referenced by exit_initialize(), name_err_initialize(), rb_eval(), and syserr_initialize().

VALUE rb_catch const char *  ,
VALUE(*(ANYARGS), VALUE
 

char* rb_class2name VALUE   ) 
 

Definition at line 293 of file variable.c.

References rb_class_name(), RSTRING, and VALUE.

Referenced by cvar_override_check(), inspect_struct(), method_inspect(), method_missing(), prec_induced_from(), print_undef(), proc_invoke(), pst_inspect(), r_object0(), rb_add_method(), rb_call0(), rb_class_path(), rb_const_get_0(), rb_cvar_get(), rb_define_class_under(), rb_define_module_under(), rb_io_s_new(), rb_mod_remove_const(), rb_mod_remove_cvar(), rb_obj_classname(), rb_struct_inspect(), rb_thread_s_new(), rb_undef(), remove_method(), umethod_bind(), uninitialized_constant(), and w_extended().

void rb_define_alias VALUE  ,
const char *  ,
const char * 
 

Definition at line 923 of file class.c.

References rb_alias(), rb_intern(), and VALUE.

Referenced by Init_Array(), Init_IO(), and Init_process().

void rb_define_attr VALUE  ,
const char *  ,
int  ,
int 
 

Definition at line 931 of file class.c.

References name, Qfalse, rb_attr(), rb_intern(), and VALUE.

VALUE rb_define_class const char *  ,
VALUE 
 

Referenced by Init_Array(), Init_Bignum(), Init_Binding(), Init_Exception(), Init_File(), Init_Hash(), Init_IO(), Init_Numeric(), Init_Object(), Init_Proc(), Init_Range(), Init_Regexp(), Init_String(), Init_Struct(), Init_Thread(), and Init_Time().

VALUE rb_define_class_under VALUE  ,
const char *  ,
VALUE 
 

Definition at line 241 of file class.c.

References ID, name, rb_class2name(), rb_class_inherited(), rb_class_real(), rb_const_defined_at(), rb_const_get_at(), rb_const_set(), rb_define_class_id(), rb_eTypeError, rb_intern(), rb_name_error(), rb_raise(), rb_set_class_path(), rb_warn(), RCLASS, T_CLASS, TYPE, and VALUE.

Referenced by Init_Exception(), Init_File(), Init_process(), make_struct(), and set_syserr().

void rb_define_const VALUE  ,
const char *  ,
VALUE 
 

Definition at line 1678 of file variable.c.

References ID, name, rb_cObject, rb_const_set(), rb_intern(), rb_is_const_id(), rb_secure(), rb_warn(), and VALUE.

Referenced by Init_File(), Init_IO(), Init_marshal(), Init_Math(), Init_Numeric(), Init_process(), Init_Regexp(), Init_Thread(), rb_define_global_const(), rb_file_const(), and set_syserr().

void rb_define_global_const const char *  ,
VALUE 
 

void rb_define_global_function const char *  ,
VALUE(*(ANYARGS), int) 
 

Referenced by Init_Binding(), Init_eval(), Init_Exception(), Init_File(), Init_IO(), Init_load(), Init_Object(), Init_Proc(), Init_process(), Init_Random(), Init_signal(), Init_String(), and Init_Thread().

void rb_define_hooked_variable const char *  ,
VALUE ,
VALUE(*(ANYARGS), void(*  )(ANYARGS))
 

void rb_define_method VALUE  ,
const char *  ,
VALUE(*(ANYARGS), int) 
 

Referenced by Init_Array(), Init_Bignum(), Init_Binding(), Init_Comparable(), Init_Enumerable(), Init_eval(), Init_Exception(), Init_File(), Init_GC(), Init_Hash(), Init_IO(), Init_load(), Init_Numeric(), Init_Object(), Init_pack(), Init_Precision(), Init_Proc(), Init_process(), Init_Range(), Init_Regexp(), Init_String(), Init_Struct(), Init_Thread(), Init_Time(), rb_define_singleton_method(), and rb_mod_define_method().

VALUE rb_define_module const char *   ) 
 

Referenced by Init_Comparable(), Init_Enumerable(), Init_Exception(), Init_File(), Init_GC(), Init_marshal(), Init_Math(), Init_Object(), Init_Precision(), Init_process(), and Init_signal().

void rb_define_module_function VALUE  ,
const char *  ,
VALUE(*(ANYARGS), int) 
 

Referenced by define_filetest_function(), Init_GC(), Init_marshal(), Init_Math(), Init_process(), Init_signal(), and rb_define_global_function().

VALUE rb_define_module_under VALUE  ,
const char * 
 

Definition at line 320 of file class.c.

References ID, name, rb_class2name(), rb_const_defined_at(), rb_const_get_at(), rb_const_set(), rb_define_module_id(), rb_eTypeError, rb_intern(), rb_obj_classname(), rb_raise(), rb_set_class_path(), T_MODULE, TYPE, and VALUE.

Referenced by Init_File(), and Init_process().

void rb_define_readonly_variable const char *  ,
VALUE
 

void rb_define_variable const char *  ,
VALUE
 

void rb_define_virtual_variable const char *  ,
VALUE(*(ANYARGS), void(*  )(ANYARGS))
 

VALUE rb_each VALUE   ) 
 

Definition at line 21 of file enum.c.

References id_each, rb_funcall(), and VALUE.

Referenced by argf_each_line(), enum_all(), enum_any(), enum_collect(), enum_each_with_index(), enum_find(), enum_find_all(), enum_grep(), enum_inject(), enum_max(), enum_member(), enum_min(), enum_partition(), enum_reject(), enum_sort_by(), enum_to_a(), and enum_zip().

VALUE rb_ensure VALUE(*(ANYARGS), VALUE, VALUE(*  )(ANYARGS), VALUE)  ) 
 

Referenced by dir_s_chdir(), dir_s_open(), marshal_dump(), marshal_load(), p_gid_switch(), p_uid_switch(), rb_ary_sort_bang(), rb_gvar_set(), rb_hash_foreach(), rb_io_s_foreach(), rb_io_s_open(), rb_io_s_popen(), rb_io_s_read(), rb_io_s_readlines(), rb_protect_inspect(), and sig_trap().

VALUE rb_equal VALUE  ,
VALUE 
 

Definition at line 46 of file object.c.

References id_eq, Qfalse, Qtrue, rb_funcall(), RTEST, and VALUE.

Referenced by equal_i(), hash_equal(), index_i(), Init_Object(), member_i(), num_eql(), num_remainder(), num_step(), num_zero_p(), pst_equal(), range_eq(), range_step(), rb_ary_assoc(), rb_ary_delete(), rb_ary_equal(), rb_ary_includes(), rb_ary_index(), rb_ary_rassoc(), rb_ary_rindex(), rb_big_eq(), rb_hash_search_value(), rb_str_equal(), rb_struct_equal(), and syserr_eqq().

VALUE rb_eval_string const char *   ) 
 

VALUE rb_eval_string_protect const char *  ,
int * 
 

Referenced by rb_eval_string_wrap().

VALUE rb_eval_string_wrap const char *  ,
int * 
 

void rb_exit int   ) 
 

This function does not return.

Definition at line 4334 of file eval.c.

References prot_tag, rb_str_new(), ruby_finalize(), and terminate_process().

Referenced by rb_f_abort(), rb_f_exit(), rb_thread_kill(), and rb_thread_signal_exit().

void rb_extend_object VALUE  ,
VALUE 
 

Definition at line 7418 of file eval.c.

References rb_include_module(), rb_singleton_class(), and VALUE.

Referenced by Init_Hash(), Init_IO(), r_object0(), rb_eval(), rb_eval_string_wrap(), rb_load(), and rb_mod_extend_object().

void rb_fatal const char *  ,
... 
 

This function does not return.

Definition at line 1092 of file error.c.

References args, rb_eFatal, rb_exc_fatal(), rb_exc_new2(), ruby_in_eval, va_init_list, and vsnprintf().

Referenced by load_file(), next_argv(), proc_options(), and rb_scan_args().

VALUE rb_funcall VALUE  ,
ID  ,
int  ,
... 
 

Definition at line 6013 of file eval.c.

References ID, va_init_list, vafuncall(), and VALUE.

Referenced by catch_i(), cmp_eq(), cmp_ge(), cmp_gt(), cmp_le(), cmp_lt(), coerce_body(), const_missing(), convert_type(), enum_find(), error_print(), exc_to_str(), get_backtrace(), grep_i(), grep_iter_i(), handle_rescue(), init_copy(), int_dotimes(), int_downto(), int_succ(), int_upto(), io_close(), io_write(), max_i(), min_i(), negate_lit(), num_abs(), num_div(), num_divmod(), num_equal(), num_modulo(), num_nonzero_p(), num_quo(), num_remainder(), num_step(), num_to_int(), num_uminus(), prec_prec(), prec_prec_f(), prec_prec_i(), r_le(), r_lt(), r_object0(), range_check(), range_each_func(), range_step(), rb_add_method(), rb_alias(), rb_any_hash(), rb_Array(), rb_ary_cmp(), rb_class_inherited(), rb_cmpint(), rb_each(), rb_eql(), rb_equal(), rb_eval(), rb_exc_new(), rb_flo_induced_from(), rb_hash(), rb_hash_aref(), rb_hash_default(), rb_hash_shift(), rb_inspect(), rb_int_induced_from(), rb_io_write(), rb_make_exception(), rb_method_missing(), rb_mod_include(), rb_num_coerce_bin(), rb_num_coerce_cmp(), rb_num_coerce_relop(), rb_obj_alloc(), rb_obj_as_string(), rb_obj_extend(), rb_obj_inspect(), rb_str_cmp_m(), rb_str_match(), rb_str_match_m(), rb_str_sum(), rb_str_upto(), rb_undef(), remove_method(), set_backtrace(), sort_2(), sort_by_cmp(), and w_object().

VALUE rb_funcall2 VALUE  ,
ID  ,
int  ,
const VALUE
 

Definition at line 6061 of file eval.c.

References CLASS_OF, ID, rb_call(), and VALUE.

Referenced by marshal_dump(), marshal_load(), method_missing(), r_byte(), r_bytes0(), rb_eval(), rb_eval_cmd(), rb_obj_call_init(), and rb_obj_respond_to().

VALUE rb_funcall3 VALUE  ,
ID  ,
int  ,
const VALUE
 

Definition at line 6071 of file eval.c.

References CLASS_OF, ID, rb_call(), and VALUE.

Referenced by argf_close(), argf_forward(), argf_getc(), rb_f_getc(), and rb_f_gets().

void rb_gc_register_address VALUE  ) 
 

Definition at line 236 of file gc.c.

References ALLOC, global_List, VALUE, and gc_list::varptr.

Referenced by Init_GC(), and rb_global_variable().

void rb_gc_unregister_address VALUE  ) 
 

Definition at line 248 of file gc.c.

References free, global_List, gc_list::next, RUBY_CRITICAL, and VALUE.

Referenced by Init_GC().

void rb_glob char *  ,
void(*(const char *, VALUE), VALUE
 

void rb_global_variable VALUE  ) 
 

Definition at line 273 of file gc.c.

References rb_gc_register_address(), and VALUE.

Referenced by Init_eval(), Init_GC(), Init_IO(), Init_load(), Init_Object(), Init_Proc(), Init_Random(), Init_Regexp(), Init_Thread(), and ruby_prog_init().

void rb_globi char *  ,
void(*(const char *, VALUE), VALUE
 

VALUE rb_gv_get const char *   ) 
 

VALUE rb_gv_set const char *  ,
VALUE 
 

char* rb_id2name ID   ) 
 

Definition at line 10065 of file parse.c.

References ALLOCA_N, ID, ID_CONST, ID_LOCAL, ID_SCOPE_MASK, is_attrset_id, is_local_id, name, op_tbl, rb_intern(), st_data_t, st_lookup(), sym_rev_tbl, and tLAST_TOKEN.

Referenced by assignable(), backtrace(), classname(), cv_i(), cvar_override_check(), env_indexes(), error_pos(), fc_path(), fix_id2name(), fix_to_sym(), generic_ivar_get(), gettable(), gvar_i(), id2ref(), ignorecase_setter(), ins_methods_push(), inspect_i(), inspect_struct(), ivar_get(), ivar_i(), list_i(), make_struct(), method_inspect(), mod_av_set(), must_respond_to(), num_sadded(), print_undef(), proc_invoke(), r_object0(), r_unique(), rb_alias(), rb_ary_indexes(), rb_attr(), rb_autoload(), rb_call(), rb_call0(), rb_call_super(), rb_check_safe_obj(), rb_const_get_0(), rb_cvar_get(), rb_cvar_set(), rb_eval(), rb_f_kill(), rb_f_local_variables(), rb_f_throw(), rb_f_untrace_var(), rb_hash_indexes(), rb_mod_const_defined(), rb_mod_const_get(), rb_mod_const_set(), rb_mod_cvar_get(), rb_mod_cvar_set(), rb_mod_modfunc(), rb_mod_remove_const(), rb_mod_remove_cvar(), rb_notimplement(), rb_obj_ivar_get(), rb_obj_ivar_set(), rb_obj_remove_instance_variable(), rb_secure(), rb_str_setter(), rb_struct_aref_id(), rb_struct_aset_id(), rb_struct_getmember(), rb_struct_s_members_m(), rb_struct_set(), rb_to_id(), rb_undef(), readonly_setter(), remove_method(), specific_eval(), sym_inspect(), sym_to_s(), trap(), undef_getter(), uninitialized_constant(), void_expr0(), and w_symbol().

void rb_include_module VALUE  ,
VALUE 
 

Definition at line 371 of file class.c.

References BUILTIN_TYPE, Check_Type, include_class_new(), NIL_P, OBJ_INFECT, OBJ_TAINTED, Qfalse, Qtrue, rb_clear_cache(), rb_eArgError, rb_frozen_class_p(), rb_raise(), rb_secure(), RCLASS, T_CLASS, T_ICLASS, T_MODULE, TYPE, and VALUE.

Referenced by Init_Array(), Init_File(), Init_Hash(), Init_IO(), Init_Numeric(), Init_Object(), Init_Range(), Init_String(), Init_Struct(), Init_Time(), rb_eval(), rb_extend_object(), and rb_mod_append_features().

ID rb_intern const char *   ) 
 

Referenced by add_final(), argf_close(), argf_getc(), boot_defclass(), catch_i(), classname(), cond0(), const_missing(), convert_type(), define_final(), enum_find(), error_print(), eval(), exc_backtrace(), exc_to_s(), exc_to_str(), exit_status(), exit_success_p(), get_backtrace(), global_id(), hash_equal(), Init_Array(), Init_Comparable(), Init_Enumerable(), Init_eval(), Init_Hash(), Init_IO(), Init_marshal(), Init_Numeric(), Init_Object(), Init_Precision(), Init_Range(), Init_String(), Init_var_tables(), io_close(), localjump_error(), make_struct(), marshal_load(), name_err_name(), name_err_to_s(), nometh_err_args(), num_abs(), num_nonzero_p(), r_object0(), r_symreal(), range_initialize(), range_op(), range_step(), rb_add_method(), rb_Array(), rb_ary_equal(), rb_ary_to_ary(), rb_attr(), rb_catch(), rb_class_inherited(), rb_cv_get(), rb_cv_set(), rb_define_alias(), rb_define_attr(), rb_define_class(), rb_define_class_under(), rb_define_class_variable(), rb_define_const(), rb_define_method(), rb_define_module(), rb_define_module_under(), rb_define_private_method(), rb_define_protected_method(), rb_eval_cmd(), rb_exc_new(), rb_f_getc(), rb_f_gets(), rb_flo_induced_from(), rb_id2name(), rb_intern(), rb_iv_get(), rb_iv_set(), rb_make_exception(), rb_method_missing(), rb_mod_include(), rb_mod_init_copy(), rb_obj_extend(), rb_obj_inspect(), rb_parser_append_print(), rb_parser_while_loop(), rb_path2class(), rb_remove_method(), rb_singleton_class_attached(), rb_str_cmp_m(), rb_str_equal(), rb_str_intern(), rb_str_match(), rb_str_match_m(), rb_str_sum(), rb_str_upto(), rb_struct_define(), rb_struct_iv_get(), rb_throw(), rb_undef_method(), set_backtrace(), str_to_id(), syserr_eqq(), syserr_errno(), syserr_initialize(), w_unique(), yycompile(), and yyparse().

void rb_iter_break void   ) 
 

This function does not return.

Definition at line 4451 of file eval.c.

References break_jump(), and Qnil.

Referenced by all_i(), all_iter_i(), any_i(), any_iter_i(), find_i(), and member_i().

VALUE rb_iterate VALUE(*(VALUE), VALUE, VALUE(*  )(ANYARGS), VALUE)  ) 
 

Referenced by argf_each_line(), enum_all(), enum_any(), enum_collect(), enum_each_with_index(), enum_find(), enum_find_all(), enum_grep(), enum_inject(), enum_max(), enum_member(), enum_min(), enum_partition(), enum_reject(), enum_sort_by(), enum_to_a(), enum_zip(), method_proc(), range_each(), range_step(), rb_catch(), and rb_proc_new().

VALUE rb_iv_get VALUE  ,
const char * 
 

Definition at line 1939 of file variable.c.

References ID, name, rb_intern(), rb_ivar_get(), and VALUE.

Referenced by call_trace_func(), localjump_reason(), localjump_xvalue(), method_inspect(), pst_pid(), pst_to_i(), rb_add_method(), rb_alias(), rb_mod_to_s(), rb_singleton_class(), rb_undef(), remove_method(), ruby_cleanup(), and sysexit_status().

VALUE rb_iv_set VALUE  ,
const char *  ,
VALUE 
 

Definition at line 1949 of file variable.c.

References ID, name, rb_intern(), rb_ivar_set(), and VALUE.

Referenced by exc_initialize(), exc_set_backtrace(), exit_initialize(), last_status_set(), localjump_error(), make_struct(), name_err_initialize(), name_err_to_s(), nometh_err_initialize(), rb_name_class(), and syserr_initialize().

void rb_notimplement void   ) 
 

This function does not return.

Definition at line 1083 of file error.c.

References FRAME::last_func, rb_eNotImpError, rb_id2name(), rb_raise(), and