diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-06-04 05:05:32 +0000 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-06-06 18:04:37 -0400 |
commit | 01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3 (patch) | |
tree | 2b1b77d574347919e38e6876db49e0559fb0d5a9 /src/nvim/tag.c | |
parent | 1e54b04bc0f68d65f8b751cb07aeb959258751f0 (diff) | |
download | rneovim-01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3.tar.gz rneovim-01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3.tar.bz2 rneovim-01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3.zip |
Remove USE_CR and tag_fgets. #808
These features are only used by legacy Mac OS.
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r-- | src/nvim/tag.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 4be18b7b34..dad4dd51ce 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -987,13 +987,6 @@ void do_tags(exarg_T *eap) MSG_PUTS("\n>"); } -/* When not using a CR for line separator, use vim_fgets() to read tag lines. - * For the Mac use tag_fgets(). It can handle any line separator, but is much - * slower than vim_fgets(). - */ -#ifndef USE_CR -# define tag_fgets vim_fgets -#endif /* @@ -1355,7 +1348,7 @@ find_tags ( #else fseek(fp, (long)search_info.curr_offset, SEEK_SET); #endif - eof = tag_fgets(lbuf, LSIZE, fp); + eof = vim_fgets(lbuf, LSIZE, fp); if (!eof && search_info.curr_offset != 0) { /* The explicit cast is to work around a bug in gcc 3.4.2 * (repeated below). */ @@ -1369,12 +1362,12 @@ find_tags ( #endif search_info.curr_offset = search_info.low_offset; } - eof = tag_fgets(lbuf, LSIZE, fp); + eof = vim_fgets(lbuf, LSIZE, fp); } /* skip empty and blank lines */ while (!eof && vim_isblankline(lbuf)) { search_info.curr_offset = ftell(fp); - eof = tag_fgets(lbuf, LSIZE, fp); + eof = vim_fgets(lbuf, LSIZE, fp); } if (eof) { /* Hit end of file. Skip backwards. */ @@ -1393,7 +1386,7 @@ find_tags ( if (use_cscope) eof = cs_fgets(lbuf, LSIZE); else - eof = tag_fgets(lbuf, LSIZE, fp); + eof = vim_fgets(lbuf, LSIZE, fp); } while (!eof && vim_isblankline(lbuf)); if (eof) { |