Ruby
2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)
|
Go to the documentation of this file.
6 #include "miniprelude.c"
10 #ifndef INCLUDED_BY_BUILTIN_C
11 static struct st_table *loaded_builtin_table;
31 if (0 &&
strcmp(
"prelude", feature_name) == 0) {
35 #ifndef INCLUDED_BY_BUILTIN_C
46 const rb_iseq_t *
iseq = builtin_iseq_load(feature_name, table);
50 #ifndef INCLUDED_BY_BUILTIN_C
55 const char *feature = (
const char *)
key;
64 each_builtin(
VALUE self)
66 st_foreach(loaded_builtin_table, each_builtin_i, 0);
81 builtin_iseq_load(
"gem_prelude",
NULL);
VALUE rb_iseq_eval(const rb_iseq_t *iseq)
void rb_gc_register_mark_object(VALUE obj)
VALUE rb_iseq_disasm(const rb_iseq_t *iseq)
void rb_ast_dispose(rb_ast_t *ast)
void rb_define_singleton_method(VALUE obj, const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a singleton method for obj.
void rb_load_with_builtin_functions(const char *feature_name, const struct rb_builtin_function *table)
RUBY_EXTERN VALUE rb_stdout
rb_iseq_t * rb_iseq_new(const rb_ast_body_t *ast, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent, enum iseq_type type)
int st_insert(st_table *tab, st_data_t key, st_data_t value)
VALUE rb_iseqw_new(const rb_iseq_t *)
st_table * st_init_strtable(void)
void Init_builtin_features(void)
const struct rb_builtin_function * builtin_function_table
int st_foreach(st_table *tab, st_foreach_callback_func *func, st_data_t arg)
VALUE rb_io_write(VALUE, VALUE)
rb_ast_t * rb_builtin_ast(const char *feature_name, VALUE *name_str)