]> thyrsus.com Git - comparator.git/commitdiff
We can verify that we have a list of nonuniques.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 1 Sep 2003 22:31:31 +0000 (22:31 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 1 Sep 2003 22:31:31 +0000 (22:31 +0000)
report.c

index 83a88507eec506c73429dd5318737923ef016cae..ed156799ab267f8243fc1bd9cfeec70dd1e0dddb 100644 (file)
--- a/report.c
+++ b/report.c
@@ -316,7 +316,12 @@ struct match_t *reduce_matches(int localdups)
             if (!heterogenous)
                 continue;
 
+#ifdef DEBUG
             printf("%d has %d in its clique\n", np-obarray, nmatches);
+            for (i = 0; i < nmatches; i++)
+                printf("%d: %s:%d:%d\n", 
+                       np-obarray+i, np[i].file, np[i].hash.start, np[i].hash.end);
+#endif /* DEBUG */
             /* passed all tests, keep this set of ranges */
             new = (struct match_t *)malloc(sizeof(struct match_t));
 #ifdef DEBUG
@@ -421,8 +426,10 @@ main(int argc, char *argv[])
     qsort(obarray, hashcount, sizeof(struct sorthash_t), sortchunk);
     report_time("Sort done.");
 
+#ifdef ODEBUG
     for (np = obarray; np < obarray + hashcount; np++)
        printf("%d: %s:%d:%d (%02x%02x)\n", np-obarray, np->file, np->hash.start, np->hash.end, np->hash.hash[0], np->hash.hash[1]);
+#endif /* ODEBUG */
 
     hitlist = reduce_matches(local_duplicates);
     report_time("Reduction done.");