Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

compar.c File Reference

#include "ruby.h"

Go to the source code of this file.

Defines

#define cmperr()   (rb_cmperr(x, y), Qnil)

Functions

int rb_cmpint (VALUE val, VALUE a, VALUE b)
void rb_cmperr (VALUE x, VALUE y)
VALUE cmp_eq (VALUE *a)
VALUE cmp_failed ()
VALUE cmp_equal (VALUE x, VALUE y)
VALUE cmp_gt (VALUE x, VALUE y)
VALUE cmp_ge (VALUE x, VALUE y)
VALUE cmp_lt (VALUE x, VALUE y)
VALUE cmp_le (VALUE x, VALUE y)
VALUE cmp_between (VALUE x, VALUE min, VALUE max)
void Init_Comparable ()

Variables

VALUE rb_mComparable
ID cmp


Define Documentation

 
#define cmperr  )     (rb_cmperr(x, y), Qnil)
 

Definition at line 53 of file compar.c.

Referenced by cmp_ge(), cmp_gt(), cmp_le(), and cmp_lt().


Function Documentation

VALUE cmp_between VALUE  x,
VALUE  min,
VALUE  max
[static]
 

Definition at line 186 of file compar.c.

References cmp_gt(), cmp_lt(), Qfalse, Qtrue, RTEST, and VALUE.

Referenced by Init_Comparable().

VALUE cmp_eq VALUE a  )  [static]
 

Definition at line 56 of file compar.c.

References cmp, NIL_P, Qfalse, Qnil, Qtrue, rb_cmpint(), rb_funcall(), and VALUE.

Referenced by cmp_equal().

VALUE cmp_equal VALUE  x,
VALUE  y
[static]
 

Definition at line 82 of file compar.c.

References cmp_eq(), cmp_failed(), Qtrue, rb_rescue(), and VALUE.

Referenced by Init_Comparable().

VALUE cmp_failed  )  [static]
 

Definition at line 67 of file compar.c.

References Qnil.

Referenced by cmp_equal().

VALUE cmp_ge VALUE  x,
VALUE  y
[static]
 

Definition at line 121 of file compar.c.

References cmp, cmperr, NIL_P, Qfalse, Qtrue, rb_cmpint(), rb_funcall(), and VALUE.

Referenced by Init_Comparable().

VALUE cmp_gt VALUE  x,
VALUE  y
[static]
 

Definition at line 102 of file compar.c.

References cmp, cmperr, NIL_P, Qfalse, Qtrue, rb_cmpint(), rb_funcall(), and VALUE.

Referenced by cmp_between(), and Init_Comparable().

VALUE cmp_le VALUE  x,
VALUE  y
[static]
 

Definition at line 160 of file compar.c.

References cmp, cmperr, NIL_P, Qfalse, Qtrue, rb_cmpint(), rb_funcall(), and VALUE.

Referenced by Init_Comparable().

VALUE cmp_lt VALUE  x,
VALUE  y
[static]
 

Definition at line 140 of file compar.c.

References cmp, cmperr, NIL_P, Qfalse, Qtrue, rb_cmpint(), rb_funcall(), and VALUE.

Referenced by cmp_between(), and Init_Comparable().

void Init_Comparable void   ) 
 

Definition at line 232 of file compar.c.

References cmp, cmp_between(), cmp_equal(), cmp_ge(), cmp_gt(), cmp_le(), cmp_lt(), rb_define_method(), rb_define_module(), rb_intern(), and rb_mComparable.

Referenced by rb_call_inits().


Variable Documentation

ID cmp [static]
 

Definition at line 17 of file compar.c.

Referenced by cmp_eq(), cmp_ge(), cmp_gt(), cmp_le(), cmp_lt(), and Init_Comparable().

VALUE rb_mComparable
 

Definition at line 15 of file compar.c.

Referenced by Init_Comparable(), Init_File(), Init_Numeric(), Init_String(), and Init_Time().


Generated on Wed Jan 18 23:32:08 2006 for Ruby by doxygen 1.3.5