mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
Statically allocate NameBuff
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user