summaryrefslogtreecommitdiff
path: root/apps/plugins/text_editor.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2012-05-07 18:27:46 +0200
committerNils Wallménius <nils@rockbox.org>2012-05-07 18:43:12 +0200
commit7803f31c531c75c75d57513caa14caa934edcf19 (patch)
treed17e992acdd80e74edbe9b9a71d676d20d2c389a /apps/plugins/text_editor.c
parent3f61caa0cd7e818416be08778f356efd54e596fb (diff)
downloadrockbox-7803f31c531c75c75d57513caa14caa934edcf19.zip
rockbox-7803f31c531c75c75d57513caa14caa934edcf19.tar.gz
rockbox-7803f31c531c75c75d57513caa14caa934edcf19.tar.bz2
rockbox-7803f31c531c75c75d57513caa14caa934edcf19.tar.xz
Don't reinvent ctype.h functions
Remove ctype.h functions in text_editor and rockboy, fix #define name clash in mpegplayer. Change-Id: Icb40cf45e27b793c62cb095197757a27f508f344
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r--apps/plugins/text_editor.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index 32013b6..6c1136c 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -287,12 +287,10 @@ static int do_item_menu(int cur_sel)
}
#ifdef HAVE_LCD_COLOR
-/* in misc.h but no need to polute the api */
-#define toupper(c) (((c >= 'a') && (c <= 'z'))?c+'A':c)
-#define isxdigit(c) ((c>='a' && c<= 'f') || (c>='A' && c<= 'F') \
- || (c>='0' && c<= '9'))
+
#define hex2dec(c) (((c) >= '0' && ((c) <= '9')) ? (toupper(c)) - '0' : \
(toupper(c)) - 'A' + 10)
+
static int my_hex_to_rgb(const char* hex, int* color)
{ int ok = 1;
int i;