mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
cleanup: remove mch_fopen in favor of os_fopen
This commit is contained in:
@@ -1174,8 +1174,8 @@ scripterror:
|
||||
if (scriptout != NULL) {
|
||||
goto scripterror;
|
||||
}
|
||||
if ((scriptout = mch_fopen(argv[0],
|
||||
c == 'w' ? APPENDBIN : WRITEBIN)) == NULL) {
|
||||
if ((scriptout = os_fopen(argv[0], c == 'w' ? APPENDBIN : WRITEBIN))
|
||||
== NULL) {
|
||||
mch_errmsg(_("Cannot open for script output: \""));
|
||||
mch_errmsg(argv[0]);
|
||||
mch_errmsg("\"\n");
|
||||
@@ -1263,8 +1263,9 @@ static void init_params(mparm_T *paramp, int argc, char **argv)
|
||||
static void init_startuptime(mparm_T *paramp)
|
||||
{
|
||||
for (int i = 1; i < paramp->argc; i++) {
|
||||
if (STRICMP(paramp->argv[i], "--startuptime") == 0 && i + 1 < paramp->argc) {
|
||||
time_fd = mch_fopen(paramp->argv[i + 1], "a");
|
||||
if (STRICMP(paramp->argv[i], "--startuptime") == 0
|
||||
&& i + 1 < paramp->argc) {
|
||||
time_fd = os_fopen(paramp->argv[i + 1], "a");
|
||||
time_start("--- NVIM STARTING ---");
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user