From 0258287e57d38499e8d78fd28bd17c60cc51323a Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 20 Jul 2004 22:32:17 +0000 Subject: Made the char property lookup table constant git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4905 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 2 +- firmware/common/ctype.c | 2 +- firmware/include/ctype.h | 2 +- 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 { 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 */ 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 @@ #include -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, 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)); #ifdef PLUGIN #define _ctype_ (rb->_ctype_) #else -extern char _ctype_[]; +extern const char _ctype_[]; #endif #ifndef __cplusplus -- cgit v1.2.3