16const char ruby_exec_prefix[] =
"";
17const char ruby_initial_load_paths[] =
"";
28rb_locale_charmap_index(
void)
34Init_enc_set_filesystem_encoding(
void)
36 return rb_enc_to_index(rb_default_external_encoding());
39void rb_encdb_declare(
const char *name);
40int rb_encdb_alias(
const char *alias,
const char *orig);
44 rb_encdb_declare(
"ASCII-8BIT");
45 rb_encdb_declare(
"US-ASCII");
46 rb_encdb_declare(
"UTF-8");
47 rb_encdb_alias(
"BINARY",
"ASCII-8BIT");
48 rb_encdb_alias(
"ASCII",
"US-ASCII");
57static void builtin_loaded(
const char *feature_name,
VALUE iseq);
58#define BUILTIN_LOADED(feature_name, iseq) builtin_loaded(feature_name, (VALUE)(iseq))
60#include "mini_builtin.c"
62static struct st_table *loaded_builtin_table;
65builtin_loaded(
const char *feature_name,
VALUE iseq)
67 st_insert(loaded_builtin_table, (st_data_t)feature_name, (st_data_t)iseq);
68 rb_vm_register_global_object(iseq);
72each_builtin_i(st_data_t key, st_data_t val, st_data_t dmy)
74 const char *feature = (
const char *)key;
84each_builtin(
VALUE self)
86 st_foreach(loaded_builtin_table, each_builtin_i, 0);
94 loaded_builtin_table = st_init_strtable();
98Init_builtin_features(
void)
101 builtin_iseq_load(
"gem_prelude", NULL);
105rb_free_loaded_builtin_table(
void)
107 if (loaded_builtin_table)
108 st_free_table(loaded_builtin_table);
#define rb_define_singleton_method(klass, mid, func, arity)
Defines klass.mid.
#define rb_str_new2
Old name of rb_str_new_cstr.
#define Qnil
Old name of RUBY_Qnil.
VALUE rb_locale_charmap(VALUE klass)
Returns a platform-depended "charmap" of the current locale.
VALUE rb_yield_values(int n,...)
Identical to rb_yield(), except it takes variadic number of parameters and pass them to the block.
uintptr_t VALUE
Type that represents a Ruby object.