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 #9491)
diff --git a/src/vim9script.c b/src/vim9script.c
index 4d16a2a..e5e2695 100644
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -115,6 +115,7 @@
#endif
}
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* When in Vim9 script give an error and return FAIL.
*/
@@ -159,6 +160,7 @@
}
return FALSE;
}
+#endif
/*
* Return TRUE if "p" points at a "#" not followed by one '{'.