diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-15 21:06:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-15 21:06:09 +0100 |
commit | 00590740081489db69f43d9f1c0e3f70e29ce6da (patch) | |
tree | 5200046e5c39885c50b5057cca9110975a629eb5 /src/tag.c | |
parent | e93e5a504f481bd0dad9c504d5fcf0e5f0dfc6e6 (diff) | |
download | vim-git-00590740081489db69f43d9f1c0e3f70e29ce6da.tar.gz |
patch 8.1.0927: USE_CR is never definedv8.1.0927
Problem: USE_CR is never defined.
Solution: Remove usage of USE_CR. (Ken Takata, closes #3958)
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 18 |
1 files changed, 5 insertions, 13 deletions
@@ -1146,14 +1146,6 @@ do_tags(exarg_T *eap UNUSED) 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 - #ifdef FEAT_TAG_BINS /* * Compare two strings, for length "len", ignoring case the ASCII way. @@ -1654,7 +1646,7 @@ find_tags( /* Adjust the search file offset to the correct position */ search_info.curr_offset_used = search_info.curr_offset; vim_fseek(fp, search_info.curr_offset, SEEK_SET); - 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 @@ -1666,13 +1658,13 @@ find_tags( vim_fseek(fp, search_info.low_offset, SEEK_SET); 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 = vim_ftell(fp); - eof = tag_fgets(lbuf, LSIZE, fp); + eof = vim_fgets(lbuf, LSIZE, fp); } if (eof) { @@ -1698,7 +1690,7 @@ find_tags( eof = cs_fgets(lbuf, LSIZE); else #endif - eof = tag_fgets(lbuf, LSIZE, fp); + eof = vim_fgets(lbuf, LSIZE, fp); } while (!eof && vim_isblankline(lbuf)); if (eof) @@ -1763,7 +1755,7 @@ line_read_in: { is_etag = 1; /* in case at the start */ state = TS_LINEAR; - if (!tag_fgets(ebuf, LSIZE, fp)) + if (!vim_fgets(ebuf, LSIZE, fp)) { for (p = ebuf; *p && *p != ','; p++) ; |