static struct match_t dummy;
struct match_t *reduced = &dummy;
+ /* build list of hashes with more than one range associated with */
for (np = obarray; np < obarray + hashcount; np++)
{
if (np < obarray + hashcount - 1 && !HASHCMP(np, np+1))
np = mp-1;
}
}
-
free(obarray);
+
+ /* time to remove duplicates */
+
return reduced;
}
{
struct range_t *rp = reduced->matches+i;
- printf("%s:%d:%d\n",
- rp->file, rp->start, rp->end);
+ printf("%s:%d:%d\n", rp->file, rp->start, rp->end);
}
printf("-\n");
}