mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
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:
5
vec.h
5
vec.h
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user