comparison src/quickfix.c @ 7558:9a4c9dccd603 v7.4.1079

commit https://github.com/vim/vim/commit/b86a343280b08d6701da68ee0651e960a0a7a61c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 10 16:00:53 2016 +0100 patch 7.4.1079 Problem: New include file missing from distribution. Missing changes to quickfix code. Solution: Add alloc.h to the list of distributed files. Use the enum in quickfix code.
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jan 2016 16:15:04 +0100
parents cc0398578d2f
children 4d34891e98f4
comparison
equal deleted inserted replaced
7557:502ca0a62fd8 7558:9a4c9dccd603
248 {'p', "[- .]*"}, 248 {'p', "[- .]*"},
249 {'v', "\\d\\+"}, 249 {'v', "\\d\\+"},
250 {'s', ".\\+"} 250 {'s', ".\\+"}
251 }; 251 };
252 252
253 namebuf = alloc_id(CMDBUFFSIZE + 1, 3); 253 namebuf = alloc_id(CMDBUFFSIZE + 1, aid_qf_namebuf);
254 errmsg = alloc_id(CMDBUFFSIZE + 1, 4); 254 errmsg = alloc_id(CMDBUFFSIZE + 1, aid_qf_errmsg);
255 pattern = alloc_id(CMDBUFFSIZE + 1, 5); 255 pattern = alloc_id(CMDBUFFSIZE + 1, aid_qf_pattern);
256 if (namebuf == NULL || errmsg == NULL || pattern == NULL) 256 if (namebuf == NULL || errmsg == NULL || pattern == NULL)
257 goto qf_init_end; 257 goto qf_init_end;
258 258
259 if (efile != NULL && (fd = mch_fopen((char *)efile, "r")) == NULL) 259 if (efile != NULL && (fd = mch_fopen((char *)efile, "r")) == NULL)
260 { 260 {
3460 { 3460 {
3461 EMSG(_(e_nomatch)); 3461 EMSG(_(e_nomatch));
3462 goto theend; 3462 goto theend;
3463 } 3463 }
3464 3464
3465 dirname_start = alloc_id(MAXPATHL, 1); 3465 dirname_start = alloc_id(MAXPATHL, aid_qf_dirname_start);
3466 dirname_now = alloc_id(MAXPATHL, 2); 3466 dirname_now = alloc_id(MAXPATHL, aid_qf_dirname_now);
3467 if (dirname_start == NULL || dirname_now == NULL) 3467 if (dirname_start == NULL || dirname_now == NULL)
3468 goto theend; 3468 goto theend;
3469 3469
3470 /* Remember the current directory, because a BufRead autocommand that does 3470 /* Remember the current directory, because a BufRead autocommand that does
3471 * ":lcd %:p:h" changes the meaning of short path names. */ 3471 * ":lcd %:p:h" changes the meaning of short path names. */