diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-15 19:20:44 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-15 19:20:44 +0200 |
commit | d8760ab5cf8378fa50e48453149e96a1392253e2 (patch) | |
tree | 3ee857325aefe46070d21c0339feee068987222a /test/wbrk-human-test.c | |
parent | b6792f703c715ccfc0854c4e8ee3ca703565f4eb (diff) |
Shorten the string view type names
Diffstat (limited to 'test/wbrk-human-test.c')
-rw-r--r-- | test/wbrk-human-test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/wbrk-human-test.c b/test/wbrk-human-test.c index 24a3513..955cf4f 100644 --- a/test/wbrk-human-test.c +++ b/test/wbrk-human-test.c @@ -10,7 +10,7 @@ #define TESTFILE "wbrk-human.in" -static bool test(struct u8view, int); +static bool test(u8view_t, int); int main(int, char **argv) @@ -32,7 +32,7 @@ main(int, char **argv) if (line[nr - 1] == '\n') line[--nr] = '\0'; - if (!test((struct u8view){line, nr}, id)) + if (!test((u8view_t){line, nr}, id)) rv = EXIT_FAILURE; } if (ferror(fp)) @@ -44,13 +44,13 @@ main(int, char **argv) } bool -test(struct u8view sv, int id) +test(u8view_t sv, int id) { - struct u8view src; + u8view_t src; ucscut(&src, &sv, U";", 1); - struct u8view w; - dynarr(struct u8view) ws = {.alloc = alloc_heap}; + u8view_t w; + dynarr(u8view_t) ws = {.alloc = alloc_heap}; while (ucscut(&w, &sv, U"|", 1) != MBEND) DAPUSH(&ws, w); |