Corrected an issue with autotools and OSX and utf8.

This commit is contained in:
Ward Fisher 2017-04-05 11:14:42 -06:00
parent 8481819096
commit 6bf5a38d90
3 changed files with 7 additions and 5 deletions

View File

@ -19,8 +19,7 @@
* NC_EBADNAME-- not valid utf8
*/
int
nc_utf8_validate(const unsigned char* name)
int nc_utf8_validate(const unsigned char* name)
{
int ncstat = NC_NOERR;
const nc_utf8proc_uint8_t *str;
@ -95,4 +94,3 @@ nc_utf8_normalize(const unsigned char* utf8, unsigned char** normalp)
done:
return ncstat;
}

View File

@ -45,6 +45,10 @@
#include "utf8proc_data.c"
/**
* Array containing the byte lengths of a UTF-8 encoded codepoint based
* on the first byte.
*/
const nc_utf8proc_int8_t nc_utf8proc_utf8class[256] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,

View File

@ -391,7 +391,7 @@ typedef nc_utf8proc_int32_t (*nc_utf8proc_custom_func)(nc_utf8proc_int32_t codep
* Array containing the byte lengths of a UTF-8 encoded codepoint based
* on the first byte.
*/
const nc_utf8proc_int8_t nc_utf8proc_utf8class[256];
//const nc_utf8proc_int8_t nc_utf8proc_utf8class[256];
/**
* Returns the utf8proc API version as a string MAJOR.MINOR.PATCH