utf8.c: mark file-local function static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 11, 2010 at 22:32 UTC
5e133b8cf9b9b7f9483c47d19ffb40e10827ae51
2 files changed
+1
-2
utf8.c
+1
-1
@@ -163,7 +163,7 @@ static int git_wcwidth(ucs_char_t ch)
163
* If the string was not a valid UTF-8, *start pointer is set to NULL
164
* and the return value is undefined.
165
*/
166
-ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p)
166
+static ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p)
167
{
168
unsigned char *s = (unsigned char *)*start;
169
ucs_char_t ch;
utf8.h
-1
@@ -3,7 +3,6 @@
3
4
typedef unsigned int ucs_char_t; /* assuming 32bit int */
5
6
-ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p);
6
int utf8_width(const char **start, size_t *remainder_p);
7
int utf8_strwidth(const char *string);
8
int is_utf8(const char *text);