Mercurial > vim
diff src/vim9script.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 | 8433e5c87651 |
children | c8809b8d19de |
line wrap: on
line diff
--- a/src/vim9script.c +++ b/src/vim9script.c @@ -115,6 +115,7 @@ ex_vim9script(exarg_T *eap UNUSED) #endif } +#if defined(FEAT_EVAL) || defined(PROTO) /* * When in Vim9 script give an error and return FAIL. */ @@ -159,6 +160,7 @@ vim9_bad_comment(char_u *p) } return FALSE; } +#endif /* * Return TRUE if "p" points at a "#" not followed by one '{'.