aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/typval.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-03-13 19:35:12 +0300
committerZyX <kp-pav@yandex.ru>2017-03-29 10:08:46 +0300
commitf0bbd1e825841c55a1f75d66a9caeaa50cc2259c (patch)
treeaf08d2e2ea80ceb201ac1ae1d57ee25dca0f7371 /src/nvim/eval/typval.c
parente43de6bb3e1efb58669ab904c5672f4ae87003c0 (diff)
downloadrneovim-f0bbd1e825841c55a1f75d66a9caeaa50cc2259c.tar.gz
rneovim-f0bbd1e825841c55a1f75d66a9caeaa50cc2259c.tar.bz2
rneovim-f0bbd1e825841c55a1f75d66a9caeaa50cc2259c.zip
unittests: Add tests for tv_clear()
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r--src/nvim/eval/typval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c
index 620da0032e..c245b9222e 100644
--- a/src/nvim/eval/typval.c
+++ b/src/nvim/eval/typval.c
@@ -1840,10 +1840,11 @@ static inline void _nothing_conv_dict_end(typval_T *const tv,
/// Free memory for a variable value and set the value to NULL or 0
///
/// @param[in,out] tv Value to free.
-void tv_clear(typval_T *tv)
+void tv_clear(typval_T *const tv)
{
if (tv != NULL && tv->v_type != VAR_UNKNOWN) {
- const int evn_ret = encode_vim_to_nothing(NULL, tv, "tv_clear argument");
+ const int evn_ret = encode_vim_to_nothing(NULL, tv,
+ _("tv_clear() argument"));
(void)evn_ret;
assert(evn_ret == OK);
}