Mercurial > vim
comparison src/mbyte.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 | 82543df649ba |
children | df141c730008 |
comparison
equal
deleted
inserted
replaced
18050:dd9de94583a5 | 18051:d1e77015f60b |
---|---|
142 static int dbcs_ptr2len_len(char_u *p, int size); | 142 static int dbcs_ptr2len_len(char_u *p, int size); |
143 static int utf_ptr2cells_len(char_u *p, int size); | 143 static int utf_ptr2cells_len(char_u *p, int size); |
144 static int dbcs_char2cells(int c); | 144 static int dbcs_char2cells(int c); |
145 static int dbcs_ptr2cells_len(char_u *p, int size); | 145 static int dbcs_ptr2cells_len(char_u *p, int size); |
146 static int dbcs_ptr2char(char_u *p); | 146 static int dbcs_ptr2char(char_u *p); |
147 static int dbcs_head_off(char_u *base, char_u *p); | |
147 | 148 |
148 /* | 149 /* |
149 * Lookup table to quickly get the length in bytes of a UTF-8 character from | 150 * Lookup table to quickly get the length in bytes of a UTF-8 character from |
150 * the first byte of a UTF-8 string. | 151 * the first byte of a UTF-8 string. |
151 * Bytes which are illegal when used as the first byte have a 1. | 152 * Bytes which are illegal when used as the first byte have a 1. |
3776 latin_head_off(char_u *base UNUSED, char_u *p UNUSED) | 3777 latin_head_off(char_u *base UNUSED, char_u *p UNUSED) |
3777 { | 3778 { |
3778 return 0; | 3779 return 0; |
3779 } | 3780 } |
3780 | 3781 |
3781 int | 3782 static int |
3782 dbcs_head_off(char_u *base, char_u *p) | 3783 dbcs_head_off(char_u *base, char_u *p) |
3783 { | 3784 { |
3784 char_u *q; | 3785 char_u *q; |
3785 | 3786 |
3786 /* It can't be a trailing byte when not using DBCS, at the start of the | 3787 /* It can't be a trailing byte when not using DBCS, at the start of the |