Clean up name mangling by using unique package names per project

This commit is contained in:
gingerBill
2018-05-27 22:09:11 +01:00
parent 5c52ffe24e
commit 547a2831c7
10 changed files with 141 additions and 88 deletions

View File

@@ -9,9 +9,11 @@ extern "C" {
bool rune_is_letter(Rune r) {
if ((r < 0x80 && gb_char_is_alpha(cast(char)r)) ||
r == '_') {
return true;
if (r < 0x80) {
if (r == '_') {
return true;
}
return gb_char_is_alpha(cast(char)r) != 0;
}
switch (utf8proc_category(r)) {
case UTF8PROC_CATEGORY_LU:
@@ -25,8 +27,8 @@ bool rune_is_letter(Rune r) {
}
bool rune_is_digit(Rune r) {
if (r < 0x80 && gb_is_between(r, '0', '9')) {
return true;
if (r < 0x80) {
return gb_is_between(r, '0', '9');
}
return utf8proc_category(r) == UTF8PROC_CATEGORY_ND;
}