diff guess.c @ 5:8a64459dab94

make guess_init() and guess_impl_register() static functions.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Thu, 12 Jun 2008 22:54:49 +0900
parents d9b6ff839eab
children
line wrap: on
line diff
--- a/guess.c	Thu Jun 12 20:22:07 2008 +0900
+++ b/guess.c	Thu Jun 12 22:54:49 2008 +0900
@@ -8,8 +8,9 @@
 
 static guess_impl *guess_impl_list = NULL;
 
-void guess_impl_register(const char *lang,
-    const char *(*impl)(const char *buf, int len))
+static void
+guess_impl_register(const char *lang,
+                    const char *(*impl)(const char *buf, int len))
 {
     guess_impl *iptr = calloc(sizeof(guess_impl), 1);
 
@@ -20,7 +21,8 @@
     guess_impl_list = iptr;
 }
 
-void guess_init(void)
+static void
+guess_init(void)
 {
     /* check if already initialized */
     if (guess_impl_list != NULL)
@@ -37,7 +39,8 @@
     guess_impl_register(GUESS_REGION_HW, guess_hw);
 }
 
-const char *guess_encoding(const char *inbuf, int buflen, const char *lang)
+const char *
+guess_encoding(const char *inbuf, int buflen, const char *lang)
 {
     guess_impl *iter;