mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
Remove lalloc_clear
Use `xcalloc` instead. Change some local variables to avoid casting.
This commit is contained in:

committed by
Thiago de Arruda

parent
204d3dfafc
commit
63cc8b6934
@@ -72,14 +72,6 @@ char_u *alloc_clear(unsigned size)
|
||||
return (char_u *)xcalloc(1, (size_t)size);
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate memory like lalloc() and set all bytes to zero.
|
||||
*/
|
||||
char_u *lalloc_clear(long_u size, int message)
|
||||
{
|
||||
return (char_u *)xcalloc(1, (size_t)size);
|
||||
}
|
||||
|
||||
/// Try to free memory. Used when trying to recover from out of memory errors.
|
||||
/// @see {xmalloc}
|
||||
static void try_to_free_memory()
|
||||
|
Reference in New Issue
Block a user