diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-04 22:29:14 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-04 22:29:14 +0200 |
commit | a0d1fef4ebb693696464c5e22e33269f724b8e0e (patch) | |
tree | 4c29126b625309533e0b6f0423ce4b66bae392b8 /src/evalfunc.c | |
parent | a5a7882ea4a21944924b778208e1d54734891033 (diff) |
patch 8.1.1987: more functions can be used as methodsv8.1.1987
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 13326e32b9..676f0376a4 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -684,32 +684,32 @@ static funcentry_T global_functions[] = #if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) {"pyxeval", 1, 1, FEARG_1, f_pyxeval}, #endif - {"range", 1, 3, 0, f_range}, - {"readdir", 1, 2, 0, f_readdir}, - {"readfile", 1, 3, 0, f_readfile}, + {"range", 1, 3, FEARG_1, f_range}, + {"readdir", 1, 2, FEARG_1, f_readdir}, + {"readfile", 1, 3, FEARG_1, f_readfile}, {"reg_executing", 0, 0, 0, f_reg_executing}, {"reg_recording", 0, 0, 0, f_reg_recording}, - {"reltime", 0, 2, 0, f_reltime}, + {"reltime", 0, 2, FEARG_1, f_reltime}, #ifdef FEAT_FLOAT - {"reltimefloat", 1, 1, 0, f_reltimefloat}, -#endif - {"reltimestr", 1, 1, 0, f_reltimestr}, - {"remote_expr", 2, 4, 0, f_remote_expr}, - {"remote_foreground", 1, 1, 0, f_remote_foreground}, - {"remote_peek", 1, 2, 0, f_remote_peek}, - {"remote_read", 1, 2, 0, f_remote_read}, - {"remote_send", 2, 3, 0, f_remote_send}, - {"remote_startserver", 1, 1, 0, f_remote_startserver}, + {"reltimefloat", 1, 1, FEARG_1, f_reltimefloat}, +#endif + {"reltimestr", 1, 1, FEARG_1, f_reltimestr}, + {"remote_expr", 2, 4, FEARG_1, f_remote_expr}, + {"remote_foreground", 1, 1, FEARG_1, f_remote_foreground}, + {"remote_peek", 1, 2, FEARG_1, f_remote_peek}, + {"remote_read", 1, 2, FEARG_1, f_remote_read}, + {"remote_send", 2, 3, FEARG_1, f_remote_send}, + {"remote_startserver", 1, 1, FEARG_1, f_remote_startserver}, {"remove", 2, 3, FEARG_1, f_remove}, - {"rename", 2, 2, 0, f_rename}, + {"rename", 2, 2, FEARG_1, f_rename}, {"repeat", 2, 2, FEARG_1, f_repeat}, - {"resolve", 1, 1, 0, f_resolve}, + {"resolve", 1, 1, FEARG_1, f_resolve}, {"reverse", 1, 1, FEARG_1, f_reverse}, #ifdef FEAT_FLOAT {"round", 1, 1, FEARG_1, f_round}, #endif #ifdef FEAT_RUBY - {"rubyeval", 1, 1, 0, f_rubyeval}, + {"rubyeval", 1, 1, FEARG_1, f_rubyeval}, #endif {"screenattr", 2, 2, 0, f_screenattr}, {"screenchar", 2, 2, 0, f_screenchar}, |