Fix missing static declarations for internal functions
authorPeter Colberg <peter@colberg.org>
Fri, 30 Oct 2015 19:24:34 +0000 (15:24 -0400)
committerPeter Colberg <peter@colberg.org>
Fri, 30 Oct 2015 19:24:34 +0000 (15:24 -0400)
test/charwidth.c
test/iterate.c

index 986e7ca87252f74ef3cb2fcdabad24945f10d071..330f18eebb40e076209872a61ba7c5c65cea69a7 100644 (file)
@@ -2,7 +2,7 @@
 #include <ctype.h>
 #include <wchar.h>
 
-int my_isprint(int c) {
+static int my_isprint(int c) {
      int cat = utf8proc_get_property(c)->category;
      return (UTF8PROC_CATEGORY_LU <= cat && cat <= UTF8PROC_CATEGORY_ZS) ||
           (c == 0x0601 || c == 0x0602 || c == 0x0603 || c == 0x06dd);
index cd68a523daf5c676124bff46031470b3b30cfc6d..30b307dffc431fe5d7c1e9a59f1324c53eed011e 100644 (file)
@@ -8,7 +8,7 @@ static  int     error;
 #define CHECKVALID(pos, val, len) buf[pos] = val; testbytes(buf,len,len,__LINE__)
 #define CHECKINVALID(pos, val, len) buf[pos] = val; testbytes(buf,len,UTF8PROC_ERROR_INVALIDUTF8,__LINE__)
 
-void testbytes(unsigned char *buf, int len, utf8proc_ssize_t retval, int line)
+static void testbytes(unsigned char *buf, int len, utf8proc_ssize_t retval, int line)
 {
     utf8proc_int32_t out[16];
     utf8proc_ssize_t ret;