summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy
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/rockboy
parent3f61caa0cd7e818416be08778f356efd54e596fb (diff)
downloadrockbox-7803f31c531c75c75d57513caa14caa934edcf19.tar.gz
rockbox-7803f31c531c75c75d57513caa14caa934edcf19.zip
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/rockboy')
-rw-r--r--apps/plugins/rockboy/rockmacros.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/plugins/rockboy/rockmacros.h b/apps/plugins/rockboy/rockmacros.h
index 87e570b55a..2d3baf1680 100644
--- a/apps/plugins/rockboy/rockmacros.h
+++ b/apps/plugins/rockboy/rockmacros.h
@@ -52,11 +52,6 @@ void dynamic_recompile (struct dynarec_block *newblock);
52#define IBSS_ATTR 52#define IBSS_ATTR
53#endif 53#endif
54 54
55/* libc functions */
56#define isdigit(c) ((c) >= '0' && (c) <= '9')
57#define isalpha(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && ((c) <= 'Z')))
58#define isalnum(c) (isdigit(c) || (isalpha(c)))
59
60/* only 1 fixed argument for open, since variadic macros don't except empty 55/* only 1 fixed argument for open, since variadic macros don't except empty
61 * variable parameters */ 56 * variable parameters */
62#define open(a, ...) rb->open((a), __VA_ARGS__) 57#define open(a, ...) rb->open((a), __VA_ARGS__)
@@ -79,7 +74,6 @@ void dynamic_recompile (struct dynarec_block *newblock);
79#define strcat(a,b) rb->strcat((a),(b)) 74#define strcat(a,b) rb->strcat((a),(b))
80#define snprintf(...) rb->snprintf(__VA_ARGS__) 75#define snprintf(...) rb->snprintf(__VA_ARGS__)
81#define fdprintf(...) rb->fdprintf(__VA_ARGS__) 76#define fdprintf(...) rb->fdprintf(__VA_ARGS__)
82#define tolower(_A_) (isupper(_A_) ? (_A_ - 'A' + 'a') : _A_)
83 77
84/* Using #define isn't enough with GCC 4.0.1 */ 78/* Using #define isn't enough with GCC 4.0.1 */
85void* memcpy(void* dst, const void* src, size_t size) ICODE_ATTR; 79void* memcpy(void* dst, const void* src, size_t size) ICODE_ATTR;