}
/* return != 0 to indicate the key was handles */
-int process_special_keys(int *key, struct menu *menu)
+static int process_special_keys(int *key, struct menu *menu)
{
int i;
}
/* return the index of the next hot item, or -1 if no such item exists */
-int get_next_hot(int c)
+static int get_next_hot(int c)
{
static int hot_index;
static int hot_char;
}
/* can the char c be a hot key? no, if c is a common shortcut used elsewhere */
-int canbhot(char c)
+static int canbhot(char c)
{
c = tolower(c);
return isalnum(c) && c != 'y' && c != 'm' && c != 'h' &&
}
/* check if str already contains a hot key. */
-int is_hot(int index)
+static int is_hot(int index)
{
return k_menu_items[index].is_hot;
}
/* find the first possible hot key, and mark it.
* index is the index of the item in the menu
* return 0 on success*/
-int make_hot(char *dest, int len, const char *org, int index)
+static int make_hot(char *dest, int len, const char *org, int index)
{
int position = -1;
int i;
/* Make a new item. Add a hotkey mark in the first possible letter.
* As ncurses does not allow any attributes inside menue item, we mark the
* hot key as the first capitalized letter in the string */
-void item_make(struct menu *menu, char tag, const char *fmt, ...)
+static void item_make(struct menu *menu, char tag, const char *fmt, ...)
{
va_list ap;
char tmp_str[256];
}
/* very hackish. adds a string to the last item added */
-void item_add_str(const char *fmt, ...)
+static void item_add_str(const char *fmt, ...)
{
va_list ap;
int index = items_num-1;
}
/* get the tag of the currently selected item */
-char item_tag(void)
+static char item_tag(void)
{
ITEM *cur;
struct mitem *mcur;
return mcur->tag;
}
-int curses_item_index(void)
+static int curses_item_index(void)
{
return item_index(current_item(curses_menu));
}
-void *item_data(void)
+static void *item_data(void)
{
ITEM *cur;
struct mitem *mcur;
}
-int item_is_tag(char tag)
+static int item_is_tag(char tag)
{
return item_tag() == tag;
}
static char filename[PATH_MAX+1];
static char menu_backtitle[PATH_MAX+128];
-const char *set_config_filename(const char *config_filename)
+static const char *set_config_filename(const char *config_filename)
{
int size;
struct symbol *sym;
COLOR_CYAN 6
COLOR_WHITE 7
*/
-void set_normal_colors(void)
+static void set_normal_colors(void)
{
init_pair(NORMAL, -1, -1);
init_pair(MAIN_HEADING, COLOR_MAGENTA, -1);
A_CHARTEXT Bit-mask to extract a character
COLOR_PAIR(n) Color-pair number n
*/
-void normal_color_theme(void)
+static void normal_color_theme(void)
{
/* automatically add color... */
#define mkattr(name, attr) do { \
mkattr(FUNCTION_TEXT, A_REVERSE);
}
-void no_colors_theme(void)
+static void no_colors_theme(void)
{
/* automatically add highlight, no color */
#define mkattrn(name, attr) { attributes[name] = attr; }