Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
utf8.c: mark file-local function static
author
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Jan 2010 06:32:29 +0000
(22:32 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Jan 2010 09:06:09 +0000
(
01:06
-0800)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
utf8.c
patch
|
blob
|
history
utf8.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
cb58c93
)
diff --git
a/utf8.c
b/utf8.c
index 7ddff23fa77fbadf7723bca03d24ad5b8f2baca2..ab326ac83e0d9e81b06abff58b00a98341adcd36 100644
(file)
--- a/
utf8.c
+++ b/
utf8.c
@@
-163,7
+163,7
@@
static int git_wcwidth(ucs_char_t ch)
* If the string was not a valid UTF-8, *start pointer is set to NULL
* and the return value is undefined.
*/
* If the string was not a valid UTF-8, *start pointer is set to NULL
* and the return value is undefined.
*/
-ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p)
+
static
ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p)
{
unsigned char *s = (unsigned char *)*start;
ucs_char_t ch;
{
unsigned char *s = (unsigned char *)*start;
ucs_char_t ch;
diff --git
a/utf8.h
b/utf8.h
index ae30ae4c6e501e4766db93c94253fd404cd29357..c9738d83d991d89bbdd4c5a6442fcad2fdaaa4df 100644
(file)
--- a/
utf8.h
+++ b/
utf8.h
@@
-3,7
+3,6
@@
typedef unsigned int ucs_char_t; /* assuming 32bit int */
typedef unsigned int ucs_char_t; /* assuming 32bit int */
-ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p);
int utf8_width(const char **start, size_t *remainder_p);
int utf8_strwidth(const char *string);
int is_utf8(const char *text);
int utf8_width(const char **start, size_t *remainder_p);
int utf8_strwidth(const char *string);
int is_utf8(const char *text);