From 9453b7230b68eef6a13403a124a288e9f95591cd Mon Sep 17 00:00:00 2001 From: Wayne Rowcliffe Date: Sat, 19 Jul 2014 22:49:56 -0500 Subject: Statically allocate NameBuff --- src/nvim/main.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/nvim/main.c') diff --git a/src/nvim/main.c b/src/nvim/main.c index ac1366bfd9..6b8c2f4d4d 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -144,10 +144,6 @@ int main(int argc, char **argv) char_u *fname = NULL; /* file name from command line */ mparm_T params; /* various parameters passed between * main() and other functions. */ - /* - * Do any system-specific initialisations. These can NOT use IObuff or - * NameBuff. Thus emsg2() cannot be called! - */ mch_early_init(); /* Many variables are in "params" so that we can pass them to invoked @@ -167,12 +163,6 @@ int main(int argc, char **argv) /* Init the table of Normal mode commands. */ init_normal_cmds(); - /* - * Allocate space for the generic buffers (needed for set_init_1() and - * EMSG2()). - */ - allocate_generic_buffers(); - #if defined(HAVE_LOCALE_H) || defined(X_LOCALE) /* * Setup to use the current locale (for ctype() and many other things). @@ -1476,16 +1466,6 @@ static void init_startuptime(mparm_T *paramp) starttime = time(NULL); } -/* - * Allocate space for the generic buffers (needed for set_init_1() and - * EMSG2()). - */ -static void allocate_generic_buffers(void) -{ - NameBuff = xmalloc(MAXPATHL); - TIME_MSG("Allocated generic buffers"); -} - /* * Check if we have an interactive window. * On the Amiga: If there is no window, we open one with a newcli command -- cgit