Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Internal header for variables. More...
#include "ruby/internal/config.h"
#include <stddef.h>
#include "constant.h"
#include "ruby/internal/stdbool.h"
#include "ruby/ruby.h"
Go to the source code of this file.
Macros | |
#define | ROBJECT_TRANSIENT_FLAG FL_USER13 |
Internal header for variables.
Definition in file variable.h.
#define ROBJECT_TRANSIENT_FLAG FL_USER13 |
Definition at line 20 of file variable.h.
Definition at line 1287 of file variable.c.
References Qnil.
Definition at line 2517 of file variable.c.
References autoload_data_i::feature, load(), mod, Qnil, RCLASS_SUPER, and recur.
Referenced by rb_autoload_p().
Definition at line 2158 of file variable.c.
References autoload_const::ad, check_autoload_table, autoload_const::cnode, CONST_PUBLIC, autoload_data_i::constants, DATA_PTR, autoload_data_i::feature, autoload_const::flag, id, autoload_const::id, mod, autoload_const::mod, NIL_P, PRIsVALUE, Qnil, Qundef, rb_check_typeddata(), rb_const_lookup(), rb_const_set(), rb_eArgError, rb_eNameError, rb_fstring(), rb_gc_register_mark_object(), rb_hash_aref(), rb_hash_aset(), rb_ident_hash_new(), rb_is_const_id(), rb_obj_hide(), RB_OBJ_WRITTEN, rb_raise(), RCLASS_IV_TBL, RSTRING_LEN, st_add_direct, st_init_numtable, st_insert, st_lookup, autoload_data_i::state, T_STRING, TypedData_Make_Struct, TypedData_Wrap_Struct, rb_const_entry_struct::value, and autoload_const::value.
Referenced by rb_autoload().
Definition at line 3589 of file variable.c.
References key, Qundef, RB_OBJ_WRITTEN, RCLASS_IV_TBL, and st_insert.
Referenced by rb_cvar_set(), and rb_singleton_class_attached().
Definition at line 1915 of file variable.c.
References name, rb_funcallv, and rb_vm_inc_const_missing_count().
void rb_const_warn_if_deprecated | ( | const rb_const_entry_t * | ce, |
VALUE | klass, | ||
ID | id | ||
) |
Definition at line 2533 of file variable.c.
References PRIsVALUE, rb_category_warn, rb_class_name(), rb_cObject, RB_CONST_DEPRECATED_P, RB_WARN_CATEGORY_DEPRECATED, and rb_warning_category_enabled_p().
Definition at line 3217 of file variable.c.
References CONST_DEPRECATED, rb_const_entry_struct::flag, id, ID2SYM, len, mod, name, NULL, rb_check_id_cstr(), rb_class_modify_check(), rb_const_lookup(), rb_fstring_new(), and strlen().
void rb_gc_mark_global_tbl | ( | void | ) |
Definition at line 497 of file variable.c.
References rb_id_table_foreach_values().
void rb_gc_update_global_tbl | ( | void | ) |
Definition at line 515 of file variable.c.
References rb_id_table_foreach_values().
size_t rb_generic_ivar_memsize | ( | VALUE | obj | ) |
Definition at line 1167 of file variable.c.
References gen_ivtbl::numiv.
Definition at line 781 of file variable.c.
References rb_global_variable::getter, Qfalse, Qtrue, rb_gvar_undef_getter, and rb_global_entry::var.
Definition at line 760 of file variable.c.
References rb_global_variable::data, rb_global_variable::getter, rb_global_entry::id, and rb_global_entry::var.
Referenced by rb_gv_get().
rb_gvar_getter_t * rb_gvar_getter_function_of | ( | ID | id | ) |
Definition at line 789 of file variable.c.
References rb_global_variable::getter, and rb_global_entry::var.
void rb_gvar_ractor_local | ( | const char * | name | ) |
Definition at line 359 of file variable.c.
References name, rb_global_entry::ractor_local, and rb_intern().
Referenced by Init_eval(), Init_IO(), Init_Regexp(), InitVM_process(), and ruby_prog_init().
Definition at line 475 of file variable.c.
References PRIsVALUE, and rb_name_error().
Definition at line 745 of file variable.c.
Referenced by rb_gv_set().
rb_gvar_setter_t * rb_gvar_setter_function_of | ( | ID | id | ) |
Definition at line 796 of file variable.c.
References rb_global_variable::setter, and rb_global_entry::var.
void rb_init_iv_list | ( | VALUE | obj | ) |
Definition at line 1438 of file variable.c.
References len, st_table::num_entries, and ROBJECT_IV_INDEX_TBL.
Definition at line 3605 of file variable.c.
References RCLASS_IV_TBL, st_copy, and st_foreach.
Referenced by rb_singleton_class_clone_and_attach().
Definition at line 1192 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, len, ptr, Qundef, RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, SPECIAL_CONST_P, st_lookup, T_CLASS, T_MODULE, and T_OBJECT.
Referenced by rb_attr_get(), rb_ivar_get(), and rb_memory_view_register().
void rb_mark_generic_ivar | ( | VALUE | obj | ) |
Definition at line 1137 of file variable.c.
Definition at line 1960 of file variable.c.
Definition at line 1147 of file variable.c.
Definition at line 191 of file variable.c.
Referenced by rb_vm_bugreport().