comparison src/quickfix.c @ 16768:695d9ef00b03 v8.1.1386

patch 8.1.1386: unessesary type casts for lalloc() commit https://github.com/vim/vim/commit/18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 24 19:39:03 2019 +0200 patch 8.1.1386: unessesary type casts for lalloc() Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 May 2019 19:45:05 +0200
parents ef00b6bc186b
children fc58fee685e2
comparison
equal deleted inserted replaced
16767:3959544fc067 16768:695d9ef00b03
538 goto parse_efm_error; 538 goto parse_efm_error;
539 539
540 while (efm[0] != NUL) 540 while (efm[0] != NUL)
541 { 541 {
542 // Allocate a new eformat structure and put it at the end of the list 542 // Allocate a new eformat structure and put it at the end of the list
543 fmt_ptr = (efm_T *)alloc_clear((unsigned)sizeof(efm_T)); 543 fmt_ptr = (efm_T *)alloc_clear(sizeof(efm_T));
544 if (fmt_ptr == NULL) 544 if (fmt_ptr == NULL)
545 goto parse_efm_error; 545 goto parse_efm_error;
546 if (fmt_first == NULL) // first one 546 if (fmt_first == NULL) // first one
547 fmt_first = fmt_ptr; 547 fmt_first = fmt_ptr;
548 else 548 else
2139 static qf_info_T * 2139 static qf_info_T *
2140 qf_alloc_stack(qfltype_T qfltype) 2140 qf_alloc_stack(qfltype_T qfltype)
2141 { 2141 {
2142 qf_info_T *qi; 2142 qf_info_T *qi;
2143 2143
2144 qi = (qf_info_T *)alloc_clear((unsigned)sizeof(qf_info_T)); 2144 qi = (qf_info_T *)alloc_clear(sizeof(qf_info_T));
2145 if (qi != NULL) 2145 if (qi != NULL)
2146 { 2146 {
2147 qi->qf_refcount++; 2147 qi->qf_refcount++;
2148 qi->qfl_type = qfltype; 2148 qi->qfl_type = qfltype;
2149 qi->qf_bufnr = INVALID_QFBUFNR; 2149 qi->qf_bufnr = INVALID_QFBUFNR;