comparison src/option.c @ 10340:54249c31882a v8.0.0065

commit https://github.com/vim/vim/commit/40d3f137e751c0e9f5e7e6a587b93a52dd833d04 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 5 20:13:35 2016 +0100 patch 8.0.0065 Problem: Compiler warning for unused function in tiny build. (Tony Mechelynck) Solution: Add #ifdef.
author Christian Brabandt <cb@256bit.org>
date Sat, 05 Nov 2016 20:15:04 +0100
parents 5adc318767be
children 59d01e335858
comparison
equal deleted inserted replaced
10339:388f4d2e7312 10340:54249c31882a
5820 #endif 5820 #endif
5821 } 5821 }
5822 return r; 5822 return r;
5823 } 5823 }
5824 5824
5825 #if defined(FEAT_KEYMAP) || defined(FEAT_AUTOCMD) || defined(FEAT_SYN_HL)
5825 /* 5826 /*
5826 * Return TRUE if "val" is a valid 'filetype' name. 5827 * Return TRUE if "val" is a valid 'filetype' name.
5827 * Also used for 'syntax' and 'keymap'. 5828 * Also used for 'syntax' and 'keymap'.
5828 */ 5829 */
5829 static int 5830 static int
5834 for (s = val; *s != NUL; ++s) 5835 for (s = val; *s != NUL; ++s)
5835 if (!ASCII_ISALNUM(*s) && vim_strchr((char_u *)".-_", *s) == NULL) 5836 if (!ASCII_ISALNUM(*s) && vim_strchr((char_u *)".-_", *s) == NULL)
5836 return FALSE; 5837 return FALSE;
5837 return TRUE; 5838 return TRUE;
5838 } 5839 }
5840 #endif
5839 5841
5840 /* 5842 /*
5841 * Handle string options that need some action to perform when changed. 5843 * Handle string options that need some action to perform when changed.
5842 * Returns NULL for success, or an error message for an error. 5844 * Returns NULL for success, or an error message for an error.
5843 */ 5845 */