summaryrefslogtreecommitdiffstats
path: root/apps/bookmark.c
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/bookmark.c
parent15d04fdb00e7f94aef49cf9a70e73c5a46e21536 (diff)
downloadrockbox-b1403ee024f81ced657261441571ee5e8bab71ce.tar.gz
rockbox-b1403ee024f81ced657261441571ee5e8bab71ce.tar.bz2
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/bookmark.c')
-rw-r--r--apps/bookmark.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index 7cc11ac0c3..993ea7e0ca 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -93,10 +93,10 @@ bool bookmark_menu(void)
int m;
bool result;
- struct menu_item items[] = {
- { STR(LANG_BOOKMARK_MENU_CREATE), bookmark_create_menu},
- { STR(LANG_BOOKMARK_MENU_LIST), bookmark_load_menu},
- { STR(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS), bookmark_mrb_load},
+ static const struct menu_item items[] = {
+ { ID2P(LANG_BOOKMARK_MENU_CREATE), bookmark_create_menu},
+ { ID2P(LANG_BOOKMARK_MENU_LIST), bookmark_load_menu},
+ { ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS), bookmark_mrb_load},
};
m=menu_init( items, sizeof items / sizeof(struct menu_item), NULL,