summaryrefslogtreecommitdiffhomepage
path: root/src/object.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-07-16 09:38:09 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-07-16 09:38:09 -0700
commit6ee9858b670a30a49e3d1c88bf932e1ba41a6847 (patch)
tree152777f53050f0ba0e5e891c0550df22c41e72a5 /src/object.c
parent18c167b8b5200aa604a5c665a6dcb3b9ec7f02b4 (diff)
parent8e42868600e7adcdc5665ff9b0244150296960d6 (diff)
downloadmruby-6ee9858b670a30a49e3d1c88bf932e1ba41a6847.tar.gz
mruby-6ee9858b670a30a49e3d1c88bf932e1ba41a6847.zip
Merge pull request #1385 from suzukaze/refactor-return
Repalace int with mrb_bool because a return value is boolean.
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/object.c b/src/object.c
index 4003452cc..5b2278767 100644
--- a/src/object.c
+++ b/src/object.c
@@ -11,7 +11,7 @@
#include "mruby/string.h"
#include "error.h"
-int
+mrb_bool
mrb_obj_eq(mrb_state *mrb, mrb_value v1, mrb_value v2)
{
if (mrb_type(v1) != mrb_type(v2)) return FALSE;
@@ -33,14 +33,14 @@ mrb_obj_eq(mrb_state *mrb, mrb_value v1, mrb_value v2)
}
}
-int
+mrb_bool
mrb_obj_equal(mrb_state *mrb, mrb_value v1, mrb_value v2)
{
/* temporary definition */
return mrb_obj_eq(mrb, v1, v2);
}
-int
+mrb_bool
mrb_equal(mrb_state *mrb, mrb_value obj1, mrb_value obj2)
{
mrb_value result;
@@ -468,7 +468,7 @@ mrb_any_to_s(mrb_state *mrb, mrb_value obj)
* b.kind_of? M #=> true
*/
-int
+mrb_bool
mrb_obj_is_kind_of(mrb_state *mrb, mrb_value obj, struct RClass *c)
{
struct RClass *cl = mrb_class(mrb, obj);
@@ -585,7 +585,7 @@ mrb_inspect(mrb_state *mrb, mrb_value obj)
return mrb_obj_as_string(mrb, mrb_funcall(mrb, obj, "inspect", 0, 0));
}
-int
+mrb_bool
mrb_eql(mrb_state *mrb, mrb_value obj1, mrb_value obj2)
{
if (mrb_obj_eq(mrb, obj1, obj2)) return TRUE;