Mercurial > vim
diff src/profiler.c @ 17789:0f7ae8010787 v8.1.1891
patch 8.1.1891: functions used in one file are global
commit https://github.com/vim/vim/commit/5843f5f37b0632e2d706abc9014bfd7d98f7b02e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 20 20:13:45 2019 +0200
patch 8.1.1891: functions used in one file are global
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4840)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Aug 2019 20:15:07 +0200 |
parents | 8f44c630c366 |
children | 48fd0712dad8 |
line wrap: on
line diff
--- a/src/profiler.c +++ b/src/profiler.c @@ -249,7 +249,7 @@ profile_self(proftime_T *self, proftime_ /* * Get the current waittime. */ - void + static void profile_get_wait(proftime_T *tm) { *tm = prof_wait_time; @@ -270,7 +270,7 @@ profile_sub_wait(proftime_T *tm, proftim /* * Return TRUE if "tm1" and "tm2" are equal. */ - int + static int profile_equal(proftime_T *tm1, proftime_T *tm2) { # ifdef MSWIN