forked from len0rd/rockbox
I bet nobody enters more than 100 letters in search strings, and since there
are 70 of these, we gain 10K in one single step. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6902 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a24017f4da
commit
c9cb607a19
2 changed files with 4 additions and 2 deletions
|
@ -98,7 +98,7 @@ void buildtoken(int tokentype,struct token *token) {
|
||||||
case TOKEN_STRING:
|
case TOKEN_STRING:
|
||||||
do {
|
do {
|
||||||
rb->splash(HZ*2,true,"Enter String.");
|
rb->splash(HZ*2,true,"Enter String.");
|
||||||
} while(rb->kbd_input(token->spelling, 254));
|
} while(rb->kbd_input(token->spelling, SPELLING_LENGTH));
|
||||||
break;
|
break;
|
||||||
case TOKEN_YEAR:
|
case TOKEN_YEAR:
|
||||||
token->kind=TOKEN_NUMIDENTIFIER;
|
token->kind=TOKEN_NUMIDENTIFIER;
|
||||||
|
|
|
@ -84,9 +84,11 @@
|
||||||
#define INTVALUE_GENRE 17
|
#define INTVALUE_GENRE 17
|
||||||
#define INTVALUE_FILENAME 18
|
#define INTVALUE_FILENAME 18
|
||||||
|
|
||||||
|
#define SPELLING_LENGTH 100
|
||||||
|
|
||||||
struct token {
|
struct token {
|
||||||
char kind;
|
char kind;
|
||||||
char spelling[255];
|
char spelling[SPELLING_LENGTH + 1];
|
||||||
long intvalue;
|
long intvalue;
|
||||||
};
|
};
|
||||||
char *tokentypetostring(int tokentype);
|
char *tokentypetostring(int tokentype);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue