Mercurial > vim
comparison src/mbyte.c @ 14862:27b9a84395b5 v8.1.0443
patch 8.1.0443: unnecessary static function prototypes
commit https://github.com/vim/vim/commit/6dff58f15cede9139b2fcfc64c9064326ea3d3b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 30 21:43:26 2018 +0200
patch 8.1.0443: unnecessary static function prototypes
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Sep 2018 21:45:07 +0200 |
parents | 193471015e1a |
children | 55ccc2d353bd |
comparison
equal
deleted
inserted
replaced
14861:41fbdae837df | 14862:27b9a84395b5 |
---|---|
136 # endif | 136 # endif |
137 #endif | 137 #endif |
138 | 138 |
139 #if defined(FEAT_MBYTE) || defined(PROTO) | 139 #if defined(FEAT_MBYTE) || defined(PROTO) |
140 | 140 |
141 static int enc_canon_search(char_u *name); | |
142 static int dbcs_char2len(int c); | 141 static int dbcs_char2len(int c); |
143 static int dbcs_char2bytes(int c, char_u *buf); | 142 static int dbcs_char2bytes(int c, char_u *buf); |
144 static int dbcs_ptr2len(char_u *p); | 143 static int dbcs_ptr2len(char_u *p); |
145 static int dbcs_ptr2len_len(char_u *p, int size); | 144 static int dbcs_ptr2len_len(char_u *p, int size); |
146 static int utf_ptr2cells_len(char_u *p, int size); | 145 static int utf_ptr2cells_len(char_u *p, int size); |
147 static int dbcs_char2cells(int c); | 146 static int dbcs_char2cells(int c); |
148 static int dbcs_ptr2cells_len(char_u *p, int size); | 147 static int dbcs_ptr2cells_len(char_u *p, int size); |
149 static int dbcs_ptr2char(char_u *p); | 148 static int dbcs_ptr2char(char_u *p); |
150 static int utf_safe_read_char_adv(char_u **s, size_t *n); | |
151 | 149 |
152 /* | 150 /* |
153 * Lookup table to quickly get the length in bytes of a UTF-8 character from | 151 * Lookup table to quickly get the length in bytes of a UTF-8 character from |
154 * the first byte of a UTF-8 string. | 152 * the first byte of a UTF-8 string. |
155 * Bytes which are illegal when used as the first byte have a 1. | 153 * Bytes which are illegal when used as the first byte have a 1. |
3131 {0x118a0,0x118bf,1,32}, | 3129 {0x118a0,0x118bf,1,32}, |
3132 {0x16e40,0x16e5f,1,32}, | 3130 {0x16e40,0x16e5f,1,32}, |
3133 {0x1e900,0x1e921,1,34} | 3131 {0x1e900,0x1e921,1,34} |
3134 }; | 3132 }; |
3135 | 3133 |
3136 static int utf_convert(int a, convertStruct table[], int tableSize); | |
3137 static int utf_strnicmp(char_u *s1, char_u *s2, size_t n1, size_t n2); | |
3138 | |
3139 /* | 3134 /* |
3140 * Generic conversion function for case operations. | 3135 * Generic conversion function for case operations. |
3141 * Return the converted equivalent of "a", which is a UCS-4 character. Use | 3136 * Return the converted equivalent of "a", which is a UCS-4 character. Use |
3142 * the given conversion "table". Uses binary search on "table". | 3137 * the given conversion "table". Uses binary search on "table". |
3143 */ | 3138 */ |
4540 } | 4535 } |
4541 # endif | 4536 # endif |
4542 | 4537 |
4543 # if defined(USE_ICONV) || defined(PROTO) | 4538 # if defined(USE_ICONV) || defined(PROTO) |
4544 | 4539 |
4545 static char_u *iconv_string(vimconv_T *vcp, char_u *str, int slen, int *unconvlenp, int *resultlenp); | |
4546 | |
4547 /* | 4540 /* |
4548 * Call iconv_open() with a check if iconv() works properly (there are broken | 4541 * Call iconv_open() with a check if iconv() works properly (there are broken |
4549 * versions). | 4542 * versions). |
4550 * Returns (void *)-1 if failed. | 4543 * Returns (void *)-1 if failed. |
4551 * (should return iconv_t, but that causes problems with prototypes). | 4544 * (should return iconv_t, but that causes problems with prototypes). |
6051 | 6044 |
6052 static int xim_real_init(Window x11_window, Display *x11_display); | 6045 static int xim_real_init(Window x11_window, Display *x11_display); |
6053 | 6046 |
6054 | 6047 |
6055 # ifdef USE_X11R6_XIM | 6048 # ifdef USE_X11R6_XIM |
6056 static void xim_destroy_cb(XIM im, XPointer client_data, XPointer call_data); | |
6057 | |
6058 static void | 6049 static void |
6059 xim_instantiate_cb( | 6050 xim_instantiate_cb( |
6060 Display *display, | 6051 Display *display, |
6061 XPointer client_data UNUSED, | 6052 XPointer client_data UNUSED, |
6062 XPointer call_data UNUSED) | 6053 XPointer call_data UNUSED) |