mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-05-05 14:55:10 +01:00
Remove blank lines between function prototype declarations
This commit is contained in:
parent
bc7d5d296b
commit
5cb8ae1d2f
10 changed files with 0 additions and 83 deletions
|
@ -54,29 +54,18 @@ extern struct menucoloring *menu_colorings;
|
|||
#endif
|
||||
|
||||
static nhmenu *get_menu(winid wid);
|
||||
|
||||
static char menu_get_accel(boolean first);
|
||||
|
||||
static void menu_determine_pages(nhmenu *menu);
|
||||
|
||||
static boolean menu_is_multipage(nhmenu *menu, int width, int height);
|
||||
|
||||
static void menu_win_size(nhmenu *menu);
|
||||
|
||||
static void menu_display_page(nhmenu *menu, WINDOW * win, int page_num);
|
||||
|
||||
static int menu_get_selections(WINDOW * win, nhmenu *menu, int how);
|
||||
|
||||
static void menu_select_deselect(WINDOW * win, nhmenu_item *item,
|
||||
menu_op operation);
|
||||
|
||||
static int menu_operation(WINDOW * win, nhmenu *menu, menu_op operation,
|
||||
int page_num);
|
||||
|
||||
static void menu_clear_selections(nhmenu *menu);
|
||||
|
||||
static boolean get_menu_coloring(char *str, int *color, int *attr);
|
||||
|
||||
static int menu_max_height(void);
|
||||
|
||||
static nhmenu *nhmenus = NULL; /* NetHack menu array */
|
||||
|
|
|
@ -13,24 +13,16 @@
|
|||
/* Global declarations */
|
||||
|
||||
void curses_line_input_dialog(const char *prompt, char *answer, int buffer);
|
||||
|
||||
int curses_character_input_dialog(const char *prompt, const char *choices,
|
||||
CHAR_P def);
|
||||
|
||||
int curses_ext_cmd(void);
|
||||
|
||||
void curses_create_nhmenu(winid wid);
|
||||
|
||||
void curses_add_nhmenu_item(winid wid, int glyph, const ANY_P * identifier,
|
||||
CHAR_P accelerator, CHAR_P group_accel, int attr,
|
||||
const char *str, BOOLEAN_P presel);
|
||||
|
||||
void curses_finalize_nhmenu(winid wid, const char *prompt);
|
||||
|
||||
int curses_display_nhmenu(winid wid, int how, MENU_ITEM_P ** _selected);
|
||||
|
||||
boolean curses_menu_exists(winid wid);
|
||||
|
||||
void curses_del_menu(winid wid);
|
||||
|
||||
|
||||
|
|
|
@ -6,17 +6,11 @@
|
|||
/* Global declarations */
|
||||
|
||||
void curses_create_main_windows(void);
|
||||
|
||||
void curses_init_nhcolors(void);
|
||||
|
||||
void curses_choose_character(void);
|
||||
|
||||
int curses_character_dialog(const char **choices, const char *prompt);
|
||||
|
||||
void curses_init_options(void);
|
||||
|
||||
void curses_display_splash_window(void);
|
||||
|
||||
void curses_cleanup(void);
|
||||
|
||||
|
||||
|
|
|
@ -21,9 +21,7 @@ typedef struct nhpm {
|
|||
static void scroll_window(winid wid);
|
||||
static void unscroll_window(winid wid);
|
||||
static void directional_scroll(winid wid, int nlines);
|
||||
|
||||
static void mesg_add_line(char *mline);
|
||||
|
||||
static nhprev_mesg *get_msg_line(boolean reverse, int mindex);
|
||||
|
||||
static int turn_lines = 1;
|
||||
|
|
|
@ -7,21 +7,13 @@
|
|||
/* Global declarations */
|
||||
|
||||
void curses_message_win_puts(const char *message, boolean recursed);
|
||||
|
||||
int curses_block(boolean require_tab);
|
||||
|
||||
int curses_more(void);
|
||||
|
||||
void curses_clear_unhighlight_message_window(void);
|
||||
|
||||
void curses_message_win_getline(const char *prompt, char *answer, int buffer);
|
||||
|
||||
void curses_last_messages(void);
|
||||
|
||||
void curses_init_mesg_history(void);
|
||||
|
||||
void curses_prev_mesg(void);
|
||||
|
||||
void curses_count_window(const char *count_text);
|
||||
|
||||
#endif /* CURSMESG_H */
|
||||
|
|
|
@ -6,45 +6,25 @@
|
|||
/* Global declarations */
|
||||
|
||||
int curses_read_char(void);
|
||||
|
||||
void curses_toggle_color_attr(WINDOW * win, int color, int attr, int onoff);
|
||||
|
||||
void curses_bail(const char *mesg);
|
||||
|
||||
winid curses_get_wid(int type);
|
||||
|
||||
char *curses_copy_of(const char *s);
|
||||
|
||||
int curses_num_lines(const char *str, int width);
|
||||
|
||||
char *curses_break_str(const char *str, int width, int line_num);
|
||||
|
||||
char *curses_str_remainder(const char *str, int width, int line_num);
|
||||
|
||||
boolean curses_is_menu(winid wid);
|
||||
|
||||
boolean curses_is_text(winid wid);
|
||||
|
||||
int curses_convert_glyph(int ch, int glyph);
|
||||
|
||||
void curses_move_cursor(winid wid, int x, int y);
|
||||
|
||||
void curses_prehousekeeping(void);
|
||||
|
||||
void curses_posthousekeeping(void);
|
||||
|
||||
void curses_view_file(const char *filename, boolean must_exist);
|
||||
|
||||
void curses_rtrim(char *str);
|
||||
|
||||
int curses_get_count(int first_digit);
|
||||
|
||||
int curses_convert_attr(int attr);
|
||||
|
||||
int curses_read_attrs(char *attrs);
|
||||
|
||||
int curses_convert_keys(int key);
|
||||
|
||||
int curses_get_mouse(int *mousex, int *mousey, int *mod);
|
||||
|
||||
#endif /* CURSMISC_H */
|
||||
|
|
|
@ -31,19 +31,15 @@ extern const struct percent_color_option *pw_colors;
|
|||
extern struct color_option text_color_of(const char *text,
|
||||
const struct text_color_option
|
||||
*color_options);
|
||||
|
||||
struct color_option percentage_color_of(int value, int max,
|
||||
const struct percent_color_option
|
||||
*color_options);
|
||||
|
||||
static boolean stat_colored(const char *id);
|
||||
#endif
|
||||
|
||||
static void handle_status_problem(nhstat *, int, const char *, int *, int *,
|
||||
int, boolean);
|
||||
|
||||
static void handle_stat_change(nhstat *, int, int, int *, int *, int, boolean);
|
||||
|
||||
static int decrement_highlight(nhstat *);
|
||||
static void init_stats(void);
|
||||
static void set_labels(int label_width);
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
/* Global declarations */
|
||||
|
||||
void curses_update_stats(boolean redraw);
|
||||
|
||||
void curses_decrement_highlight(void);
|
||||
|
||||
|
||||
|
|
|
@ -33,17 +33,12 @@ typedef struct nhchar {
|
|||
} nethack_char;
|
||||
|
||||
static boolean map_clipped; /* Map window smaller than 80x21 */
|
||||
|
||||
static nethack_window nhwins[NHWIN_MAX]; /* NetHack window array */
|
||||
|
||||
static nethack_char map[ROWNO][COLNO]; /* Map window contents */
|
||||
|
||||
static nethack_wid *nhwids = NULL; /* NetHack wid array */
|
||||
|
||||
static boolean is_main_window(winid wid);
|
||||
|
||||
static void write_char(WINDOW * win, int x, int y, nethack_char ch);
|
||||
|
||||
static void clear_map(void);
|
||||
|
||||
/* Create a window with the specified size and orientation */
|
||||
|
|
|
@ -9,42 +9,24 @@
|
|||
WINDOW *curses_create_window(int width, int height, orient orientation);
|
||||
|
||||
void curses_destroy_win(WINDOW * win);
|
||||
|
||||
void curses_refresh_nethack_windows(void);
|
||||
|
||||
WINDOW *curses_get_nhwin(winid wid);
|
||||
|
||||
void curses_add_nhwin(winid wid, int height, int width, int y, int x,
|
||||
orient orientation, boolean border);
|
||||
|
||||
void curses_add_wid(winid wid);
|
||||
|
||||
void curses_refresh_nhwin(winid wid);
|
||||
|
||||
void curses_del_nhwin(winid wid);
|
||||
|
||||
void curses_del_wid(winid wid);
|
||||
|
||||
void curses_putch(winid wid, int x, int y, int ch, int color, int attrs);
|
||||
|
||||
void curses_get_window_xy(winid wid, int *x, int *y);
|
||||
|
||||
boolean curses_window_has_border(winid wid);
|
||||
|
||||
boolean curses_window_exists(winid wid);
|
||||
|
||||
int curses_get_window_orientation(winid wid);
|
||||
|
||||
void curses_puts(winid wid, int attr, const char *text);
|
||||
|
||||
void curses_clear_nhwin(winid wid);
|
||||
|
||||
void curses_alert_win_border(winid wid, boolean onoff);
|
||||
|
||||
void curses_alert_main_borders(boolean onoff);
|
||||
|
||||
void curses_draw_map(int sx, int sy, int ex, int ey);
|
||||
|
||||
boolean curses_map_borders(int *sx, int *sy, int *ex, int *ey, int ux, int uy);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue