Mercurial > vim
diff src/ex_docmd.c @ 4133:36fd800b8c6c v7.3.819
updated for version 7.3.819
Problem: Compiling without +eval and with Python isn't working.
Solution: Add the eval feature when building with Python.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 14 Feb 2013 22:11:39 +0100 |
parents | c83cd3d01128 |
children | 454d35a43392 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -1734,6 +1734,8 @@ do_one_cmd(cmdlinep, sourcing, #ifdef FEAT_EVAL /* avoid that a function call in 'statusline' does this */ && !getline_equal(fgetline, cookie, get_func_line) +#endif +#ifdef FEAT_AUTOCMD /* avoid that an autocommand, e.g. QuitPre, does this */ && !getline_equal(fgetline, cookie, getnextac) #endif @@ -5375,7 +5377,9 @@ fail: #endif return FAIL; } - +#endif + +#if defined(FEAT_USR_CMDS) || defined(FEAT_EVAL) || defined(PROTO) /* * List of names for completion for ":command" with the EXPAND_ flag. * Must be alphabetical for completion. @@ -5430,7 +5434,9 @@ static struct {EXPAND_USER_VARS, "var"}, {0, NULL} }; - +#endif + +#if defined(FEAT_USR_CMDS) || defined(PROTO) static void uc_list(name, name_len) char_u *name; @@ -6375,10 +6381,12 @@ parse_compl_arg(value, vallen, complp, a int vallen; int *complp; long *argt; - char_u **compl_arg; + char_u **compl_arg UNUSED; { char_u *arg = NULL; +# if defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL) size_t arglen = 0; +# endif int i; int valend = vallen; @@ -6388,7 +6396,9 @@ parse_compl_arg(value, vallen, complp, a if (value[i] == ',') { arg = &value[i + 1]; +# if defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL) arglen = vallen - i - 1; +# endif valend = i; break; }