diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-10 21:27:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-10 21:27:18 +0200 |
commit | 840d16fd36bfd1a9fac8200e3dc016b1e3f9c328 (patch) | |
tree | e0b85aeb6c3da97a0f8096ef934372f9b297ba7b /src/mbyte.c | |
parent | d20dcb3d011da6111153109f6e46fbd5c7fe9fb6 (diff) | |
download | vim-git-840d16fd36bfd1a9fac8200e3dc016b1e3f9c328.tar.gz |
patch 8.1.2021: some global functions can be local to the filev8.1.2021
Problem: Some global functions can be local to the file.
Solution: Add "static". (Yegappan Lakshmanan, closes #4917)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index ff23ab6af..c214f3787 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -144,6 +144,7 @@ static int utf_ptr2cells_len(char_u *p, int size); static int dbcs_char2cells(int c); static int dbcs_ptr2cells_len(char_u *p, int size); static int dbcs_ptr2char(char_u *p); +static int dbcs_head_off(char_u *base, char_u *p); /* * Lookup table to quickly get the length in bytes of a UTF-8 character from @@ -3778,7 +3779,7 @@ latin_head_off(char_u *base UNUSED, char_u *p UNUSED) return 0; } - int + static int dbcs_head_off(char_u *base, char_u *p) { char_u *q; |