diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-07 19:05:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-07 19:05:09 +0200 |
commit | f6ed61e1489e40eada55a4f1782e1ed82bcad7d9 (patch) | |
tree | 59c67f3a73489d4536e741b883a9ad5f45c3cc2f /src/evalfunc.c | |
parent | 30e9b3c4256710781c3bd64efb33f138e4e074b3 (diff) |
patch 8.1.2004: more functions can be used as methodsv8.1.2004
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 | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 2461b6c304..19922da79a 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -715,38 +715,38 @@ static funcentry_T global_functions[] = {"sort", 1, 3, FEARG_1, f_sort}, #ifdef FEAT_SOUND {"sound_clear", 0, 0, 0, f_sound_clear}, - {"sound_playevent", 1, 2, 0, f_sound_playevent}, - {"sound_playfile", 1, 2, 0, f_sound_playfile}, - {"sound_stop", 1, 1, 0, f_sound_stop}, + {"sound_playevent", 1, 2, FEARG_1, f_sound_playevent}, + {"sound_playfile", 1, 2, FEARG_1, f_sound_playfile}, + {"sound_stop", 1, 1, FEARG_1, f_sound_stop}, #endif - {"soundfold", 1, 1, 0, f_soundfold}, - {"spellbadword", 0, 1, 0, f_spellbadword}, - {"spellsuggest", 1, 3, 0, f_spellsuggest}, + {"soundfold", 1, 1, FEARG_1, f_soundfold}, + {"spellbadword", 0, 1, FEARG_1, f_spellbadword}, + {"spellsuggest", 1, 3, FEARG_1, f_spellsuggest}, {"split", 1, 3, FEARG_1, f_split}, #ifdef FEAT_FLOAT {"sqrt", 1, 1, FEARG_1, f_sqrt}, {"str2float", 1, 1, FEARG_1, f_str2float}, #endif {"str2list", 1, 2, FEARG_1, f_str2list}, - {"str2nr", 1, 2, 0, f_str2nr}, - {"strcharpart", 2, 3, 0, f_strcharpart}, - {"strchars", 1, 2, 0, f_strchars}, - {"strdisplaywidth", 1, 2, 0, f_strdisplaywidth}, + {"str2nr", 1, 2, FEARG_1, f_str2nr}, + {"strcharpart", 2, 3, FEARG_1, f_strcharpart}, + {"strchars", 1, 2, FEARG_1, f_strchars}, + {"strdisplaywidth", 1, 2, FEARG_1, f_strdisplaywidth}, #ifdef HAVE_STRFTIME - {"strftime", 1, 2, 0, f_strftime}, + {"strftime", 1, 2, FEARG_1, f_strftime}, #endif - {"strgetchar", 2, 2, 0, f_strgetchar}, - {"stridx", 2, 3, 0, f_stridx}, + {"strgetchar", 2, 2, FEARG_1, f_strgetchar}, + {"stridx", 2, 3, FEARG_1, f_stridx}, {"string", 1, 1, FEARG_1, f_string}, {"strlen", 1, 1, FEARG_1, f_strlen}, - {"strpart", 2, 3, 0, f_strpart}, - {"strridx", 2, 3, 0, f_strridx}, + {"strpart", 2, 3, FEARG_1, f_strpart}, + {"strridx", 2, 3, FEARG_1, f_strridx}, {"strtrans", 1, 1, FEARG_1, f_strtrans}, {"strwidth", 1, 1, FEARG_1, f_strwidth}, - {"submatch", 1, 2, 0, f_submatch}, + {"submatch", 1, 2, FEARG_1, f_submatch}, {"substitute", 4, 4, FEARG_1, f_substitute}, - {"swapinfo", 1, 1, 0, f_swapinfo}, - {"swapname", 1, 1, 0, f_swapname}, + {"swapinfo", 1, 1, FEARG_1, f_swapinfo}, + {"swapname", 1, 1, FEARG_1, f_swapname}, {"synID", 3, 3, 0, f_synID}, {"synIDattr", 2, 3, FEARG_1, f_synIDattr}, {"synIDtrans", 1, 1, FEARG_1, f_synIDtrans}, |