From d70d039bf5a5ec8b487b8425743e7a82cab1bf95 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 25 Aug 2011 21:33:47 -0600 Subject: Use DMNSN_INTERNAL for prtree functions. --- libdimension/bench/Makefile.am | 1 + libdimension/bench/prtree.c | 4 +++- libdimension/prtree.h | 13 ++++++++----- libdimension/tests/prtree.c | 5 +++-- 4 files changed, 15 insertions(+), 8 deletions(-) (limited to 'libdimension') diff --git a/libdimension/bench/Makefile.am b/libdimension/bench/Makefile.am index b8930e9..d3473de 100644 --- a/libdimension/bench/Makefile.am +++ b/libdimension/bench/Makefile.am @@ -31,6 +31,7 @@ array_bench_SOURCES = array.c geometry_bench_SOURCES = geometry.c polynomial_bench_SOURCES = polynomial.c prtree_bench_SOURCES = prtree.c +prtree_bench_CFLAGS = $(AM_CFLAGS) -finline bench: $(EXTRA_PROGRAMS) ./array.bench diff --git a/libdimension/bench/prtree.c b/libdimension/bench/prtree.c index e8e0b02..7c38990 100644 --- a/libdimension/bench/prtree.c +++ b/libdimension/bench/prtree.c @@ -17,7 +17,9 @@ * along with this program. If not, see . * *************************************************************************/ -#include "dimension-internal.h" +#include "../prtree.c" +#include "../threads.c" +#include "../progress.c" #include #include diff --git a/libdimension/prtree.h b/libdimension/prtree.h index e799675..733f854 100644 --- a/libdimension/prtree.h +++ b/libdimension/prtree.h @@ -38,12 +38,15 @@ typedef struct dmnsn_prtree { } dmnsn_prtree; /** Create a PR-tree. */ -dmnsn_prtree *dmnsn_new_prtree(const dmnsn_array *objects); +DMNSN_INTERNAL dmnsn_prtree *dmnsn_new_prtree(const dmnsn_array *objects); /** Delete a PR-tree. */ -void dmnsn_delete_prtree(dmnsn_prtree *tree); +DMNSN_INTERNAL void dmnsn_delete_prtree(dmnsn_prtree *tree); /** Find the closest ray-object intersection in the tree. */ -bool dmnsn_prtree_intersection(const dmnsn_prtree *tree, dmnsn_line ray, - dmnsn_intersection *intersection, bool reset); +DMNSN_INTERNAL bool dmnsn_prtree_intersection(const dmnsn_prtree *tree, + dmnsn_line ray, + dmnsn_intersection *intersection, + bool reset); /** Determine whether a point is inside any object in the tree. */ -bool dmnsn_prtree_inside(const dmnsn_prtree *tree, dmnsn_vector point); +DMNSN_INTERNAL bool dmnsn_prtree_inside(const dmnsn_prtree *tree, + dmnsn_vector point); diff --git a/libdimension/tests/prtree.c b/libdimension/tests/prtree.c index 991d466..2e33368 100644 --- a/libdimension/tests/prtree.c +++ b/libdimension/tests/prtree.c @@ -21,8 +21,9 @@ * Basic tests of PR-trees */ -#include "dimension-internal.h" -#define DMNSN_PRTREE_B 8 +#include "../prtree.c" +#include "../threads.c" +#include "../progress.c" #include #include -- cgit v1.2.3