summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorDominique Pelle <dominique.pelle@gmail.com>2022-01-08 12:41:16 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-08 12:41:16 +0000
commit748b308eebe8d8860888eb27da08333f175d547d (patch)
treedcb524e3faab88b0238bd892cdfa2870252c7e51 /src/ex_docmd.c
parent370791465e745354d66696de8cbd15504cf958c0 (diff)
patch 8.2.4038: various code not used when features are disabledv8.2.4038
Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index ea6dbb64c2..be95992f74 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3082,6 +3082,7 @@ parse_command_modifiers(
return OK;
}
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Return TRUE if "cmod" has anything set.
*/
@@ -3110,6 +3111,7 @@ cmdmod_error(int ignore_silent)
}
return FALSE;
}
+#endif
/*
* Apply the command modifiers. Saves current state in "cmdmod", call
@@ -3393,6 +3395,7 @@ append_command(char_u *cmd)
*d = NUL;
}
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* If "start" points "&opt", "&l:opt", "&g:opt" or "$ENV" return a pointer to
* the name. Otherwise just return "start".
@@ -3413,6 +3416,7 @@ skip_option_env_lead(char_u *start)
name += 1;
return name;
}
+#endif
/*
* Find an Ex command by its name, either built-in or user.