1
0
Fork 0
forked from len0rd/rockbox

Made local constant arrays static, saving a few bytes

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5014 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-08-26 20:30:22 +00:00
parent d1851e3364
commit 033ba1669b
3 changed files with 41 additions and 34 deletions

View file

@ -486,7 +486,7 @@ int talk_number(int n, bool enqueue)
int talk_value(int n, int unit, bool enqueue)
{
int unit_id;
const int unit_voiced[] =
static const int unit_voiced[] =
{ /* lookup table for the voice ID of the units */
-1, -1, -1, /* regular ID, int, signed */
VOICE_MILLISECONDS, /* here come the "real" units */
@ -532,7 +532,7 @@ int talk_value(int n, int unit, bool enqueue)
}
/* spell a string */
int talk_spell(const char* spell, bool enqueue)
int talk_spell(const char* spell, bool enqueue)
{
char c; /* currently processed char */