From fb15cbbaea4ae2b8c75ffa308997f18479135a4f Mon Sep 17 00:00:00 2001 From: Nicolas Hillegeer Date: Fri, 18 Jul 2014 11:02:27 +0200 Subject: startuptime: always enable startuptime Removes the STARTUPTIME define. --- src/nvim/main.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/nvim/main.c') diff --git a/src/nvim/main.c b/src/nvim/main.c index c8b7b10354..0c474c9ad4 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -711,7 +711,6 @@ main_loop ( do_redraw = FALSE; -#ifdef STARTUPTIME /* Now that we have drawn the first screen all the startup stuff * has been done, close any file for startup messages. */ if (time_fd != NULL) { @@ -720,7 +719,6 @@ main_loop ( fclose(time_fd); time_fd = NULL; } -#endif } /* @@ -1467,16 +1465,14 @@ static void init_params(mparm_T *paramp, int argc, char **argv) */ static void init_startuptime(mparm_T *paramp) { -#ifdef STARTUPTIME - int i; - for (i = 1; i < paramp->argc; ++i) { + 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"); time_start("--- VIM STARTING ---"); break; } } -#endif + starttime = time(NULL); } @@ -2221,9 +2217,7 @@ static void usage(void) main_msg(_("-s \tRead Normal mode commands from file ")); main_msg(_("-w \tAppend all typed commands to file ")); main_msg(_("-W \tWrite all typed commands to file ")); -#ifdef STARTUPTIME main_msg(_("--startuptime \tWrite startup timing messages to ")); -#endif main_msg(_("-i \t\tUse instead of .viminfo")); main_msg(_("--api-msgpack-metadata\tDump API metadata information and exit")); main_msg(_("-h or --help\tPrint Help (this message) and exit")); -- cgit