1
0
forked from aniani/vim

patch 9.0.1234: the code style has to be checked manually

Problem:    The code style has to be checked manually.
Solution:   Add basic code style checks in a test.  Fix or avoid uncovered
            problems.
This commit is contained in:
Bram Moolenaar
2023-01-22 21:14:53 +00:00
parent 3d79f0a430
commit ebfec1c531
34 changed files with 319 additions and 149 deletions

View File

@@ -107,7 +107,8 @@ mac_string_convert(
// Determine output buffer size
CFStringGetBytes(cfstr, convertRange, to, NULL, FALSE, NULL, 0, (CFIndex *)&buflen);
retval = (buflen > 0) ? alloc(buflen) : NULL;
if (retval == NULL) {
if (retval == NULL)
{
CFRelease(cfstr);
return NULL;
}
@@ -543,7 +544,8 @@ mac_utf8_to_utf16(
utf8_str = CFStringCreateWithBytes(NULL, from, fromLen,
kCFStringEncodingUTF8, FALSE);
if (utf8_str == NULL) {
if (utf8_str == NULL)
{
if (actualLen)
*actualLen = 0;
return NULL;