diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-07-22 15:24:56 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-22 15:24:56 -0400 |
commit | ba04a1c30674523fb7880b3003d8087ed7852cd9 (patch) | |
tree | bd9347f6efe81084eb4b703f6f5b6bbbaccffdc4 /src/nvim/main.c | |
parent | 845d1bfa905cf0d28d9a1a662e42525449dd1be4 (diff) | |
parent | 7a2ea275eb5964f4a9b875ca273068fb9b40c81d (diff) | |
download | rneovim-ba04a1c30674523fb7880b3003d8087ed7852cd9.tar.gz rneovim-ba04a1c30674523fb7880b3003d8087ed7852cd9.tar.bz2 rneovim-ba04a1c30674523fb7880b3003d8087ed7852cd9.zip |
Merge pull request #904 from war1025/dev/buffer_tests
Add unit tests for buffer.c and fileio.c
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 20 |
1 files changed, 0 insertions, 20 deletions
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). @@ -1477,16 +1467,6 @@ static void init_startuptime(mparm_T *paramp) } /* - * 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 * (needed for :! to * work). mch_check_win() will also handle the -d or |