diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-26 16:22:31 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-26 18:29:17 -0300 |
commit | 83161200c473293b2d8d69e3ee1899c6a7199e38 (patch) | |
tree | 8223ec9275425e55acfb3cf0ce61948c59b090f6 /src/vim.h | |
parent | bd78282940b246bad34c629fa81150d4073cc330 (diff) | |
download | rneovim-83161200c473293b2d8d69e3ee1899c6a7199e38.tar.gz rneovim-83161200c473293b2d8d69e3ee1899c6a7199e38.tar.bz2 rneovim-83161200c473293b2d8d69e3ee1899c6a7199e38.zip |
Remove MEM_PROFILE related code
Code around `#ifdef MEM_PROFILE` was used to profile vim's memory
comsumption. It's very likely broken as new code is using malloc() and free()
directly.
In this day and age, valgrind can solve in a much reliable way what
this code was trying to do.
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1388,11 +1388,7 @@ typedef int VimClipboard; /* This is required for the prototypes. */ /* Note: a NULL argument for vim_realloc() is not portable, don't use it. */ -#if defined(MEM_PROFILE) -# define vim_realloc(ptr, size) mem_realloc((ptr), (size)) -#else -# define vim_realloc(ptr, size) realloc((ptr), (size)) -#endif +#define vim_realloc(ptr, size) realloc((ptr), (size)) /* * The following macros stop display/event loop nesting at the wrong time. |