Mercurial > vim
comparison src/evalfunc.c @ 24083:1765b5b0f08d v8.2.2583
patch 8.2.2583: Vim9: cannot compare result of getenv() with null
Commit: https://github.com/vim/vim/commit/7ad67d1150a1e48371d64e2919591c38b80e7cfc
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 10 16:08:26 2021 +0100
patch 8.2.2583: Vim9: cannot compare result of getenv() with null
Problem: Vim9: cannot compare result of getenv() with null.
Solution: Make the return type of getenv() "any". (closes https://github.com/vim/vim/issues/7943)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 10 Mar 2021 16:15:03 +0100 |
parents | 44be09b25619 |
children | c3d1f65365c4 |
comparison
equal
deleted
inserted
replaced
24082:25dfbd338255 | 24083:1765b5b0f08d |
---|---|
1019 {"getcursorcharpos", 0, 1, FEARG_1, NULL, | 1019 {"getcursorcharpos", 0, 1, FEARG_1, NULL, |
1020 ret_list_number, f_getcursorcharpos}, | 1020 ret_list_number, f_getcursorcharpos}, |
1021 {"getcwd", 0, 2, FEARG_1, NULL, | 1021 {"getcwd", 0, 2, FEARG_1, NULL, |
1022 ret_string, f_getcwd}, | 1022 ret_string, f_getcwd}, |
1023 {"getenv", 1, 1, FEARG_1, NULL, | 1023 {"getenv", 1, 1, FEARG_1, NULL, |
1024 ret_string, f_getenv}, | 1024 ret_any, f_getenv}, |
1025 {"getfontname", 0, 1, 0, NULL, | 1025 {"getfontname", 0, 1, 0, NULL, |
1026 ret_string, f_getfontname}, | 1026 ret_string, f_getfontname}, |
1027 {"getfperm", 1, 1, FEARG_1, NULL, | 1027 {"getfperm", 1, 1, FEARG_1, NULL, |
1028 ret_string, f_getfperm}, | 1028 ret_string, f_getfperm}, |
1029 {"getfsize", 1, 1, FEARG_1, NULL, | 1029 {"getfsize", 1, 1, FEARG_1, NULL, |