forked from len0rd/rockbox
Don't reinvent ctype.h functions
Remove ctype.h functions in text_editor and rockboy, fix #define name clash in mpegplayer. Change-Id: Icb40cf45e27b793c62cb095197757a27f508f344
This commit is contained in:
parent
3f61caa0cd
commit
7803f31c53
4 changed files with 19 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue