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:
parent
d0bb88a766
commit
0258287e57
3 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue