Clang compatibility

This commit is contained in:
David Baer
2017-08-09 22:27:29 -04:00
parent 9a084fe0bd
commit 517a9d9605

View File

@@ -69,23 +69,23 @@ freeTokenizer(utf8iterator* iter) {
utf8FreeIterator(iter);
}
inline int
int
greekChar(uint32_t ch) {
return (((0x370 <= ch) && (ch <= 0x3ff)) ||
((0x1f00 <= ch) && (ch <= 0x1fff)));
}
inline int
int
extendedPunctuation(uint32_t ch) {
return ((0x2000 <= ch) && (ch <= 0x206f));
}
inline int
int
latinChar(uint32_t ch) {
return (ch <= 0xff) || extendedPunctuation(ch);
}
inline int
int
httpAt(Tokenizer tokenizer) {
return ((tolower(tokenizer->txt[tokenizer->byteIndex]) == 'h') &&
(tolower(tokenizer->txt[tokenizer->byteIndex + 1]) == 't') &&