diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-01 18:10:53 -0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-07 15:52:27 -0400 |
commit | ee72c2b18d970a6084bcfae81339fb8d320b73b3 (patch) | |
tree | 55de4377202c9fa90b63e3177f099b79b5adc8dc /src/memory.c | |
parent | 65273be0609f8f4ccc388a23b33af3333369b11d (diff) | |
download | rneovim-ee72c2b18d970a6084bcfae81339fb8d320b73b3.tar.gz rneovim-ee72c2b18d970a6084bcfae81339fb8d320b73b3.tar.bz2 rneovim-ee72c2b18d970a6084bcfae81339fb8d320b73b3.zip |
Delete the lalloc() function
Diffstat (limited to 'src/memory.c')
-rw-r--r-- | src/memory.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/memory.c b/src/memory.c index fa066cf2aa..5bc23284dc 100644 --- a/src/memory.c +++ b/src/memory.c @@ -46,11 +46,10 @@ static void try_to_free_memory(); /* * Note: if unsigned is 16 bits we can only allocate up to 64K with alloc(). - * Use lalloc for larger blocks. */ char_u *alloc(unsigned size) { - return lalloc((long_u)size, TRUE); + return xmalloc(size); } /// Try to free memory. Used when trying to recover from out of memory errors. @@ -216,11 +215,6 @@ char *xstrndup(const char *str, size_t len) } -char_u *lalloc(long_u size, int message) -{ - return (char_u *)xmalloc((size_t)size); -} - /* * Avoid repeating the error message many times (they take 1 second each). * Did_outofmem_msg is reset when a character is read. |