Mercurial > vim
comparison src/evalfunc.c @ 23594:d3e064f54890 v8.2.2339
patch 8.2.2339: cannot get the type of a value as a string
Commit: https://github.com/vim/vim/commit/a47e05f04a5a5c0369c949157c24d09cbe64ad6a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 12 21:49:00 2021 +0100
patch 8.2.2339: cannot get the type of a value as a string
Problem: Cannot get the type of a value as a string.
Solution: Add typename().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 12 Jan 2021 22:00:06 +0100 |
parents | 2322b643e329 |
children | a9433f834693 |
comparison
equal
deleted
inserted
replaced
23593:934ad0b3ba7b | 23594:d3e064f54890 |
---|---|
1740 ret_string, f_trim}, | 1740 ret_string, f_trim}, |
1741 {"trunc", 1, 1, FEARG_1, NULL, | 1741 {"trunc", 1, 1, FEARG_1, NULL, |
1742 ret_float, FLOAT_FUNC(f_trunc)}, | 1742 ret_float, FLOAT_FUNC(f_trunc)}, |
1743 {"type", 1, 1, FEARG_1, NULL, | 1743 {"type", 1, 1, FEARG_1, NULL, |
1744 ret_number, f_type}, | 1744 ret_number, f_type}, |
1745 {"typename", 1, 1, FEARG_1, NULL, | |
1746 ret_string, f_typename}, | |
1745 {"undofile", 1, 1, FEARG_1, NULL, | 1747 {"undofile", 1, 1, FEARG_1, NULL, |
1746 ret_string, f_undofile}, | 1748 ret_string, f_undofile}, |
1747 {"undotree", 0, 0, 0, NULL, | 1749 {"undotree", 0, 0, 0, NULL, |
1748 ret_dict_any, f_undotree}, | 1750 ret_dict_any, f_undotree}, |
1749 {"uniq", 1, 3, FEARG_1, NULL, | 1751 {"uniq", 1, 3, FEARG_1, NULL, |