From 9c85fb496e9bdffd438df720045d5a12e6c03cc7 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 27 Nov 2018 17:30:07 -0800 Subject: libix2: disambiguate ix2_search_status_t Previously one could say stop/ignore/continue. There was no way to say stop and ignore, or stop but don't ignore. Now there are basically two classes of returns, stop and continue, and each of those have ignore/don't ignore sub-statuses. The naming is changed to STOP vs. MORE and HIT vs. MISS for brevity: typedef enum ix2_search_status_t { IX2_SEARCH_STOP_MISS, IX2_SEARCH_STOP_HIT, IX2_SEARCH_MORE_MISS, IX2_SEARCH_MORE_HIT } ix2_search_status_t; --- src/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test.c') diff --git a/src/test.c b/src/test.c index d00f63a..1d14a98 100644 --- a/src/test.c +++ b/src/test.c @@ -34,7 +34,7 @@ ix2_search_status_t cb(void *cb_context, ix2_object_t *ix2_object, v2f_t *ix2_ob fprintf(stderr, "found %p ix2_object=%p ix2_object_aabb=%f,%f ... %f,%f\n", cb_context, ix2_object, ix2_object_aabb->min.x, ix2_object_aabb->min.y, ix2_object_aabb->max.x, ix2_object_aabb->max.y); - return IX2_SEARCH_CONTINUE; + return IX2_SEARCH_MORE_HIT; } typedef struct object_t { -- cgit v1.2.3