Ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
|
#include "ruby/encoding.h"
#include "ruby/util.h"
#include "internal.h"
#include "dln.h"
#include "eval_intern.h"
#include "probes.h"
#include "iseq.h"
Go to the source code of this file.
Data Structures | |
struct | loaded_feature_searching |
Macros | |
#define | IS_RBEXT(e) (strcmp((e), ".rb") == 0) |
#define | IS_SOEXT(e) (strcmp((e), ".so") == 0 || strcmp((e), ".o") == 0) |
#define | IS_DLEXT(e) (strcmp((e), DLEXT) == 0) |
#define | rb_intern(str) rb_intern2((str), strlen(str)) |
Typedefs | |
typedef int(* | feature_func) (const char *feature, const char *ext, int rb, int expanded, const char **fn) |
Enumerations | |
enum | expand_type { EXPAND_ALL , EXPAND_RELATIVE , EXPAND_HOME , EXPAND_NON_CACHE } |
Functions | |
VALUE | rb_get_expanded_load_path (void) |
int | rb_provided (const char *feature) |
int | rb_feature_provided (const char *feature, const char **loading) |
void | rb_provide (const char *feature) |
NORETURN (static void load_failed(VALUE)) | |
void | rb_load (VALUE fname, int wrap) |
void | rb_load_protect (VALUE fname, int wrap, int *pstate) |
VALUE | rb_f_require (VALUE obj, VALUE fname) |
VALUE | rb_f_require_relative (VALUE obj, VALUE fname) |
VALUE | rb_resolve_feature_path (VALUE klass, VALUE fname) |
int | rb_require_internal (VALUE fname) |
int | ruby_require_internal (const char *fname, unsigned int len) |
VALUE | rb_require_safe (VALUE fname, int safe) |
VALUE | rb_require_string (VALUE fname) |
VALUE | rb_require (const char *fname) |
RUBY_FUNC_EXPORTED void | ruby_init_ext (const char *name, void(*init)(void)) |
void | Init_load (void) |
#define IS_SOEXT | ( | e | ) | (strcmp((e), ".so") == 0 || strcmp((e), ".o") == 0) |
#define rb_intern | ( | str | ) | rb_intern2((str), strlen(str)) |
enum expand_type |
Definition at line 1298 of file load.c.
References GET_VM, rb_define_hooked_variable(), and rb_intern2().
NORETURN | ( | static void | load_failedVALUE | ) |
Definition at line 853 of file load.c.
References rb_require_string().
Definition at line 867 of file load.c.
References NIL_P, rb_current_realfilepath(), rb_file_absolute_path(), rb_file_dirname(), rb_loaderror(), and rb_require_string().
Definition at line 562 of file load.c.
References IS_RBEXT, Qnil, rb_file_expand_path_fast(), rb_get_path(), rb_str_new2, RSTRING_PTR, strchr(), strncmp(), and strrchr().
Referenced by rb_provided().
Definition at line 97 of file load.c.
References GET_VM, rb_vm_struct::load_path, rb_vm_struct::load_path_snapshot, Qtrue, and rb_ary_shared_with_p().
Definition at line 693 of file load.c.
References FilePathValue, and rb_find_file().
Referenced by rb_load_protect().
Definition at line 701 of file load.c.
References EC_EXEC_TAG, EC_POP_TAG, EC_PUSH_TAG, GET_EC, rb_load(), and TAG_NONE.
Definition at line 556 of file load.c.
References rb_feature_provided().
Definition at line 1145 of file load.c.
References GET_EC.
Referenced by rb_f_require(), rb_f_require_relative(), and rb_require().
Definition at line 991 of file load.c.
References path, rb_get_path(), rb_str_encode_ospath(), and sym.