0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

patch 8.1.1978: the eval.c file is too big

Problem:    The eval.c file is too big.
Solution:   Move filter() and map() to list.c.
This commit is contained in:
Bram Moolenaar
2019-09-04 14:41:14 +02:00
parent 19c8fe1925
commit 1e1d30048e
6 changed files with 221 additions and 219 deletions

View File

@@ -106,7 +106,6 @@ static void f_extend(typval_T *argvars, typval_T *rettv);
static void f_feedkeys(typval_T *argvars, typval_T *rettv);
static void f_filereadable(typval_T *argvars, typval_T *rettv);
static void f_filewritable(typval_T *argvars, typval_T *rettv);
static void f_filter(typval_T *argvars, typval_T *rettv);
static void f_finddir(typval_T *argvars, typval_T *rettv);
static void f_findfile(typval_T *argvars, typval_T *rettv);
#ifdef FEAT_FLOAT
@@ -192,7 +191,6 @@ static void f_log10(typval_T *argvars, typval_T *rettv);
#ifdef FEAT_LUA
static void f_luaeval(typval_T *argvars, typval_T *rettv);
#endif
static void f_map(typval_T *argvars, typval_T *rettv);
static void f_maparg(typval_T *argvars, typval_T *rettv);
static void f_mapcheck(typval_T *argvars, typval_T *rettv);
static void f_match(typval_T *argvars, typval_T *rettv);
@@ -3510,15 +3508,6 @@ findfilendir(
#endif
}
/*
* "filter()" function
*/
static void
f_filter(typval_T *argvars, typval_T *rettv)
{
filter_map(argvars, rettv, FALSE);
}
/*
* "finddir({fname}[, {path}[, {count}]])" function
*/
@@ -6800,15 +6789,6 @@ f_luaeval(typval_T *argvars, typval_T *rettv)
}
#endif
/*
* "map()" function
*/
static void
f_map(typval_T *argvars, typval_T *rettv)
{
filter_map(argvars, rettv, TRUE);
}
/*
* "maparg()" function
*/