From f42a4be834acaf6d12e21dde78b98b9ace45f6aa Mon Sep 17 00:00:00 2001 From: Pavel Platto Date: Sat, 7 Jun 2014 14:12:58 +0300 Subject: Remove SMALL_MALLOC. Used on MSDOS and WIN16. --- src/nvim/regexp.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index fd1b6116f2..ba7e4eb2d3 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -1256,12 +1256,6 @@ static regprog_T *bt_regcomp(char_u *expr, int re_flags) if (reg(REG_NOPAREN, &flags) == NULL) return NULL; - /* Small enough for pointer-storage convention? */ -#ifdef SMALL_MALLOC /* 16 bit storage allocation */ - if (regsize >= 65536L - 256L) - EMSG_RET_NULL(_("E339: Pattern too long")); -#endif - /* Allocate space. */ bt_regprog_T *r = xmalloc(sizeof(bt_regprog_T) + regsize); -- cgit