aboutsummaryrefslogtreecommitdiff
path: root/gen/prop
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-15 19:20:44 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-15 19:20:44 +0200
commitd8760ab5cf8378fa50e48453149e96a1392253e2 (patch)
tree3ee857325aefe46070d21c0339feee068987222a /gen/prop
parentb6792f703c715ccfc0854c4e8ee3ca703565f4eb (diff)
Shorten the string view type names
Diffstat (limited to 'gen/prop')
-rwxr-xr-xgen/prop/na6
-rwxr-xr-xgen/prop/na16
2 files changed, 6 insertions, 6 deletions
diff --git a/gen/prop/na b/gen/prop/na
index 250b746..2b80b3b 100755
--- a/gen/prop/na
+++ b/gen/prop/na
@@ -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[] = {"
}
$2 !~ /^</ {
@@ -29,10 +29,10 @@ $2 !~ /^</ {
END {
print "};"
print ""
- print "struct u8view"
+ print "u8view_t"
print "uprop_get_na(rune ch)"
print "{"
- print "\treturn ch < lengthof(lookup) ? lookup[ch] : (struct u8view){};"
+ print "\treturn ch < lengthof(lookup) ? lookup[ch] : (u8view_t){};"
print "}"
}
' data/UnicodeData
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