diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2013-03-19 12:03:54 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2013-03-19 12:03:54 +0900 |
| commit | d0d920e909497173f562d75309e3b0f0a607778e (patch) | |
| tree | 0f421cb092c09f1edf4f13187cd54a3e2807476f /src/range.c | |
| parent | dc2e1c1ce8ae6da16532337b85ea1064db8d0624 (diff) | |
| download | mruby-d0d920e909497173f562d75309e3b0f0a607778e.tar.gz mruby-d0d920e909497173f562d75309e3b0f0a607778e.zip | |
rename mrb_true_or_false_value() to mrb_bool_value()
Diffstat (limited to 'src/range.c')
| -rw-r--r-- | src/range.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/range.c b/src/range.c index 8d36ed7b4..fb4d975e7 100644 --- a/src/range.c +++ b/src/range.c @@ -91,7 +91,7 @@ mrb_range_excl(mrb_state *mrb, mrb_value range) { struct RRange *r = mrb_range_ptr(range); - return mrb_true_or_false_value(r->excl); + return mrb_bool_value(r->excl); } static void @@ -175,7 +175,7 @@ mrb_range_eq(mrb_state *mrb, mrb_value range) } } - return mrb_true_or_false_value(eq_p); + return mrb_bool_value(eq_p); } static int @@ -242,7 +242,7 @@ mrb_range_include(mrb_state *mrb, mrb_value range) ((r->excl && r_gt(mrb, end, val)) || /* end > val */ (r_ge(mrb, end, val))); /* end >= val */ - return mrb_true_or_false_value(include_p); + return mrb_bool_value(include_p); } /* @@ -412,7 +412,7 @@ range_eql(mrb_state *mrb, mrb_value range) } } - return mrb_true_or_false_value(eql_p); + return mrb_bool_value(eql_p); } /* 15.2.14.4.15(x) */ |
