diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-20 20:13:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-20 20:13:45 +0200 |
commit | 5843f5f37b0632e2d706abc9014bfd7d98f7b02e (patch) | |
tree | 2f1af5fd16214dfdf8edc8717e06a8b0aab81c1a /src/getchar.c | |
parent | 9a4a8c4d5993c6371486c895a515c2ad351e9aaa (diff) |
patch 8.1.1891: functions used in one file are globalv8.1.1891
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/getchar.c b/src/getchar.c index b0e72f58f2..2fb8438e85 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -91,7 +91,9 @@ static int last_recorded_len = 0; /* number of last recorded chars */ static int read_readbuf(buffheader_T *buf, int advance); static void init_typebuf(void); static void may_sync_undo(void); +static void free_typebuf(void); static void closescript(void); +static void updatescript(int c); static int vgetorpeek(int); static int inchar(char_u *buf, int maxlen, long wait_time); @@ -1263,7 +1265,7 @@ may_sync_undo(void) * Make "typebuf" empty and allocate new buffers. * Returns FAIL when out of memory. */ - int + static int alloc_typebuf(void) { typebuf.tb_buf = alloc(TYPELEN_INIT); @@ -1287,7 +1289,7 @@ alloc_typebuf(void) /* * Free the buffers of "typebuf". */ - void + static void free_typebuf(void) { if (typebuf.tb_buf == typebuf_init) @@ -1511,7 +1513,7 @@ before_blocking(void) * All the changed memfiles are synced if c == 0 or when the number of typed * characters reaches 'updatecount' and 'updatecount' is non-zero. */ - void + static void updatescript(int c) { static int count = 0; |