0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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 #4840)
This commit is contained in:
Bram Moolenaar
2019-08-20 20:13:45 +02:00
parent 9a4a8c4d59
commit 5843f5f37b
67 changed files with 162 additions and 178 deletions

View File

@@ -123,6 +123,7 @@ static void unserialize_pos(bufinfo_T *bi, pos_T *pos);
static void serialize_visualinfo(bufinfo_T *bi, visualinfo_T *info);
static void unserialize_visualinfo(bufinfo_T *bi, visualinfo_T *info);
#endif
static void u_saveline(linenr_T lnum);
#define U_ALLOC_LINE(size) lalloc(size, FALSE)
@@ -3435,7 +3436,7 @@ u_clearall(buf_T *buf)
/*
* Save the line "lnum" for the "U" command.
*/
void
static void
u_saveline(linenr_T lnum)
{
if (lnum == curbuf->b_u_line_lnum) /* line is already saved */