Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
4132:97c9942586a4 | 4133:36fd800b8c6c |
---|---|
1732 /* When the last file has not been edited :q has to be typed twice. */ | 1732 /* When the last file has not been edited :q has to be typed twice. */ |
1733 if (quitmore | 1733 if (quitmore |
1734 #ifdef FEAT_EVAL | 1734 #ifdef FEAT_EVAL |
1735 /* avoid that a function call in 'statusline' does this */ | 1735 /* avoid that a function call in 'statusline' does this */ |
1736 && !getline_equal(fgetline, cookie, get_func_line) | 1736 && !getline_equal(fgetline, cookie, get_func_line) |
1737 #endif | |
1738 #ifdef FEAT_AUTOCMD | |
1737 /* avoid that an autocommand, e.g. QuitPre, does this */ | 1739 /* avoid that an autocommand, e.g. QuitPre, does this */ |
1738 && !getline_equal(fgetline, cookie, getnextac) | 1740 && !getline_equal(fgetline, cookie, getnextac) |
1739 #endif | 1741 #endif |
1740 ) | 1742 ) |
1741 --quitmore; | 1743 --quitmore; |
5373 #if defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL) | 5375 #if defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL) |
5374 vim_free(compl_arg); | 5376 vim_free(compl_arg); |
5375 #endif | 5377 #endif |
5376 return FAIL; | 5378 return FAIL; |
5377 } | 5379 } |
5378 | 5380 #endif |
5381 | |
5382 #if defined(FEAT_USR_CMDS) || defined(FEAT_EVAL) || defined(PROTO) | |
5379 /* | 5383 /* |
5380 * List of names for completion for ":command" with the EXPAND_ flag. | 5384 * List of names for completion for ":command" with the EXPAND_ flag. |
5381 * Must be alphabetical for completion. | 5385 * Must be alphabetical for completion. |
5382 */ | 5386 */ |
5383 static struct | 5387 static struct |
5428 {EXPAND_TAGS_LISTFILES, "tag_listfiles"}, | 5432 {EXPAND_TAGS_LISTFILES, "tag_listfiles"}, |
5429 {EXPAND_USER, "user"}, | 5433 {EXPAND_USER, "user"}, |
5430 {EXPAND_USER_VARS, "var"}, | 5434 {EXPAND_USER_VARS, "var"}, |
5431 {0, NULL} | 5435 {0, NULL} |
5432 }; | 5436 }; |
5433 | 5437 #endif |
5438 | |
5439 #if defined(FEAT_USR_CMDS) || defined(PROTO) | |
5434 static void | 5440 static void |
5435 uc_list(name, name_len) | 5441 uc_list(name, name_len) |
5436 char_u *name; | 5442 char_u *name; |
5437 size_t name_len; | 5443 size_t name_len; |
5438 { | 5444 { |
6373 parse_compl_arg(value, vallen, complp, argt, compl_arg) | 6379 parse_compl_arg(value, vallen, complp, argt, compl_arg) |
6374 char_u *value; | 6380 char_u *value; |
6375 int vallen; | 6381 int vallen; |
6376 int *complp; | 6382 int *complp; |
6377 long *argt; | 6383 long *argt; |
6378 char_u **compl_arg; | 6384 char_u **compl_arg UNUSED; |
6379 { | 6385 { |
6380 char_u *arg = NULL; | 6386 char_u *arg = NULL; |
6387 # if defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL) | |
6381 size_t arglen = 0; | 6388 size_t arglen = 0; |
6389 # endif | |
6382 int i; | 6390 int i; |
6383 int valend = vallen; | 6391 int valend = vallen; |
6384 | 6392 |
6385 /* Look for any argument part - which is the part after any ',' */ | 6393 /* Look for any argument part - which is the part after any ',' */ |
6386 for (i = 0; i < vallen; ++i) | 6394 for (i = 0; i < vallen; ++i) |
6387 { | 6395 { |
6388 if (value[i] == ',') | 6396 if (value[i] == ',') |
6389 { | 6397 { |
6390 arg = &value[i + 1]; | 6398 arg = &value[i + 1]; |
6399 # if defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL) | |
6391 arglen = vallen - i - 1; | 6400 arglen = vallen - i - 1; |
6401 # endif | |
6392 valend = i; | 6402 valend = i; |
6393 break; | 6403 break; |
6394 } | 6404 } |
6395 } | 6405 } |
6396 | 6406 |