Remove USE_CR and tag_fgets. #808

These features are only used by legacy Mac OS.
This commit is contained in:
Justin M. Keyes
2014-06-04 05:05:32 +00:00
parent 1e54b04bc0
commit 01ca4600ba
7 changed files with 9 additions and 165 deletions

View File

@@ -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 <CR> into <NL> */
if (res != NULL) {
char_u *s;
for (s = res; *s; ++s) {
if (*s == CAR)
*s = NL;
}
}
#else
# ifdef USE_CRNL
#ifdef USE_CRNL
/* translate <CR><NL> into <NL> */
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: