Reformat .h files.
I did my best to exempt some of the bigger aligned blocks from the reformatting using the /* clang-format off */ and /* clang-format on */ tags. Probably some that shouldn't have been formatted were anyway; if you encounter them, please fix. The clang-format tags were left in on the basis that it's much easier to prune those out later than to put them back in, and it means that, modulo my custom version of clang-format, I should be able to run clang-format on the source tree again without changing anything, now that Pat has fixed the VA_DECL issues.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
/*
|
||||
* This header files defines the interface between the window port specific
|
||||
* code in the Gnome port and the rest of the nethack game engine.
|
||||
* code in the Gnome port and the rest of the nethack game engine.
|
||||
*/
|
||||
|
||||
#include <gnome.h>
|
||||
@@ -28,7 +28,6 @@
|
||||
#include "gnglyph.h"
|
||||
#include "gnworn.h"
|
||||
|
||||
|
||||
/* Create an array to keep track of the various windows */
|
||||
|
||||
#ifndef MAXWINDOWS
|
||||
@@ -36,13 +35,12 @@
|
||||
#endif
|
||||
|
||||
typedef struct gnome_nhwindow_data {
|
||||
GtkWidget* win;
|
||||
int type;
|
||||
GtkWidget *win;
|
||||
int type;
|
||||
} GNHWinData;
|
||||
|
||||
|
||||
/* Some prototypes */
|
||||
void gnome_init_nhwindows(int* argc, char** argv);
|
||||
void gnome_init_nhwindows(int *argc, char **argv);
|
||||
void gnome_player_selection(void);
|
||||
void gnome_askname(void);
|
||||
void gnome_get_nh_event(void);
|
||||
@@ -56,14 +54,14 @@ void gnome_display_nhwindow(winid wid, BOOLEAN_P block);
|
||||
void gnome_destroy_nhwindow(winid wid);
|
||||
void gnome_curs(winid wid, int x, int y);
|
||||
void gnome_putstr(winid wid, int attr, const char *text);
|
||||
void gnome_display_file(const char *filename,BOOLEAN_P must_exist);
|
||||
void gnome_display_file(const char *filename, BOOLEAN_P must_exist);
|
||||
void gnome_start_menu(winid wid);
|
||||
void gnome_add_menu(winid wid, int glyph, const ANY_P * identifier,
|
||||
CHAR_P accelerator, CHAR_P group_accel, int attr,
|
||||
const char *str, BOOLEAN_P presel);
|
||||
void gnome_add_menu(winid wid, int glyph, const ANY_P *identifier,
|
||||
CHAR_P accelerator, CHAR_P group_accel, int attr,
|
||||
const char *str, BOOLEAN_P presel);
|
||||
void gnome_end_menu(winid wid, const char *prompt);
|
||||
int gnome_select_menu(winid wid, int how, MENU_ITEM_P **selected);
|
||||
/* No need for message_menu -- we'll use genl_message_menu instead */
|
||||
int gnome_select_menu(winid wid, int how, MENU_ITEM_P **selected);
|
||||
/* No need for message_menu -- we'll use genl_message_menu instead */
|
||||
void gnome_update_inventory(void);
|
||||
void gnome_mark_synch(void);
|
||||
void gnome_wait_synch(void);
|
||||
@@ -72,25 +70,21 @@ void gnome_cliparound(int x, int y);
|
||||
* gnome_cliparound (which lacks the winid) simply calls this funtion.
|
||||
*/
|
||||
void gnome_cliparound_proper(winid wid, int x, int y);
|
||||
void gnome_print_glyph(winid wid,XCHAR_P x,XCHAR_P y,int glyph);
|
||||
void gnome_print_glyph(winid wid, XCHAR_P x, XCHAR_P y, int glyph);
|
||||
void gnome_raw_print(const char *str);
|
||||
void gnome_raw_print_bold(const char *str);
|
||||
int gnome_nhgetch(void);
|
||||
int gnome_nh_poskey(int *x, int *y, int *mod);
|
||||
int gnome_nhgetch(void);
|
||||
int gnome_nh_poskey(int *x, int *y, int *mod);
|
||||
void gnome_nhbell(void);
|
||||
int gnome_doprev_message(void);
|
||||
char gnome_yn_function(const char *question, const char *choices,
|
||||
CHAR_P def);
|
||||
int gnome_doprev_message(void);
|
||||
char gnome_yn_function(const char *question, const char *choices, CHAR_P def);
|
||||
void gnome_getlin(const char *question, char *input);
|
||||
int gnome_get_ext_cmd(void);
|
||||
int gnome_get_ext_cmd(void);
|
||||
void gnome_number_pad(int state);
|
||||
void gnome_delay_output(void);
|
||||
void gnome_start_screen(void);
|
||||
void gnome_end_screen(void);
|
||||
void gnome_outrip(winid wid, int how, time_t when);
|
||||
void gnome_delete_nhwindow_by_reference( GtkWidget *menuWin);
|
||||
|
||||
void gnome_delete_nhwindow_by_reference(GtkWidget *menuWin);
|
||||
|
||||
#endif /* GnomeHackBind_h */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user