Fix missing static declarations for internal functions
This commit is contained in:
parent
6acc41dfe9
commit
14b57791d8
@ -2,7 +2,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
int my_isprint(int c) {
|
static int my_isprint(int c) {
|
||||||
int cat = utf8proc_get_property(c)->category;
|
int cat = utf8proc_get_property(c)->category;
|
||||||
return (UTF8PROC_CATEGORY_LU <= cat && cat <= UTF8PROC_CATEGORY_ZS) ||
|
return (UTF8PROC_CATEGORY_LU <= cat && cat <= UTF8PROC_CATEGORY_ZS) ||
|
||||||
(c == 0x0601 || c == 0x0602 || c == 0x0603 || c == 0x06dd);
|
(c == 0x0601 || c == 0x0602 || c == 0x0603 || c == 0x06dd);
|
||||||
|
|||||||
@ -8,7 +8,7 @@ static int error;
|
|||||||
#define CHECKVALID(pos, val, len) buf[pos] = val; testbytes(buf,len,len,__LINE__)
|
#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__)
|
#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_int32_t out[16];
|
||||||
utf8proc_ssize_t ret;
|
utf8proc_ssize_t ret;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user