Cleanup: use bool
authorCampbell Barton <ideasman42@gmail.com>
Tue, 7 Oct 2014 18:40:11 +0000 (20:40 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 7 Oct 2014 18:40:11 +0000 (20:40 +0200)
extern/rangetree/range_tree_c_api.cc
extern/rangetree/range_tree_c_api.h

index 56f2d90..79d3df5 100644 (file)
@@ -53,19 +53,20 @@ void range_tree_uint_release(RangeTreeUInt *rt, unsigned v)
        rt->release(v);
 }
 
-int range_tree_uint_has(const RangeTreeUInt *rt, unsigned v)
+bool range_tree_uint_has(const RangeTreeUInt *rt, unsigned v)
 {
        return rt->has(v);
 }
 
-int range_tree_uint_has_range(const RangeTreeUInt *rt,
-                                                         unsigned vmin,
-                                                         unsigned vmax)
+bool range_tree_uint_has_range(
+        const RangeTreeUInt *rt,
+        unsigned vmin,
+        unsigned vmax)
 {
        return rt->has_range(vmin, vmax);
 }
 
-int range_tree_uint_empty(const RangeTreeUInt *rt)
+bool range_tree_uint_empty(const RangeTreeUInt *rt)
 {
        return rt->empty();
 }
index af6a7b1..d78dc95 100644 (file)
@@ -39,13 +39,13 @@ unsigned range_tree_uint_take_any(RangeTreeUInt *rt);
 
 void range_tree_uint_release(RangeTreeUInt *rt, unsigned v);
 
-int range_tree_uint_has(const RangeTreeUInt *rt, unsigned v);
+bool range_tree_uint_has(const RangeTreeUInt *rt, unsigned v);
 
-int range_tree_uint_has_range(const RangeTreeUInt *rt,
-                                                         unsigned vmin,
-                                                         unsigned vmax);
+bool range_tree_uint_has_range(
+        const RangeTreeUInt *rt,
+        unsigned vmin, unsigned vmax);
 
-int range_tree_uint_empty(const RangeTreeUInt *rt);
+bool range_tree_uint_empty(const RangeTreeUInt *rt);
 
 unsigned range_tree_uint_size(const RangeTreeUInt *rt);