mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[bfu] const in menu_labels
This commit is contained in:
parent
9dcae138a7
commit
c4aff169e9
@ -169,15 +169,14 @@ destroy_menu(struct list_menu *menu)
|
||||
}
|
||||
|
||||
void
|
||||
menu_labels(struct menu_item *items, char *base, char **lbls)
|
||||
menu_labels(struct menu_item *items, const char *base, char **lbls)
|
||||
{
|
||||
struct menu_item *item;
|
||||
char *bs;
|
||||
|
||||
foreach_menu_item (item, items) {
|
||||
bs = (item->flags & MENU_FULLNAME) ? (char *) ""
|
||||
: base;
|
||||
bs = straconcat(bs, item->text, (char *) NULL);
|
||||
const char *bs2 = (item->flags & MENU_FULLNAME) ? "" : base;
|
||||
bs = straconcat(bs2, item->text, (char *) NULL);
|
||||
if (!bs) continue;
|
||||
|
||||
if (item->func == do_select_submenu) {
|
||||
|
@ -20,7 +20,7 @@ void destroy_menu(struct list_menu *menu);
|
||||
void add_select_item(struct list_menu *menu, struct string *string, struct string *orig_string, char **value, int order, int dont_add);
|
||||
void new_menu_item(struct list_menu *menu, char *name, int data, int fullname);
|
||||
struct menu_item *detach_menu(struct list_menu *menu);
|
||||
void menu_labels(struct menu_item *m, char *base, char **lbls);
|
||||
void menu_labels(struct menu_item *m, const char *base, char **lbls);
|
||||
void do_select_submenu(struct terminal *term, void *menu_, void *ses_);
|
||||
void free_menu(struct menu_item *m);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user