summaryrefslogtreecommitdiffstatshomepage
path: root/py/unicode.c
diff options
context:
space:
mode:
authorian-v <ianv888@gmail.com>2014-01-06 09:52:29 -0800
committerian-v <ianv888@gmail.com>2014-01-06 09:52:29 -0800
commit7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (patch)
tree167d326efc1a1a75d3a371bbeab1a0bc4164fd9e /py/unicode.c
parente03c0533fe467439bae1addd6d2a2ee57a9370e4 (diff)
downloadmicropython-7a16fadbf843ca5d49fb20b5f5785ffccfd9019f.tar.gz
micropython-7a16fadbf843ca5d49fb20b5f5785ffccfd9019f.zip
Co-exist with C++ (issue #85)
Diffstat (limited to 'py/unicode.c')
-rw-r--r--py/unicode.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/py/unicode.c b/py/unicode.c
index 58c860a0e4..3450618853 100644
--- a/py/unicode.c
+++ b/py/unicode.c
@@ -46,32 +46,32 @@ char *utf8_next_char(const char *s) {
return (char*)(s + 1);
}
-bool unichar_isspace(unichar c) {
+MP_BOOL unichar_isspace(unichar c) {
return c < 128 && (attr[c] & FL_SPACE) != 0;
}
-bool unichar_isalpha(unichar c) {
+MP_BOOL unichar_isalpha(unichar c) {
return c < 128 && (attr[c] & FL_ALPHA) != 0;
}
-bool unichar_isprint(unichar c) {
+MP_BOOL unichar_isprint(unichar c) {
return c < 128 && (attr[c] & FL_PRINT) != 0;
}
-bool unichar_isdigit(unichar c) {
+MP_BOOL unichar_isdigit(unichar c) {
return c < 128 && (attr[c] & FL_DIGIT) != 0;
}
/*
-bool char_is_alpha_or_digit(unichar c) {
+MP_BOOL char_is_alpha_or_digit(unichar c) {
return c < 128 && (attr[c] & (FL_ALPHA | FL_DIGIT)) != 0;
}
-bool char_is_upper(unichar c) {
+MP_BOOL char_is_upper(unichar c) {
return c < 128 && (attr[c] & FL_UPPER) != 0;
}
-bool char_is_lower(unichar c) {
+MP_BOOL char_is_lower(unichar c) {
return c < 128 && (attr[c] & FL_LOWER) != 0;
}
*/