summaryrefslogtreecommitdiff
path: root/firmware/include/ctype.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-13 14:01:41 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-13 14:01:41 +0000
commit0c458c043a2e95cfed15d143ff0053b44b6a425c (patch)
tree3f4cdfa76f06d593322c64b34cbdc9d889e02f6c /firmware/include/ctype.h
parentae9b319ec555fd9b33c5c37b68b5578442e9de9f (diff)
downloadrockbox-0c458c043a2e95cfed15d143ff0053b44b6a425c.tar.gz
rockbox-0c458c043a2e95cfed15d143ff0053b44b6a425c.zip
The plugin API now supports ctype macros like tolower() and friends
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4872 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/ctype.h')
-rw-r--r--firmware/include/ctype.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/include/ctype.h b/firmware/include/ctype.h
index b6d8a43492..c72a256e4b 100644
--- a/firmware/include/ctype.h
+++ b/firmware/include/ctype.h
@@ -36,7 +36,11 @@ int _EXFUN(_toupper, (int __c));
36#define _X 0100 36#define _X 0100
37#define _B 0200 37#define _B 0200
38 38
39#ifdef PLUGIN
40#define _ctype_ (rb->_ctype_)
41#else
39extern char _ctype_[]; 42extern char _ctype_[];
43#endif
40 44
41#ifndef __cplusplus 45#ifndef __cplusplus
42#define isalpha(c) ((_ctype_+1)[(unsigned)(c)]&(_U|_L)) 46#define isalpha(c) ((_ctype_+1)[(unsigned)(c)]&(_U|_L))