From d8760ab5cf8378fa50e48453149e96a1392253e2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 15 Sep 2024 19:20:44 +0200 Subject: Shorten the string view type names --- gen/prop/na1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gen/prop/na1') diff --git a/gen/prop/na1 b/gen/prop/na1 index c01ee60..38aa28b 100755 --- a/gen/prop/na1 +++ b/gen/prop/na1 @@ -17,7 +17,7 @@ BEGIN { print "#define _(...) \\" print "\t{(const char8_t []){__VA_ARGS__}, sizeof((const char8_t []){__VA_ARGS__})}" print "" - print "static const struct u8view lookup[] = {" + print "static const u8view_t lookup[] = {" } length($11) > 0 { @@ -29,10 +29,10 @@ length($11) > 0 { END { print "};" print "" - print "struct u8view" + print "u8view_t" print "uprop_get_na1(rune ch)" print "{" - print "\treturn ch < lengthof(lookup) ? lookup[ch] : (struct u8view){};" + print "\treturn ch < lengthof(lookup) ? lookup[ch] : (u8view_t){};" print "}" } ' data/UnicodeData -- cgit v1.2.3