1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-09 05:20:36 -04:00
elinks/src/config/dialogs.h
Kalle Olavi Niemitalo 23fd2d58f4 Make struct action const
With GCC 4.3.1 on i686, this changes the sizes of sections as follows:

section            before       after   change
.text              682428      682492      +64
.rodata            212668      216352    +3684
.data               58092       54444    -3648
.debug_info       1482388     1482472      +84
.debug_abbrev      153714      153723       +9
.debug_line        272299      272319      +20
.debug_loc         540394      540372      -22
.debug_ranges      113784      113792       +8
Total             3917695     3917894     +199

The surprising .text change comes from src/config/dialogs.o.
Some of that is in get_keybinding_text(), where GCC changes the
order of basic blocks and apparently misses some optimizations.
2009-07-19 21:15:39 +03:00

24 lines
753 B
C

#ifndef EL__CONFIG_DIALOGS_H
#define EL__CONFIG_DIALOGS_H
#include "bfu/hierbox.h"
#include "config/kbdbind.h"
#include "session/session.h"
#include "terminal/terminal.h"
#include "util/memlist.h"
extern struct hierbox_browser option_browser;
extern struct hierbox_browser keybinding_browser;
void write_config_dialog(struct terminal *term, unsigned char *config_file,
int secsave_error, int stdio_error);
void options_manager(struct session *);
void keybinding_manager(struct session *);
struct listbox_item *get_keybinding_action_box_item(enum keymap_id keymap_id, action_id_T action_id);
void init_keybinding_listboxes(struct keymap keymap_table[],
const struct action_list actions[]);
void done_keybinding_listboxes(void);
#endif