summaryrefslogtreecommitdiff
path: root/apps/plugins/databox/edittoken.h
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/edittoken.h
parenta24017f4da1be50a43bd14db607205582abc7544 (diff)
downloadrockbox-c9cb607a196ed2c20dafce331aadd755379aaa58.zip
rockbox-c9cb607a196ed2c20dafce331aadd755379aaa58.tar.gz
rockbox-c9cb607a196ed2c20dafce331aadd755379aaa58.tar.bz2
rockbox-c9cb607a196ed2c20dafce331aadd755379aaa58.tar.xz
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/edittoken.h')
-rw-r--r--apps/plugins/databox/edittoken.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/databox/edittoken.h b/apps/plugins/databox/edittoken.h
index 6f176e7..77c948b 100644
--- a/apps/plugins/databox/edittoken.h
+++ b/apps/plugins/databox/edittoken.h
@@ -84,9 +84,11 @@
#define INTVALUE_GENRE 17
#define INTVALUE_FILENAME 18
+#define SPELLING_LENGTH 100
+
struct token {
char kind;
- char spelling[255];
+ char spelling[SPELLING_LENGTH + 1];
long intvalue;
};
char *tokentypetostring(int tokentype);