comparison src/misc1.c @ 27018:268f6a3511df v8.2.4038

patch 8.2.4038: various code not used when features are disabled Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sat Jan 8 12:41:16 2022 +0000 patch 8.2.4038: various code not used when features are disabled Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Jan 2022 13:45:04 +0100
parents b34ddbca305c
children 41e0dcf38521
comparison
equal deleted inserted replaced
27017:da790d50f73d 27018:268f6a3511df
1894 unsetenv((char *)var); 1894 unsetenv((char *)var);
1895 #else 1895 #else
1896 vim_setenv(var, (char_u *)""); 1896 vim_setenv(var, (char_u *)"");
1897 #endif 1897 #endif
1898 } 1898 }
1899 #endif
1900 1899
1901 1900
1902 /* 1901 /*
1903 * Set environment variable "name" and take care of side effects. 1902 * Set environment variable "name" and take care of side effects.
1904 */ 1903 */
1912 didset_vim = FALSE; 1911 didset_vim = FALSE;
1913 else if (didset_vimruntime 1912 else if (didset_vimruntime
1914 && STRICMP(name, "VIMRUNTIME") == 0) 1913 && STRICMP(name, "VIMRUNTIME") == 0)
1915 didset_vimruntime = FALSE; 1914 didset_vimruntime = FALSE;
1916 } 1915 }
1916 #endif
1917 1917
1918 /* 1918 /*
1919 * Our portable version of setenv. 1919 * Our portable version of setenv.
1920 */ 1920 */
1921 void 1921 void
2228 breakcheck_count = 0; 2228 breakcheck_count = 0;
2229 ui_breakcheck(); 2229 ui_breakcheck();
2230 } 2230 }
2231 } 2231 }
2232 2232
2233 # if defined(FEAT_SPELL) || defined(PROTO)
2233 /* 2234 /*
2234 * Like line_breakcheck() but check 100 times less often. 2235 * Like line_breakcheck() but check 100 times less often.
2235 */ 2236 */
2236 void 2237 void
2237 veryfast_breakcheck(void) 2238 veryfast_breakcheck(void)
2240 { 2241 {
2241 breakcheck_count = 0; 2242 breakcheck_count = 0;
2242 ui_breakcheck(); 2243 ui_breakcheck();
2243 } 2244 }
2244 } 2245 }
2246 #endif
2245 2247
2246 #if defined(VIM_BACKTICK) || defined(FEAT_EVAL) \ 2248 #if defined(VIM_BACKTICK) || defined(FEAT_EVAL) \
2247 || (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \ 2249 || (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
2248 || defined(PROTO) 2250 || defined(PROTO)
2249 2251