utf8proc

A clean C library for processing UTF-8 Unicode data
git clone https://git.sinitax.com/juliastrings/utf8proc
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 0bf1973a0f842c5847f7936f3512e19f3ede33e9
parent 47cbf7d96dd0aab984746460707f83d92438c05a
Author: Tony Kelman <tony@kelman.net>
Date:   Tue, 26 Jul 2016 14:54:17 -0700

use a different variable name for nested loop in bench.c (#80)

and declare it ahead of time to avoid "error: 'for' loop initial declarations are only allowed in C99 mode"
Diffstat:
Mbench/bench.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bench/bench.c b/bench/bench.c @@ -7,7 +7,7 @@ int main(int argc, char **argv) { - int i; + int i, j; int options = 0; for (i = 1; i < argc; ++i) { @@ -44,7 +44,7 @@ int main(int argc, char **argv) } uint8_t *dest; mytime start = gettime(); - for (int i = 0; i < 100; ++i) { + for (j = 0; j < 100; ++j) { utf8proc_map(src, len, &dest, options); free(dest); }