various things

disable paranoid check which was never triggered as far as I'm aware
add editorconfig
some whitespace changes in configure.ac
which to batch mode by default
start working on putting all filtering options in one bin
some other tweaks
This commit is contained in:
cathugger 2020-11-21 11:34:25 +00:00
parent 9eb4b328f0
commit 30491bd9f8
No known key found for this signature in database
GPG key ID: 9BADDA2DAF6F01A8
7 changed files with 79 additions and 39 deletions

View file

@ -1,6 +1,6 @@
#ifdef INTFILTER
static inline size_t filter_len(size_t i)
static inline size_t S(filter_len)(size_t i)
{
# ifndef OMITMASK
const u8 *m = (const u8 *)&VEC_BUF(filters,i).m;
@ -23,12 +23,13 @@ static inline size_t filter_len(size_t i)
}
return c;
}
#define filter_len S(filter_len)
#endif // INTFILTER
#ifdef BINFILTER
static inline size_t filter_len(size_t i)
static inline size_t S(filter_len)(size_t i)
{
size_t c = VEC_BUF(filters,i).len * 8;
u8 v = VEC_BUF(filters,i).mask;
@ -41,6 +42,7 @@ static inline size_t filter_len(size_t i)
v <<= 1;
}
}
#define filter_len S(filter_len)
#endif // BINFILTER