Cleanup: use braces (follow own style guide)

This commit is contained in:
Campbell Barton
2025-06-11 09:05:26 +00:00
parent afd778ec01
commit 07121d44ae
31 changed files with 172 additions and 106 deletions

View File

@@ -259,9 +259,11 @@ int conv_utf_8_to_16(const char *in8, wchar_t *out16, size_t size16)
#if 0
static int is_ascii(const char *in8)
{
for (; *in8; in8++)
if (0x80 & *in8)
for (; *in8; in8++) {
if (0x80 & *in8) {
return 0;
}
}
return 1;
}
@@ -270,9 +272,9 @@ static void utf_8_cut_end(char *inout8, size_t maxcutpoint)
{
char *cur = inout8 + maxcutpoint;
char cc;
if (!inout8)
if (!inout8) {
return;
}
cc = *cur;
}
#endif