Mercurial > vim
comparison src/tag.c @ 1541:0d0bf7598dcb v7.1.256
updated for version 7.1-256
author | vimboss |
---|---|
date | Wed, 20 Feb 2008 11:24:52 +0000 |
parents | cc4fe241baa3 |
children | 73fe8baea242 |
comparison
equal
deleted
inserted
replaced
1540:ca5b52e99385 | 1541:0d0bf7598dcb |
---|---|
2667 mch_memmove(filename + 1, filename, STRLEN(filename) + 1); | 2667 mch_memmove(filename + 1, filename, STRLEN(filename) + 1); |
2668 *filename++ = NUL; | 2668 *filename++ = NUL; |
2669 | 2669 |
2670 tnp->tn_search_ctx = vim_findfile_init(buf, filename, | 2670 tnp->tn_search_ctx = vim_findfile_init(buf, filename, |
2671 r_ptr, 100, | 2671 r_ptr, 100, |
2672 FALSE, /* don't free visited list */ | 2672 FALSE, /* don't free visited list */ |
2673 FALSE, /* we search for a file */ | 2673 FINDFILE_FILE, /* we search for a file */ |
2674 tnp->tn_search_ctx, TRUE, curbuf->b_ffname); | 2674 tnp->tn_search_ctx, TRUE, curbuf->b_ffname); |
2675 if (tnp->tn_search_ctx != NULL) | 2675 if (tnp->tn_search_ctx != NULL) |
2676 tnp->tn_did_filefind_init = TRUE; | 2676 tnp->tn_did_filefind_init = TRUE; |
2677 } | 2677 } |
2678 } | 2678 } |
2689 tagname_free(tnp) | 2689 tagname_free(tnp) |
2690 tagname_T *tnp; | 2690 tagname_T *tnp; |
2691 { | 2691 { |
2692 vim_free(tnp->tn_tags); | 2692 vim_free(tnp->tn_tags); |
2693 vim_findfile_cleanup(tnp->tn_search_ctx); | 2693 vim_findfile_cleanup(tnp->tn_search_ctx); |
2694 tnp->tn_search_ctx = NULL; | |
2694 ga_clear_strings(&tag_fnames); | 2695 ga_clear_strings(&tag_fnames); |
2695 } | 2696 } |
2696 | 2697 |
2697 /* | 2698 /* |
2698 * Parse one line from the tags file. Find start/end of tag name, start/end of | 2699 * Parse one line from the tags file. Find start/end of tag name, start/end of |