diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-27 13:49:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-27 13:49:24 +0100 |
commit | 0c1e3744ff0cd6c17af773046b876b428ff3dded (patch) | |
tree | 9e438566d524c8d980b5bc853915d90425999369 /src/evalfunc.c | |
parent | 5666fcd0bd794dd46813824cce63a38bcae63794 (diff) | |
download | vim-git-0c1e3744ff0cd6c17af773046b876b428ff3dded.tar.gz |
patch 8.2.0047: cannot skip tests for specific MS-Windows platformv8.2.0047
Problem: Cannot skip tests for specific MS-Windows platform.
Solution: Add windowsversion().
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 892a7538f..610eca46b 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -276,6 +276,7 @@ static void f_type(typval_T *argvars, typval_T *rettv); static void f_virtcol(typval_T *argvars, typval_T *rettv); static void f_visualmode(typval_T *argvars, typval_T *rettv); static void f_wildmenumode(typval_T *argvars, typval_T *rettv); +static void f_windowsversion(typval_T *argvars, typval_T *rettv); static void f_wordcount(typval_T *argvars, typval_T *rettv); static void f_xor(typval_T *argvars, typval_T *rettv); @@ -864,6 +865,7 @@ static funcentry_T global_functions[] = {"win_splitmove", 2, 3, FEARG_1, f_win_splitmove}, {"winbufnr", 1, 1, FEARG_1, f_winbufnr}, {"wincol", 0, 0, 0, f_wincol}, + {"windowsversion", 0, 0, 0, f_windowsversion}, {"winheight", 1, 1, FEARG_1, f_winheight}, {"winlayout", 0, 1, FEARG_1, f_winlayout}, {"winline", 0, 0, 0, f_winline}, @@ -8408,6 +8410,16 @@ f_wildmenumode(typval_T *argvars UNUSED, typval_T *rettv UNUSED) } /* + * "windowsversion()" function + */ + static void +f_windowsversion(typval_T *argvars UNUSED, typval_T *rettv UNUSED) +{ + rettv->v_type = VAR_STRING; + rettv->vval.v_string = vim_strsave((char_u *)windowsVersion); +} + +/* * "wordcount()" function */ static void |