refactor: follow style guide

This commit is contained in:
dundargoc
2023-12-28 13:42:24 +01:00
committed by dundargoc
parent d634cd5b0b
commit c89292fcb7
90 changed files with 953 additions and 1121 deletions

View File

@@ -303,7 +303,7 @@ static bool source_callback_vim_lua(int num_fnames, char **fnames, bool all, voi
for (int i = 0; i < num_fnames; i++) {
if (path_with_extension(fnames[i], "vim")) {
(void)do_source(fnames[i], false, DOSO_NONE, cookie);
do_source(fnames[i], false, DOSO_NONE, cookie);
did_one = true;
if (!all) {
return true;
@@ -313,7 +313,7 @@ static bool source_callback_vim_lua(int num_fnames, char **fnames, bool all, voi
for (int i = 0; i < num_fnames; i++) {
if (path_with_extension(fnames[i], "lua")) {
(void)do_source(fnames[i], false, DOSO_NONE, cookie);
do_source(fnames[i], false, DOSO_NONE, cookie);
did_one = true;
if (!all) {
return true;
@@ -337,7 +337,7 @@ static bool source_callback(int num_fnames, char **fnames, bool all, void *cooki
for (int i = 0; i < num_fnames; i++) {
if (!path_with_extension(fnames[i], "vim")
&& !path_with_extension(fnames[i], "lua")) {
(void)do_source(fnames[i], false, DOSO_NONE, cookie);
do_source(fnames[i], false, DOSO_NONE, cookie);
did_one = true;
if (!all) {
return true;
@@ -1804,7 +1804,7 @@ void ex_options(exarg_T *eap)
bool multi_mods = 0;
buf[0] = NUL;
(void)add_win_cmd_modifiers(buf, &cmdmod, &multi_mods);
add_win_cmd_modifiers(buf, &cmdmod, &multi_mods);
os_setenv("OPTWIN_CMD", buf, 1);
cmd_source(SYS_OPTWIN_FILE, NULL);
@@ -1845,7 +1845,7 @@ static FILE *fopen_noinh_readbin(char *filename)
return NULL;
}
(void)os_set_cloexec(fd_tmp);
os_set_cloexec(fd_tmp);
return fdopen(fd_tmp, READBIN);
}
@@ -2623,7 +2623,7 @@ static char *get_one_sourceline(struct source_cookie *sp)
int c;
char *buf;
#ifdef USE_CRNL
int has_cr; // CR-LF found
bool has_cr; // CR-LF found
#endif
bool have_read = false;