1
0
Fork 0
forked from len0rd/rockbox

Made the char property lookup table constant

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4905 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-07-20 22:32:17 +00:00
parent d0bb88a766
commit 0258287e57
3 changed files with 3 additions and 3 deletions

View file

@ -178,7 +178,7 @@ struct plugin_api {
void* (*memset)(void *dst, int c, size_t length);
void* (*memcpy)(void *out, const void *in, size_t n);
#ifndef SIMULATOR
char *_ctype_;
const char *_ctype_;
#endif
/* sound */

View file

@ -1,6 +1,6 @@
#include <ctype.h>
char _ctype_[257]={
const char _ctype_[257]={
0,
_C, _C, _C, _C, _C, _C, _C, _C,
_C, _C|_S, _C|_S, _C|_S, _C|_S, _C|_S, _C, _C,

View file

@ -39,7 +39,7 @@ int _EXFUN(_toupper, (int __c));
#ifdef PLUGIN
#define _ctype_ (rb->_ctype_)
#else
extern char _ctype_[];
extern const char _ctype_[];
#endif
#ifndef __cplusplus