diff options
Diffstat (limited to 'apps/plugins/pdbox/dbestfit-3.3/bysize.c')
-rw-r--r-- | apps/plugins/pdbox/dbestfit-3.3/bysize.c | 4 |
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 | ||
369 | int printtree(Tree * t, int d, char output) | 370 | int 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 | ||
419 | void print_sizes(void) | 422 | void 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 |