summaryrefslogtreecommitdiff
path: root/apps/talk.h
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-07-23 23:01:20 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-07-23 23:01:20 +0000
commitb1403ee024f81ced657261441571ee5e8bab71ce (patch)
tree3a7e1651d37bd35e801a331416654760cb61a075 /apps/talk.h
parent15d04fdb00e7f94aef49cf9a70e73c5a46e21536 (diff)
downloadrockbox-b1403ee024f81ced657261441571ee5e8bab71ce.tar.gz
rockbox-b1403ee024f81ced657261441571ee5e8bab71ce.zip
New way of defining menus and options allows to declare them static const, which saves the code to runtime-assemble them. Rockbox just got 6 KB smaller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4931 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.h')
-rw-r--r--apps/talk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/talk.h b/apps/talk.h
index 51504c1a7c..2476c8ec02 100644
--- a/apps/talk.h
+++ b/apps/talk.h
@@ -51,8 +51,8 @@ enum {
51 unit is upper 4 bits, number the remaining (in regular 2's complement) */ 51 unit is upper 4 bits, number the remaining (in regular 2's complement) */
52#define TALK_ID(n,u) ((u)<<UNIT_SHIFT | ((n) & ~(-1<<UNIT_SHIFT))) 52#define TALK_ID(n,u) ((u)<<UNIT_SHIFT | ((n) & ~(-1<<UNIT_SHIFT)))
53 53
54/* convenience macro to have both string and ID as arguments */ 54/* convenience macro to have both virtual pointer and ID as arguments */
55#define STR(id) str(id), id 55#define STR(id) ID2P(id), id
56 56
57/* publish this string, so it's stored only once (better than #define) */ 57/* publish this string, so it's stored only once (better than #define) */
58extern const char* dir_thumbnail_name; 58extern const char* dir_thumbnail_name;