diff options
Diffstat (limited to 'include/stc/csview.h')
| -rw-r--r-- | include/stc/csview.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/csview.h b/include/stc/csview.h index 972bc788..638d9920 100644 --- a/include/stc/csview.h +++ b/include/stc/csview.h @@ -115,13 +115,13 @@ STC_API csview csview_substr_ex(csview sv, intptr_t pos, size_t n); STC_API csview csview_slice_ex(csview sv, intptr_t p1, intptr_t p2); STC_API csview csview_token(csview sv, const char* sep, size_t* start); -#define c_fortoken_sv(it, inputsv, sep) \ +#define c_FORTOKEN_SV(it, inputsv, sep) \ for (struct { csview _inp, token, *ref; const char *_sep; size_t pos; } \ it = {._inp=inputsv, .token=it._inp, .ref=&it.token, ._sep=sep} \ ; it.pos <= it._inp.size && (it.token = csview_token(it._inp, it._sep, &it.pos)).str ; ) -#define c_fortoken(it, input, sep) \ - c_fortoken_sv(it, csview_from(input), sep) +#define c_FORTOKEN(it, input, sep) \ + c_FORTOKEN_SV(it, csview_from(input), sep) /* csview interaction with cstr: */ #ifdef CSTR_H_INCLUDED |
