aboutsummaryrefslogtreecommitdiff
path: root/src/memory.c
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2014-04-09 01:05:48 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-10 17:03:50 -0300
commit3fcdb2ab29f6285b4b5b4fd706db54a98b1a773f (patch)
tree0b4486d8e2f44c505ea59102b45385e682a6a98e /src/memory.c
parent321c67d610f0e0a8e818cfbb10d966033eb7db58 (diff)
downloadrneovim-3fcdb2ab29f6285b4b5b4fd706db54a98b1a773f.tar.gz
rneovim-3fcdb2ab29f6285b4b5b4fd706db54a98b1a773f.tar.bz2
rneovim-3fcdb2ab29f6285b4b5b4fd706db54a98b1a773f.zip
Replace `alloc_check` by `xmalloc`
`alloc_check` is just a wrapper around xmalloc, so we can remove it and use xmalloc directly. ref #487 / #488 The call was replaced in the following files: - ex_cmds.c - misc1.c - ops.c
Diffstat (limited to 'src/memory.c')
-rw-r--r--src/memory.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/memory.c b/src/memory.c
index 01b7543716..5a5a22aa1e 100644
--- a/src/memory.c
+++ b/src/memory.c
@@ -73,22 +73,6 @@ char_u *alloc_clear(unsigned size)
}
/*
- * alloc() with check for maximum line length
- */
-char_u *alloc_check(unsigned size)
-{
-#if !defined(UNIX) && !defined(__EMX__)
- if (sizeof(int) == 2 && size > 0x7fff) {
- /* Don't hide this message */
- emsg_silent = 0;
- EMSG(_("E340: Line is becoming too long"));
- return NULL;
- }
-#endif
- return lalloc((long_u)size, TRUE);
-}
-
-/*
* Allocate memory like lalloc() and set all bytes to zero.
*/
char_u *lalloc_clear(long_u size, int message)