0
0
mirror of https://github.com/vim/vim.git synced 2025-10-27 09:24:23 -04:00

patch 8.1.1513: all popup functionality is in functions, except :popupclear

Problem:    All popup functionality is in functions, except :popupclear.
Solution:   Add popup_clear() for consistency.  Also rename sound_stopall() to
            sound_clear().
This commit is contained in:
Bram Moolenaar
2019-06-10 13:11:22 +02:00
parent 38ea784fec
commit 3ff5f0f05d
12 changed files with 189 additions and 167 deletions

View File

@@ -156,12 +156,18 @@ f_sound_playevent(typval_T *argvars, typval_T *rettv)
sound_play_common(argvars, rettv, FALSE);
}
/*
* implementation of sound_playfile({path} [, {callback}])
*/
void
f_sound_playfile(typval_T *argvars, typval_T *rettv)
{
sound_play_common(argvars, rettv, TRUE);
}
/*
* implementation of sound_stop({id})
*/
void
f_sound_stop(typval_T *argvars, typval_T *rettv UNUSED)
{
@@ -169,8 +175,11 @@ f_sound_stop(typval_T *argvars, typval_T *rettv UNUSED)
ca_context_cancel(context, tv_get_number(&argvars[0]));
}
/*
* implementation of sound_clear()
*/
void
f_sound_stopall(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
f_sound_clear(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
{
if (context != NULL)
{