comparison src/misc1.c @ 15555:d89c5b339c2a v8.1.0785

patch 8.1.0785: depending on the configuration some functions are unused commit https://github.com/vim/vim/commit/113e10721f42fc2500b63fe95193f8665658a90c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 20 15:30:40 2019 +0100 patch 8.1.0785: depending on the configuration some functions are unused Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Jan 2019 15:45:07 +0100
parents dd725a8ab112
children 536dd2bc5ac9
comparison
equal deleted inserted replaced
15554:496f146a0836 15555:d89c5b339c2a
4670 && (newend == p || after_pathsep(p, newend))) 4670 && (newend == p || after_pathsep(p, newend)))
4671 return newend; 4671 return newend;
4672 return pend; 4672 return pend;
4673 } 4673 }
4674 4674
4675 #if defined(FEAT_EVAL) || defined(PROTO)
4675 void 4676 void
4676 vim_unsetenv(char_u *var) 4677 vim_unsetenv(char_u *var)
4677 { 4678 {
4678 #ifdef HAVE_UNSETENV 4679 #ifdef HAVE_UNSETENV
4679 unsetenv((char *)var); 4680 unsetenv((char *)var);
4680 #else 4681 #else
4681 vim_setenv(var, (char_u *)""); 4682 vim_setenv(var, (char_u *)"");
4682 #endif 4683 #endif
4683 } 4684 }
4685 #endif
4684 4686
4685 4687
4686 /* 4688 /*
4687 * Our portable version of setenv. 4689 * Our portable version of setenv.
4688 */ 4690 */