diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-11-30 21:10:39 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-11-30 21:10:39 -0800 |
commit | 8269bfb5dc9448b7e245b2edf01e741ded3bab1c (patch) | |
tree | 776ffa886a0c75d3cde7beb5f1c43a4cf69ce72a /src/ix2.c | |
parent | c2260346fe030bea18b2410cc673eddd6bbd836d (diff) |
libix2: drop pointer from ix2_search_cb typedef
I despise hiding pointer types in typedefs, it makes usage
less clear/obvious to the reader.
Diffstat (limited to 'src/ix2.c')
-rw-r--r-- | src/ix2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -571,7 +571,7 @@ ix2_object_t * ix2_object_move(ix2_t *ix2, ix2_object_t *object, v2f_t *object_p /* Search for objects overlapping a point in index ix2. */ /* Returns number of cb calls performed on hits, if cb is NULL calls will be skipped but hits still counted for return. */ -unsigned ix2_search_by_point(ix2_t *ix2, v2f_t *point, ix2_search_cb cb, void *cb_context) +unsigned ix2_search_by_point(ix2_t *ix2, v2f_t *point, ix2_search_cb *cb, void *cb_context) { unsigned n_hits = 0; ix2_object_ref_t *ref, *_ref; @@ -677,7 +677,7 @@ static void search_node_by_aabb(ix2_node_t *node, bb2f_t *node_aabb, v2f_t *sear /* Search for objects overlapping an aabb in index ix2. */ /* Returns number of cb calls performed on hits, if cb is NULL calls will be skipped but hits still counted for return. */ -unsigned ix2_search_by_aabb(ix2_t *ix2, v2f_t *search_position, v2f_t *search_origin, bb2f_t *search_aabb, ix2_search_cb cb, void *cb_context) +unsigned ix2_search_by_aabb(ix2_t *ix2, v2f_t *search_position, v2f_t *search_origin, bb2f_t *search_aabb, ix2_search_cb *cb, void *cb_context) { unsigned n_hits = 0; LIST_HEAD (hits); |