Mercurial > vim
comparison src/evalfunc.c @ 18017:988e5a868b60 v8.1.2004
patch 8.1.2004: more functions can be used as methods
Commit: https://github.com/vim/vim/commit/f6ed61e1489e40eada55a4f1782e1ed82bcad7d9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 7 19:05:09 2019 +0200
patch 8.1.2004: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 Sep 2019 19:15:04 +0200 |
parents | cf8e0c7e0cb9 |
children | 8a2fb21c23c0 |
comparison
equal
deleted
inserted
replaced
18016:834b7854aa3c | 18017:988e5a868b60 |
---|---|
713 {"sinh", 1, 1, FEARG_1, f_sinh}, | 713 {"sinh", 1, 1, FEARG_1, f_sinh}, |
714 #endif | 714 #endif |
715 {"sort", 1, 3, FEARG_1, f_sort}, | 715 {"sort", 1, 3, FEARG_1, f_sort}, |
716 #ifdef FEAT_SOUND | 716 #ifdef FEAT_SOUND |
717 {"sound_clear", 0, 0, 0, f_sound_clear}, | 717 {"sound_clear", 0, 0, 0, f_sound_clear}, |
718 {"sound_playevent", 1, 2, 0, f_sound_playevent}, | 718 {"sound_playevent", 1, 2, FEARG_1, f_sound_playevent}, |
719 {"sound_playfile", 1, 2, 0, f_sound_playfile}, | 719 {"sound_playfile", 1, 2, FEARG_1, f_sound_playfile}, |
720 {"sound_stop", 1, 1, 0, f_sound_stop}, | 720 {"sound_stop", 1, 1, FEARG_1, f_sound_stop}, |
721 #endif | 721 #endif |
722 {"soundfold", 1, 1, 0, f_soundfold}, | 722 {"soundfold", 1, 1, FEARG_1, f_soundfold}, |
723 {"spellbadword", 0, 1, 0, f_spellbadword}, | 723 {"spellbadword", 0, 1, FEARG_1, f_spellbadword}, |
724 {"spellsuggest", 1, 3, 0, f_spellsuggest}, | 724 {"spellsuggest", 1, 3, FEARG_1, f_spellsuggest}, |
725 {"split", 1, 3, FEARG_1, f_split}, | 725 {"split", 1, 3, FEARG_1, f_split}, |
726 #ifdef FEAT_FLOAT | 726 #ifdef FEAT_FLOAT |
727 {"sqrt", 1, 1, FEARG_1, f_sqrt}, | 727 {"sqrt", 1, 1, FEARG_1, f_sqrt}, |
728 {"str2float", 1, 1, FEARG_1, f_str2float}, | 728 {"str2float", 1, 1, FEARG_1, f_str2float}, |
729 #endif | 729 #endif |
730 {"str2list", 1, 2, FEARG_1, f_str2list}, | 730 {"str2list", 1, 2, FEARG_1, f_str2list}, |
731 {"str2nr", 1, 2, 0, f_str2nr}, | 731 {"str2nr", 1, 2, FEARG_1, f_str2nr}, |
732 {"strcharpart", 2, 3, 0, f_strcharpart}, | 732 {"strcharpart", 2, 3, FEARG_1, f_strcharpart}, |
733 {"strchars", 1, 2, 0, f_strchars}, | 733 {"strchars", 1, 2, FEARG_1, f_strchars}, |
734 {"strdisplaywidth", 1, 2, 0, f_strdisplaywidth}, | 734 {"strdisplaywidth", 1, 2, FEARG_1, f_strdisplaywidth}, |
735 #ifdef HAVE_STRFTIME | 735 #ifdef HAVE_STRFTIME |
736 {"strftime", 1, 2, 0, f_strftime}, | 736 {"strftime", 1, 2, FEARG_1, f_strftime}, |
737 #endif | 737 #endif |
738 {"strgetchar", 2, 2, 0, f_strgetchar}, | 738 {"strgetchar", 2, 2, FEARG_1, f_strgetchar}, |
739 {"stridx", 2, 3, 0, f_stridx}, | 739 {"stridx", 2, 3, FEARG_1, f_stridx}, |
740 {"string", 1, 1, FEARG_1, f_string}, | 740 {"string", 1, 1, FEARG_1, f_string}, |
741 {"strlen", 1, 1, FEARG_1, f_strlen}, | 741 {"strlen", 1, 1, FEARG_1, f_strlen}, |
742 {"strpart", 2, 3, 0, f_strpart}, | 742 {"strpart", 2, 3, FEARG_1, f_strpart}, |
743 {"strridx", 2, 3, 0, f_strridx}, | 743 {"strridx", 2, 3, FEARG_1, f_strridx}, |
744 {"strtrans", 1, 1, FEARG_1, f_strtrans}, | 744 {"strtrans", 1, 1, FEARG_1, f_strtrans}, |
745 {"strwidth", 1, 1, FEARG_1, f_strwidth}, | 745 {"strwidth", 1, 1, FEARG_1, f_strwidth}, |
746 {"submatch", 1, 2, 0, f_submatch}, | 746 {"submatch", 1, 2, FEARG_1, f_submatch}, |
747 {"substitute", 4, 4, FEARG_1, f_substitute}, | 747 {"substitute", 4, 4, FEARG_1, f_substitute}, |
748 {"swapinfo", 1, 1, 0, f_swapinfo}, | 748 {"swapinfo", 1, 1, FEARG_1, f_swapinfo}, |
749 {"swapname", 1, 1, 0, f_swapname}, | 749 {"swapname", 1, 1, FEARG_1, f_swapname}, |
750 {"synID", 3, 3, 0, f_synID}, | 750 {"synID", 3, 3, 0, f_synID}, |
751 {"synIDattr", 2, 3, FEARG_1, f_synIDattr}, | 751 {"synIDattr", 2, 3, FEARG_1, f_synIDattr}, |
752 {"synIDtrans", 1, 1, FEARG_1, f_synIDtrans}, | 752 {"synIDtrans", 1, 1, FEARG_1, f_synIDtrans}, |
753 {"synconcealed", 2, 2, 0, f_synconcealed}, | 753 {"synconcealed", 2, 2, 0, f_synconcealed}, |
754 {"synstack", 2, 2, 0, f_synstack}, | 754 {"synstack", 2, 2, 0, f_synstack}, |