]> thyrsus.com Git - comparator.git/commitdiff
This appears to do reduction correctly.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 2 Sep 2003 00:14:39 +0000 (00:14 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 2 Sep 2003 00:14:39 +0000 (00:14 +0000)
report.c

index 6bfe2b1c13802c939a55f064a8606fc0aa505823..58975094bd83ff5a028a9c7af21b0a0f56db14f5 100644 (file)
--- a/report.c
+++ b/report.c
@@ -11,8 +11,6 @@
 #define min(x, y)      ((x < y) ? (x) : (y)) 
 #define max(x, y)      ((x > y) ? (x) : (y)) 
 
-#define DEBUG
-
 static int local_duplicates;
 
 struct item
@@ -228,7 +226,6 @@ static int merge_ranges(struct range_t *p, struct range_t *q, int nmatches)
 /* merge t into s, if the ranges in the match are compatible */
 {
     int        i;
-    return 0;
     /*
      * The general problem: you have two lists of shreds, of the same
      * lengths.  Within each list, all shreds have the same hash.
@@ -383,8 +380,6 @@ struct match_t *reduce_matches(int localdups)
 #endif /* DEBUG */
                 free(tp->matches);
                 tp->matches = NULL;
-                /* if this garbages *tp the loop may fail */ 
-                free(tp);
                 /* list is altered, do another merge pass */
                 retry = 1;
             }