small fixup, implement deduplication support

fixes potential binsearch+binfilter filters mis-ordering case.
implements optional filters deduplication except for regex filters.
adds -v flag for more verbose output.
This commit is contained in:
cathugger
2018-09-26 20:54:14 +03:00
parent 908d4957f6
commit abc08bc47b
4 changed files with 136 additions and 10 deletions

5
vec.h
View File

@@ -22,6 +22,11 @@ void vec_addn(struct vec_basestruct *ctl,size_t sz,size_t n);
#define VEC_ADDN(ctl,n) \
vec_addn((struct vec_basestruct *)&(ctl),VEC_ELSIZE(ctl),(size_t)(n))
#define VEC_SETLENGTH(ctl,n) \
do { \
(ctl).len = n; \
} while (0)
#define VEC_REMOVEN(ctl,n,m) \
do { \
(ctl).len -= m; \