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/eval.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/nvim/eval.c') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 7408a7926a..31070c1118 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -14086,18 +14086,7 @@ static void f_system(typval_T *argvars, typval_T *rettv) res = get_cmd_output(get_tv_string(&argvars[0]), infile, kShellOptSilent | kShellOptCooked); -#ifdef USE_CR - /* translate into */ - if (res != NULL) { - char_u *s; - - for (s = res; *s; ++s) { - if (*s == CAR) - *s = NL; - } - } -#else -# ifdef USE_CRNL +#ifdef USE_CRNL /* translate into */ if (res != NULL) { char_u *s, *d; @@ -14110,7 +14099,6 @@ static void f_system(typval_T *argvars, typval_T *rettv) } *d = NUL; } -# endif #endif done: -- cgit