mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
Remove char_u: Review
Helped-by: Scott Prager <splinterofchaos@gmail.com>
This commit is contained in:
@@ -702,8 +702,7 @@ static void report_pending(int action, int pending, void *value)
|
|||||||
if (pending & CSTP_THROW) {
|
if (pending & CSTP_THROW) {
|
||||||
vim_snprintf((char *)IObuff, IOSIZE,
|
vim_snprintf((char *)IObuff, IOSIZE,
|
||||||
mesg, _("Exception"));
|
mesg, _("Exception"));
|
||||||
mesg = (char *)vim_strnsave(IObuff, STRLEN(IObuff) + 4);
|
mesg = (char *)concat_str(IObuff, (char_u *)": %s");
|
||||||
strcat(mesg, ": %s");
|
|
||||||
s = (char *)((except_T *)value)->value;
|
s = (char *)((except_T *)value)->value;
|
||||||
} else if ((pending & CSTP_ERROR) && (pending & CSTP_INTERRUPT))
|
} else if ((pending & CSTP_ERROR) && (pending & CSTP_INTERRUPT))
|
||||||
s = _("Error and interrupt");
|
s = _("Error and interrupt");
|
||||||
|
@@ -1168,12 +1168,13 @@ static void command_line_scan(mparm_T *parmp)
|
|||||||
a = SESSION_FILE;
|
a = SESSION_FILE;
|
||||||
++argc;
|
++argc;
|
||||||
--argv;
|
--argv;
|
||||||
} else
|
} else {
|
||||||
a = argv[0];
|
a = argv[0];
|
||||||
p = xmalloc(STRLEN(a) + 4);
|
}
|
||||||
sprintf((char *)p, "so %s", a);
|
char *s = xmalloc(STRLEN(a) + 4);
|
||||||
|
sprintf(s, "so %s", a);
|
||||||
parmp->cmds_tofree[parmp->n_commands] = TRUE;
|
parmp->cmds_tofree[parmp->n_commands] = TRUE;
|
||||||
parmp->commands[parmp->n_commands++] = (char *)p;
|
parmp->commands[parmp->n_commands++] = s;
|
||||||
} else {
|
} else {
|
||||||
parmp->commands[parmp->n_commands++] = argv[0];
|
parmp->commands[parmp->n_commands++] = argv[0];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user