From 3ca0614de9a3c4dc633e4c9f9ba459d89e44dd92 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Tue, 26 May 2009 21:07:40 +0000 Subject: Next round of pdbox patches from Wincent Balin: adapt dbestfit to rockbox, ifdef some printfs, and more git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21095 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/pdbox/dbestfit-3.3/bysize.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/plugins/pdbox/dbestfit-3.3/bysize.c') diff --git a/apps/plugins/pdbox/dbestfit-3.3/bysize.c b/apps/plugins/pdbox/dbestfit-3.3/bysize.c index 85dc327491..8728e247b9 100644 --- a/apps/plugins/pdbox/dbestfit-3.3/bysize.c +++ b/apps/plugins/pdbox/dbestfit-3.3/bysize.c @@ -366,6 +366,7 @@ Tree *removebyaddr(Tree *t, Tree *remove) return x; } +#ifdef DEBUG int printtree(Tree * t, int d, char output) { int distance=0; @@ -395,6 +396,7 @@ int printtree(Tree * t, int d, char output) distance += printtree(t->smaller, d+1, output); return distance; } +#endif /* DEBUG */ /* Here follow the look-alike interface so that the tree-function names are the same as the list-ones to enable easy interchange */ @@ -416,9 +418,11 @@ char *obtainbysize( size_t size) return (char *)receive; } +#ifdef DEBUG void print_sizes(void) { printtree(chunkHead, 0, 1); } +#endif /* DEBUG */ #endif -- cgit v1.2.3