w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

kernel.c File Reference
#include <mruby.h>
#include <mruby/array.h>
#include <mruby/hash.h>
#include <mruby/class.h>
#include <mruby/proc.h>
#include <mruby/string.h>
#include <mruby/variable.h>
#include <mruby/error.h>
#include <mruby/istruct.h>
#include <mruby/presym.h>
Include dependency graph for kernel.c:

Go to the source code of this file.

Functions

mrb_bool mrb_func_basic_p (mrb_state *mrb, mrb_value obj, mrb_sym mid, mrb_func_t func)
 
static mrb_bool mrb_obj_basic_to_s_p (mrb_state *mrb, mrb_value obj)
 
mrb_value mrb_obj_inspect (mrb_state *mrb, mrb_value obj)
 
static mrb_value mrb_equal_m (mrb_state *mrb, mrb_value self)
 
mrb_value mrb_obj_id_m (mrb_state *mrb, mrb_value self)
 
static int env_bidx (struct REnv *e)
 
static mrb_value mrb_f_block_given_p_m (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_obj_class_m (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_obj_extend (mrb_state *mrb, mrb_int argc, const mrb_value *argv, mrb_value obj)
 
static mrb_value mrb_obj_extend_m (mrb_state *mrb, mrb_value self)
 
mrb_value mrb_obj_freeze (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_obj_frozen (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_obj_hash (mrb_state *mrb, mrb_value self)
 
mrb_value mrb_obj_init_copy (mrb_state *mrb, mrb_value self)
 
mrb_bool mrb_obj_is_instance_of (mrb_state *mrb, mrb_value obj, struct RClass *c)
 
static mrb_value obj_is_instance_of (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_obj_is_kind_of_m (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_false (mrb_state *mrb, mrb_value self)
 
mrb_value mrb_f_raise (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_obj_remove_instance_variable (mrb_state *mrb, mrb_value self)
 
void mrb_method_missing (mrb_state *mrb, mrb_sym name, mrb_value self, mrb_value args)
 
static mrb_value mrb_obj_missing (mrb_state *mrb, mrb_value mod)
 
static mrb_bool basic_obj_respond_to (mrb_state *mrb, mrb_value obj, mrb_sym id, int pub)
 
static mrb_value obj_respond_to (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_obj_ceqq (mrb_state *mrb, mrb_value self)
 
mrb_value mrb_obj_equal_m (mrb_state *mrb, mrb_value)
 
void mrb_init_kernel (mrb_state *mrb)
 

Function Documentation

◆ basic_obj_respond_to()

static mrb_bool basic_obj_respond_to ( mrb_state mrb,
mrb_value  obj,
mrb_sym  id,
int  pub 
)
inlinestatic

Definition at line 537 of file kernel.c.

References mrb_respond_to().

Referenced by obj_respond_to().

◆ env_bidx()

static int env_bidx ( struct REnv e)
static

Definition at line 104 of file kernel.c.

References e, MRB_ENV_BIDX, and MRB_ENV_LEN.

Referenced by mrb_f_block_given_p_m().

◆ mrb_equal_m()

static mrb_value mrb_equal_m ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 73 of file kernel.c.

References mrb_bool_value(), mrb_equal(), and mrb_get_arg1().

Referenced by mrb_init_kernel().

◆ mrb_f_block_given_p_m()

◆ mrb_f_raise()

◆ mrb_false()

static mrb_value mrb_false ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 394 of file kernel.c.

References mrb_false_value().

Referenced by mrb_init_kernel().

◆ mrb_func_basic_p()

◆ mrb_init_kernel()

◆ mrb_method_missing()

void mrb_method_missing ( mrb_state mrb,
mrb_sym  name,
mrb_value  self,
mrb_value  args 
)

Definition at line 485 of file kernel.c.

References mrb_no_method_error(), and name.

Referenced by mrb_funcall_with_block(), mrb_obj_missing(), and mrb_vm_exec().

◆ mrb_obj_basic_to_s_p()

static mrb_bool mrb_obj_basic_to_s_p ( mrb_state mrb,
mrb_value  obj 
)
static

Definition at line 35 of file kernel.c.

References mrb_any_to_s(), mrb_func_basic_p(), and MRB_SYM.

Referenced by mrb_obj_inspect().

◆ mrb_obj_ceqq()

◆ mrb_obj_class_m()

static mrb_value mrb_obj_class_m ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 216 of file kernel.c.

References mrb_obj_class(), and mrb_obj_value().

Referenced by mrb_init_kernel().

◆ mrb_obj_equal_m()

mrb_value mrb_obj_equal_m ( mrb_state mrb,
mrb_value  self 
)

Definition at line 2047 of file class.c.

References mrb_bool_value(), mrb_get_arg1(), and mrb_obj_equal().

Referenced by mrb_init_class(), and mrb_init_kernel().

◆ mrb_obj_extend()

static mrb_value mrb_obj_extend ( mrb_state mrb,
mrb_int  argc,
const mrb_value argv,
mrb_value  obj 
)
static

Definition at line 222 of file kernel.c.

References argc, argv, extended, i, mrb_argnum_error(), mrb_check_type(), mrb_funcall_id(), MRB_SYM, and MRB_TT_MODULE.

Referenced by mrb_obj_extend_m().

◆ mrb_obj_extend_m()

static mrb_value mrb_obj_extend_m ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 265 of file kernel.c.

References argc, argv, mrb_get_args(), and mrb_obj_extend().

Referenced by mrb_init_kernel().

◆ mrb_obj_freeze()

mrb_value mrb_obj_freeze ( mrb_state mrb,
mrb_value  self 
)

◆ mrb_obj_frozen()

static mrb_value mrb_obj_frozen ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 288 of file kernel.c.

References mrb_basic_ptr, mrb_bool_value(), mrb_frozen_p, and mrb_immediate_p.

Referenced by mrb_init_kernel().

◆ mrb_obj_hash()

static mrb_value mrb_obj_hash ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 305 of file kernel.c.

References mrb_int_value(), and mrb_obj_id().

Referenced by mrb_init_kernel().

◆ mrb_obj_id_m()

mrb_value mrb_obj_id_m ( mrb_state mrb,
mrb_value  self 
)

Definition at line 98 of file kernel.c.

References mrb_int_value(), and mrb_obj_id().

Referenced by mrb_init_class(), and mrb_init_kernel().

◆ mrb_obj_init_copy()

mrb_value mrb_obj_init_copy ( mrb_state mrb,
mrb_value  self 
)

Definition at line 312 of file kernel.c.

References E_TYPE_ERROR, mrb_get_arg1(), mrb_obj_class(), mrb_obj_equal(), mrb_raise(), and mrb_type().

Referenced by mrb_init_kernel().

◆ mrb_obj_inspect()

mrb_value mrb_obj_inspect ( mrb_state mrb,
mrb_value  obj 
)

Definition at line 55 of file kernel.c.

References mrb_any_to_s(), mrb_obj_basic_to_s_p(), mrb_obj_iv_inspect(), mrb_obj_ptr, and mrb_object_p.

Referenced by mrb_init_kernel().

◆ mrb_obj_is_instance_of()

mrb_bool mrb_obj_is_instance_of ( mrb_state mrb,
mrb_value  obj,
struct RClass c 
)

◆ mrb_obj_is_kind_of_m()

static mrb_value mrb_obj_is_kind_of_m ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 376 of file kernel.c.

References c, mrb_bool_value(), mrb_get_args(), and mrb_obj_is_kind_of().

Referenced by mrb_init_kernel().

◆ mrb_obj_missing()

static mrb_value mrb_obj_missing ( mrb_state mrb,
mrb_value  mod 
)
static

Definition at line 524 of file kernel.c.

References a, mod(), mrb_ary_new_from_values(), mrb_get_args(), mrb_method_missing(), mrb_nil_value(), and name.

Referenced by mrb_init_kernel().

◆ mrb_obj_remove_instance_variable()

static mrb_value mrb_obj_remove_instance_variable ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 470 of file kernel.c.

References mrb_get_args(), mrb_iv_name_sym_check(), mrb_iv_remove(), mrb_name_error(), mrb_undef_p, sym, and val.

Referenced by mrb_init_kernel().

◆ obj_is_instance_of()

static mrb_value obj_is_instance_of ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 339 of file kernel.c.

References c, mrb_bool_value(), mrb_get_args(), and mrb_obj_is_instance_of().

Referenced by mrb_init_kernel().

◆ obj_respond_to()

static mrb_value obj_respond_to ( mrb_state mrb,
mrb_value  self 
)
static