comparison src/tag.c @ 13244:ac42c4b11dbc v8.0.1496

patch 8.0.1496: clearing a pointer takes two lines commit https://github.com/vim/vim/commit/d23a823669d93fb2a570a039173eefe4856ac806 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 10 18:45:26 2018 +0100 patch 8.0.1496: clearing a pointer takes two lines Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Feb 2018 19:00:07 +0100
parents b88fa651c824
children 69517d67421f
comparison
equal deleted inserted replaced
13243:899b19739188 13244:ac42c4b11dbc
1089 * Free cached tags. 1089 * Free cached tags.
1090 */ 1090 */
1091 void 1091 void
1092 tag_freematch(void) 1092 tag_freematch(void)
1093 { 1093 {
1094 vim_free(tagmatchname); 1094 VIM_CLEAR(tagmatchname);
1095 tagmatchname = NULL;
1096 } 1095 }
1097 1096
1098 static void 1097 static void
1099 taglen_advance(int l) 1098 taglen_advance(int l)
1100 { 1099 {
2618 do_tag(NULL, DT_FREE, 0, 0, 0); 2617 do_tag(NULL, DT_FREE, 0, 0, 0);
2619 tag_freematch(); 2618 tag_freematch();
2620 2619
2621 # if defined(FEAT_QUICKFIX) 2620 # if defined(FEAT_QUICKFIX)
2622 if (ptag_entry.tagname) 2621 if (ptag_entry.tagname)
2623 { 2622 VIM_CLEAR(ptag_entry.tagname);
2624 vim_free(ptag_entry.tagname);
2625 ptag_entry.tagname = NULL;
2626 }
2627 # endif 2623 # endif
2628 } 2624 }
2629 #endif 2625 #endif
2630 2626
2631 /* 2627 /*