diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-07-23 23:01:20 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-07-23 23:01:20 +0000 |
commit | b1403ee024f81ced657261441571ee5e8bab71ce (patch) | |
tree | 3a7e1651d37bd35e801a331416654760cb61a075 /apps/talk.h | |
parent | 15d04fdb00e7f94aef49cf9a70e73c5a46e21536 (diff) | |
download | rockbox-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.h | 4 |
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) */ |
58 | extern const char* dir_thumbnail_name; | 58 | extern const char* dir_thumbnail_name; |