Prefix all functions related to themes with "theme_".
static void change_theme(int next)
{
if (next)
- next_theme(&theme);
+ theme_next(&theme);
else
- prev_theme(&theme);
+ theme_prev(&theme);
/* This seems to be needed twice, why? */
com_refresh();
com_refresh();
fprintf(stderr, "invalid key map\n");
exit(EXIT_FAILURE);
}
- init_theme_or_die(conf.theme_arg, &theme);
+ theme_init(conf.theme_arg, &theme);
setup_signal_handling();
bot_win_rb = ringbuffer_new(RINGBUFFER_SIZE);
setlocale(LC_CTYPE, "");
struct stat_item_data data[NUM_STAT_ITEMS];
};
-void init_theme_or_die(const char *name, struct gui_theme *t);
-void next_theme(struct gui_theme *);
-void prev_theme(struct gui_theme *);
+void theme_init(const char *name, struct gui_theme *t);
+void theme_prev(struct gui_theme *t);
+void theme_next(struct gui_theme *t);
#define LEFT 1
#define RIGHT 2
#define CENTER 3
current_theme_num = num;
}
-void init_theme_or_die(const char *name, struct gui_theme *t)
+void theme_init(const char *name, struct gui_theme *t)
{
int i;
exit(EXIT_FAILURE);
}
-void prev_theme(struct gui_theme *t)
+void theme_prev(struct gui_theme *t)
{
return set_theme(++current_theme_num, t);
}
-void next_theme(struct gui_theme *t)
+void theme_next(struct gui_theme *t)
{
return set_theme(--current_theme_num, t);
}