diff options
| author | Tyge Løvset <[email protected]> | 2022-09-27 09:51:52 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-09-27 09:51:52 +0200 |
| commit | 513300d52839e7e493bd296ba9786a018ce9dbd8 (patch) | |
| tree | a785a66e4ce149978d75fd8b3aab739e92537d00 /include | |
| parent | 60c4432678073faa271fe9b6f632c5a3789d5727 (diff) | |
| download | STC-modified-513300d52839e7e493bd296ba9786a018ce9dbd8.tar.gz STC-modified-513300d52839e7e493bd296ba9786a018ce9dbd8.zip | |
Renamed c_flt_drop() and c_flt_dropwhile()
to c_flt_skip() and c_flt_skipwhile()
This lines up with Rust namings, and does not conflict with the use of drop as destructor.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/ccommon.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h index c6bf1f72..c6ec4529 100644 --- a/include/stc/ccommon.h +++ b/include/stc/ccommon.h @@ -168,9 +168,9 @@ STC_INLINE char* c_strnstrn(const char *s, const char *needle, #define c_FLT_STACK 14 // 22, 30, .. #endif #define c_flt_take(i, n) (++(i).s1[(i).s1top++] <= (n)) -#define c_flt_drop(i, n) (++(i).s1[(i).s1top++] > (n)) -#define c_flt_dropwhile(i, pred) ((i).s2[(i).s2top++] |= !(pred)) -#define c_flt_takewhile(i, pred) !c_flt_dropwhile(i, pred) +#define c_flt_skip(i, n) (++(i).s1[(i).s1top++] > (n)) +#define c_flt_skipwhile(i, pred) ((i).s2[(i).s2top++] |= !(pred)) +#define c_flt_takewhile(i, pred) !c_flt_skipwhile(i, pred) #define c_forfilter(...) c_MACRO_OVERLOAD(c_forfilter, __VA_ARGS__) #define c_forfilter4(it, C, cnt, filter) \ |
