From 01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 4 Jun 2014 05:05:32 +0000 Subject: Remove USE_CR and tag_fgets. #808 These features are only used by legacy Mac OS. --- src/nvim/diff.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/nvim/diff.c') 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; } -- cgit