aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-06-04 05:05:32 +0000
committerJustin M. Keyes <justinkz@gmail.com>2014-06-06 18:04:37 -0400
commit01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3 (patch)
tree2b1b77d574347919e38e6876db49e0559fb0d5a9 /src/nvim/diff.c
parent1e54b04bc0f68d65f8b751cb07aeb959258751f0 (diff)
downloadrneovim-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/diff.c')
-rw-r--r--src/nvim/diff.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index b859871f98..c125b726c4 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -50,9 +50,6 @@ static int diff_a_works = MAYBE;
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "diff.c.generated.h"
#endif
-#ifndef USE_CR
-# define tag_fgets vim_fgets
-#endif // ifndef USE_CR
/// Called when deleting or unloading a buffer: No longer make a diff with it.
///
@@ -702,7 +699,7 @@ void ex_diffupdate(exarg_T *eap)
for (;;) {
// There must be a line that contains "1c1".
- if (tag_fgets(linebuf, LBUFLEN, fd)) {
+ if (vim_fgets(linebuf, LBUFLEN, fd)) {
break;
}
@@ -1209,7 +1206,7 @@ static void diff_read(int idx_orig, int idx_new, char_u *fname)
}
for (;;) {
- if (tag_fgets(linebuf, LBUFLEN, fd)) {
+ if (vim_fgets(linebuf, LBUFLEN, fd)) {
// end of file
break;
}