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* (*memset)(void *dst, int c, size_t length);
|
||||||
void* (*memcpy)(void *out, const void *in, size_t n);
|
void* (*memcpy)(void *out, const void *in, size_t n);
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
char *_ctype_;
|
const char *_ctype_;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* sound */
|
/* sound */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
char _ctype_[257]={
|
const char _ctype_[257]={
|
||||||
0,
|
0,
|
||||||
_C, _C, _C, _C, _C, _C, _C, _C,
|
_C, _C, _C, _C, _C, _C, _C, _C,
|
||||||
_C, _C|_S, _C|_S, _C|_S, _C|_S, _C|_S, _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
|
#ifdef PLUGIN
|
||||||
#define _ctype_ (rb->_ctype_)
|
#define _ctype_ (rb->_ctype_)
|
||||||
#else
|
#else
|
||||||
extern char _ctype_[];
|
extern const char _ctype_[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue