comparison src/regexp_nfa.c @ 26883:7f150a4936f2 v8.2.3970

patch 8.2.3970: error messages are spread out Commit: https://github.com/vim/vim/commit/74409f62790a93daf0965c71da01ff76aa0fa5a5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 15:58:22 2022 +0000 patch 8.2.3970: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 17:00:04 +0100
parents fc859aea8cec
children b34ddbca305c
comparison
equal deleted inserted replaced
26882:196f4d7e2a38 26883:7f150a4936f2
4658 size_t newsize = newlen * sizeof(nfa_thread_T); 4658 size_t newsize = newlen * sizeof(nfa_thread_T);
4659 nfa_thread_T *newt; 4659 nfa_thread_T *newt;
4660 4660
4661 if ((long)(newsize >> 10) >= p_mmp) 4661 if ((long)(newsize >> 10) >= p_mmp)
4662 { 4662 {
4663 emsg(_(e_maxmempat)); 4663 emsg(_(e_pattern_uses_more_memory_than_maxmempattern));
4664 --depth; 4664 --depth;
4665 return NULL; 4665 return NULL;
4666 } 4666 }
4667 if (subs != &temp_subs) 4667 if (subs != &temp_subs)
4668 { 4668 {
5000 size_t newsize = newlen * sizeof(nfa_thread_T); 5000 size_t newsize = newlen * sizeof(nfa_thread_T);
5001 nfa_thread_T *newl; 5001 nfa_thread_T *newl;
5002 5002
5003 if ((long)(newsize >> 10) >= p_mmp) 5003 if ((long)(newsize >> 10) >= p_mmp)
5004 { 5004 {
5005 emsg(_(e_maxmempat)); 5005 emsg(_(e_pattern_uses_more_memory_than_maxmempattern));
5006 return NULL; 5006 return NULL;
5007 } 5007 }
5008 newl = alloc(newsize); 5008 newl = alloc(newsize);
5009 if (newl == NULL) 5009 if (newl == NULL)
5010 return NULL; 5010 return NULL;