aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-08-07 02:20:12 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-08-07 02:20:12 -0400
commitad5ae68acd3b0edae564064dfdc2b5b950d0b4e4 (patch)
tree4e0abd7622a6fd1a832efd9a712d2594f2f464ef /src/nvim/regexp.c
parent1fa3a7d70a99127e5dde3fdb9aa19684febb2ac7 (diff)
parent8b72ae7c7875f47b7d775038700ee17ce71a2510 (diff)
downloadrneovim-ad5ae68acd3b0edae564064dfdc2b5b950d0b4e4.tar.gz
rneovim-ad5ae68acd3b0edae564064dfdc2b5b950d0b4e4.tar.bz2
rneovim-ad5ae68acd3b0edae564064dfdc2b5b950d0b4e4.zip
Merge #814 'Remove dead #ifdefed code'
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r--src/nvim/regexp.c6
1 files changed, 0 insertions, 6 deletions
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);