Commit Diff


commit - 3cfc831e45f4d4749e2748f94443f54c8bb48ffc
commit + 613281e454070fdd2fce96a5ef70af04ffb02f68
blob - d97985eb080d528a1eace62384c81917e36d7b47
blob + 0df3b69ead606f8dc306a10192e45832ac86b0a2
--- utf8.c
+++ utf8.c
@@ -76,7 +76,7 @@ utf8_decode(uint32_t* restrict state, uint32_t* restri
 }
 
 /* returns only 0, 1, 2 or 8.  assumes sizeof(wchar_t) is 4 */
-size_t
+static size_t
 utf8_chwidth(uint32_t cp)
 {
 	/* XXX: if we're running on a platform where sizeof(wchar_t)
blob - 168560fa3f66e8f31ca3586eda6a944954b7da96
blob + 2dec60084feb41ed7eb0678f55d2f77cea2fdd82
--- utf8.h
+++ utf8.h
@@ -22,7 +22,6 @@
 
 /* utf8.c */
 uint32_t	 utf8_decode(uint32_t*restrict, uint32_t*restrict, uint8_t);
-size_t		 utf8_chwidth(uint32_t);
 size_t		 utf8_snwidth(const char*, size_t);
 size_t		 utf8_swidth(const char*);
 size_t		 utf8_swidth_between(const char*, const char*);