diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2015-04-09 11:36:40 -0400 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2015-04-09 11:36:40 -0400 |
commit | 7c14ef5f8371e463a01e0f1de971caa600384390 (patch) | |
tree | 859d990277010fe6fa5d7d3e3ed53081cbee9388 /test/graphemetest.c | |
parent | 498ecbddd87f2555a730e90810db7744cf416b82 (diff) | |
parent | 0a818c700353194d85baaf6a2f7f6ea32686b922 (diff) | |
download | libutf8proc-7c14ef5f8371e463a01e0f1de971caa600384390.tar.gz libutf8proc-7c14ef5f8371e463a01e0f1de971caa600384390.tar.bz2 |
Merge pull request #32 from JuliaLang/tk/ssize_t_typedef
Use a typedef instead of a #define for ssize_t with MSVC
Diffstat (limited to 'test/graphemetest.c')
-rw-r--r-- | test/graphemetest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/graphemetest.c b/test/graphemetest.c index 7914dc8..a05b6e2 100644 --- a/test/graphemetest.c +++ b/test/graphemetest.c @@ -5,7 +5,7 @@ int main(int argc, char **argv) char *buf = NULL; size_t bufsize = 0; FILE *f = argc > 1 ? fopen(argv[1], "r") : NULL; - uint8_t src[1024]; + utf8proc_uint8_t src[1024]; check(f != NULL, "error opening GraphemeBreakTest.txt"); while (getline(&buf, &bufsize, f) > 0) { @@ -39,10 +39,10 @@ int main(int argc, char **argv) src[si] = 0; /* NUL-terminate */ if (si) { - uint8_t utf8[1024]; /* copy src without 0xff grapheme separators */ + utf8proc_uint8_t utf8[1024]; /* copy src without 0xff grapheme separators */ size_t i = 0, j = 0; - ssize_t glen; - uint8_t *g; /* utf8proc_map grapheme results */ + utf8proc_ssize_t glen; + utf8proc_uint8_t *g; /* utf8proc_map grapheme results */ while (i < si) { if (src[i] != '/') utf8[j++] = src[i++]; |