summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-07-20 22:32:17 +0000
committerJens Arnold <amiconn@rockbox.org>2004-07-20 22:32:17 +0000
commit0258287e57d38499e8d78fd28bd17c60cc51323a (patch)
tree133c95a308e4715f5996bbdabadafc564705a462
parentd0bb88a7665d5a94076f8612538b7459e6d59ead (diff)
downloadrockbox-0258287e57d38499e8d78fd28bd17c60cc51323a.tar.gz
rockbox-0258287e57d38499e8d78fd28bd17c60cc51323a.zip
Made the char property lookup table constant
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4905 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugin.h2
-rw-r--r--firmware/common/ctype.c2
-rw-r--r--firmware/include/ctype.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 085cccfc6b..c2243a59fb 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -178,7 +178,7 @@ struct plugin_api {
178 void* (*memset)(void *dst, int c, size_t length); 178 void* (*memset)(void *dst, int c, size_t length);
179 void* (*memcpy)(void *out, const void *in, size_t n); 179 void* (*memcpy)(void *out, const void *in, size_t n);
180#ifndef SIMULATOR 180#ifndef SIMULATOR
181 char *_ctype_; 181 const char *_ctype_;
182#endif 182#endif
183 183
184 /* sound */ 184 /* sound */
diff --git a/firmware/common/ctype.c b/firmware/common/ctype.c
index 5ec0af8add..651dacda86 100644
--- a/firmware/common/ctype.c
+++ b/firmware/common/ctype.c
@@ -1,6 +1,6 @@
1#include <ctype.h> 1#include <ctype.h>
2 2
3char _ctype_[257]={ 3const char _ctype_[257]={
4 0, 4 0,
5 _C, _C, _C, _C, _C, _C, _C, _C, 5 _C, _C, _C, _C, _C, _C, _C, _C,
6 _C, _C|_S, _C|_S, _C|_S, _C|_S, _C|_S, _C, _C, 6 _C, _C|_S, _C|_S, _C|_S, _C|_S, _C|_S, _C, _C,
diff --git a/firmware/include/ctype.h b/firmware/include/ctype.h
index c72a256e4b..f884b09f81 100644
--- a/firmware/include/ctype.h
+++ b/firmware/include/ctype.h
@@ -39,7 +39,7 @@ int _EXFUN(_toupper, (int __c));
39#ifdef PLUGIN 39#ifdef PLUGIN
40#define _ctype_ (rb->_ctype_) 40#define _ctype_ (rb->_ctype_)
41#else 41#else
42extern char _ctype_[]; 42extern const char _ctype_[];
43#endif 43#endif
44 44
45#ifndef __cplusplus 45#ifndef __cplusplus