Ruby
2.4.2p198(2017-09-14revision59899)
|
Go to the source code of this file.
Macros | |
#define | rb_intern(str) rb_intern_const(str) |
Functions | |
static VALUE | rb_cmp (VALUE x, VALUE y) |
void | rb_cmperr (VALUE x, VALUE y) |
static VALUE | invcmp_recursive (VALUE x, VALUE y, int recursive) |
VALUE | rb_invcmp (VALUE x, VALUE y) |
static VALUE | cmp_eq_recursive (VALUE arg1, VALUE arg2, int recursive) |
static VALUE | cmp_equal (VALUE x, VALUE y) |
static int | cmpint (VALUE x, VALUE y) |
static VALUE | cmp_gt (VALUE x, VALUE y) |
static VALUE | cmp_ge (VALUE x, VALUE y) |
static VALUE | cmp_lt (VALUE x, VALUE y) |
static VALUE | cmp_le (VALUE x, VALUE y) |
static VALUE | cmp_between (VALUE x, VALUE min, VALUE max) |
static VALUE | cmp_clamp (VALUE x, VALUE min, VALUE max) |
void | Init_Comparable (void) |
Variables | |
VALUE | rb_mComparable |
#define rb_intern | ( | str | ) | rb_intern_const(str) |
Definition at line 193 of file compar.c.
References cmpint(), max(), rb_eArgError, and rb_raise().
Referenced by Init_Comparable().
Definition at line 75 of file compar.c.
References cmp_eq_recursive(), NIL_P, Qfalse, Qtrue, rb_cmpint(), and rb_exec_recursive_paired_outer().
Referenced by Init_Comparable().
Definition at line 88 of file compar.c.
References rb_cmp(), and rb_cmpint().
Referenced by cmp_between(), cmp_clamp(), cmp_ge(), cmp_gt(), cmp_le(), and cmp_lt().
void Init_Comparable | ( | void | ) |
Definition at line 249 of file compar.c.
References cmp_between(), cmp_clamp(), cmp_equal(), cmp_ge(), cmp_gt(), cmp_le(), cmp_lt(), rb_define_method(), rb_define_module(), and rb_mComparable.
Definition at line 18 of file compar.c.
References idCmp, and rb_funcallv.
Referenced by cmp_eq_recursive(), cmpint(), and invcmp_recursive().
Definition at line 24 of file compar.c.
References BUILTIN_TYPE, classname(), PRIsVALUE, rb_eArgError, rb_inspect(), rb_obj_class(), rb_raise(), SPECIAL_CONST_P, and T_FLOAT.
Referenced by compare_with_zero(), int_downto(), int_upto(), rb_cmpint(), and rb_num_coerce_relop().
Definition at line 46 of file compar.c.
References INT2FIX, invcmp_recursive(), NIL_P, Qnil, Qundef, rb_cmpint(), rb_exec_recursive(), and result.
Referenced by rb_str_cmp_m(), and time_cmp().
VALUE rb_mComparable |
Definition at line 15 of file compar.c.
Referenced by Init_Comparable(), Init_Complex(), Init_date_core(), Init_File(), Init_Numeric(), Init_ossl_x509name(), Init_String(), and Init_Time().