summaryrefslogtreecommitdiff
path: root/apps/plugins/databox
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-06-27 22:43:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-06-27 22:43:11 +0000
commitc9cb607a196ed2c20dafce331aadd755379aaa58 (patch)
tree0e08c1711b56e0a243d73f45668f6125711e5074 /apps/plugins/databox
parenta24017f4da1be50a43bd14db607205582abc7544 (diff)
downloadrockbox-c9cb607a196ed2c20dafce331aadd755379aaa58.tar.gz
rockbox-c9cb607a196ed2c20dafce331aadd755379aaa58.zip
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
Diffstat (limited to 'apps/plugins/databox')
-rw-r--r--apps/plugins/databox/edittoken.c2
-rw-r--r--apps/plugins/databox/edittoken.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/databox/edittoken.c b/apps/plugins/databox/edittoken.c
index d3145b7e09..e2e1c91818 100644
--- a/apps/plugins/databox/edittoken.c
+++ b/apps/plugins/databox/edittoken.c
@@ -98,7 +98,7 @@ void buildtoken(int tokentype,struct token *token) {
98 case TOKEN_STRING: 98 case TOKEN_STRING:
99 do { 99 do {
100 rb->splash(HZ*2,true,"Enter String."); 100 rb->splash(HZ*2,true,"Enter String.");
101 } while(rb->kbd_input(token->spelling, 254)); 101 } while(rb->kbd_input(token->spelling, SPELLING_LENGTH));
102 break; 102 break;
103 case TOKEN_YEAR: 103 case TOKEN_YEAR:
104 token->kind=TOKEN_NUMIDENTIFIER; 104 token->kind=TOKEN_NUMIDENTIFIER;
diff --git a/apps/plugins/databox/edittoken.h b/apps/plugins/databox/edittoken.h
index 6f176e72b5..77c948b2af 100644
--- a/apps/plugins/databox/edittoken.h
+++ b/apps/plugins/databox/edittoken.h
@@ -84,9 +84,11 @@
84#define INTVALUE_GENRE 17 84#define INTVALUE_GENRE 17
85#define INTVALUE_FILENAME 18 85#define INTVALUE_FILENAME 18
86 86
87#define SPELLING_LENGTH 100
88
87struct token { 89struct token {
88 char kind; 90 char kind;
89 char spelling[255]; 91 char spelling[SPELLING_LENGTH + 1];
90 long intvalue; 92 long intvalue;
91}; 93};
92char *tokentypetostring(int tokentype); 94char *tokentypetostring(int tokentype);