forked from len0rd/rockbox
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
This commit is contained in:
parent
ae9b319ec5
commit
0c458c043a
4 changed files with 17 additions and 17 deletions
|
@ -36,7 +36,11 @@ int _EXFUN(_toupper, (int __c));
|
|||
#define _X 0100
|
||||
#define _B 0200
|
||||
|
||||
#ifdef PLUGIN
|
||||
#define _ctype_ (rb->_ctype_)
|
||||
#else
|
||||
extern char _ctype_[];
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus
|
||||
#define isalpha(c) ((_ctype_+1)[(unsigned)(c)]&(_U|_L))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue