summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/dbestfit-3.3/bysize.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2009-05-26 21:07:40 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2009-05-26 21:07:40 +0000
commit3ca0614de9a3c4dc633e4c9f9ba459d89e44dd92 (patch)
tree167e53fa944537c46c61fbe1aa35e3b387f19921 /apps/plugins/pdbox/dbestfit-3.3/bysize.c
parent84ea60781319324521d4b5e85a13b0a9e964f7b8 (diff)
downloadrockbox-3ca0614de9a3c4dc633e4c9f9ba459d89e44dd92.tar.gz
rockbox-3ca0614de9a3c4dc633e4c9f9ba459d89e44dd92.zip
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
Diffstat (limited to 'apps/plugins/pdbox/dbestfit-3.3/bysize.c')
-rw-r--r--apps/plugins/pdbox/dbestfit-3.3/bysize.c4
1 files changed, 4 insertions, 0 deletions
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)
366 return x; 366 return x;
367} 367}
368 368
369#ifdef DEBUG
369int printtree(Tree * t, int d, char output) 370int printtree(Tree * t, int d, char output)
370{ 371{
371 int distance=0; 372 int distance=0;
@@ -395,6 +396,7 @@ int printtree(Tree * t, int d, char output)
395 distance += printtree(t->smaller, d+1, output); 396 distance += printtree(t->smaller, d+1, output);
396 return distance; 397 return distance;
397} 398}
399#endif /* DEBUG */
398 400
399/* Here follow the look-alike interface so that the tree-function names are 401/* Here follow the look-alike interface so that the tree-function names are
400 the same as the list-ones to enable easy interchange */ 402 the same as the list-ones to enable easy interchange */
@@ -416,9 +418,11 @@ char *obtainbysize( size_t size)
416 return (char *)receive; 418 return (char *)receive;
417} 419}
418 420
421#ifdef DEBUG
419void print_sizes(void) 422void print_sizes(void)
420{ 423{
421 printtree(chunkHead, 0, 1); 424 printtree(chunkHead, 0, 1);
422} 425}
426#endif /* DEBUG */
423 427
424#endif 428#endif