Mercurial > vim
diff src/ex_cmds2.c @ 18051:d1e77015f60b v8.1.2021
patch 8.1.2021: some global functions can be local to the file
Commit: https://github.com/vim/vim/commit/840d16fd36bfd1a9fac8200e3dc016b1e3f9c328
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 10 21:27:18 2019 +0200
patch 8.1.2021: some global functions can be local to the file
Problem: Some global functions can be local to the file.
Solution: Add "static". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4917)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 10 Sep 2019 21:30:06 +0200 |
parents | 5c8906f653f5 |
children | 8f05b3cf8557 |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -260,7 +260,7 @@ check_due_timer(void) /* * Find a timer by ID. Returns NULL if not found; */ - timer_T * + static timer_T * find_timer(long id) { timer_T *timer; @@ -291,7 +291,7 @@ stop_timer(timer_T *timer) } } - void + static void stop_all_timers(void) { timer_T *timer; @@ -304,7 +304,7 @@ stop_all_timers(void) } } - void + static void add_timer_info(typval_T *rettv, timer_T *timer) { list_T *list = rettv->vval.v_list; @@ -338,7 +338,7 @@ add_timer_info(typval_T *rettv, timer_T } } - void + static void add_timer_info_all(typval_T *rettv) { timer_T *timer;