Apply appropriate #ifdefs and static declarations
This commit is contained in:
committed by
Pasi Kallinen
parent
5883fe4abb
commit
cada45a786
+5
-37
@@ -374,23 +374,15 @@ extern void positionpopup(Widget, boolean);
|
||||
/* ### winX.c ### */
|
||||
extern struct xwindow *find_widget(Widget);
|
||||
extern XColor get_nhcolor(struct xwindow *, int);
|
||||
extern void init_menu_nhcolors(struct xwindow *);
|
||||
extern void load_boldfont(struct xwindow *, Widget);
|
||||
extern Boolean nhApproxColor(Screen *, Colormap, char *, XColor *);
|
||||
extern Boolean nhCvtStringToPixel(Display *, XrmValuePtr, Cardinal *,
|
||||
XrmValuePtr, XrmValuePtr, XtPointer *);
|
||||
extern void get_window_frame_extents(Widget, long *, long *, long *, long *);
|
||||
extern void get_widget_window_geometry(Widget, int *, int *, int *, int *);
|
||||
extern char *fontname_boldify(const char *);
|
||||
extern Dimension nhFontHeight(Widget, int);
|
||||
extern char key_event_to_char(XKeyEvent *);
|
||||
extern void msgkey(Widget, XtPointer, XEvent *, Boolean *);
|
||||
extern void highlight_yn(boolean);
|
||||
extern void nh_XtPopup(Widget, int, Widget);
|
||||
extern void nh_XtPopdown(Widget);
|
||||
extern void win_X11_init(int);
|
||||
extern void find_scrollbars(Widget, Widget, Widget *, Widget *);
|
||||
extern void nh_keyscroll(Widget, XEvent *, String *, Cardinal *);
|
||||
|
||||
/* ### winmesg.c ### */
|
||||
extern void set_message_slider(struct xwindow *);
|
||||
@@ -420,8 +412,6 @@ extern void create_menu_window(struct xwindow *);
|
||||
extern void destroy_menu_window(struct xwindow *);
|
||||
|
||||
/* ### winmisc.c ### */
|
||||
extern XtPointer i2xtp(int);
|
||||
extern int xtp2i(XtPointer);
|
||||
extern void ps_key(Widget, XEvent *, String *,
|
||||
Cardinal *); /* player selection action */
|
||||
extern void race_key(Widget, XEvent *, String *,
|
||||
@@ -442,7 +432,9 @@ extern void release_extended_cmds(void);
|
||||
/* ### winstatus.c ### */
|
||||
extern void create_status_window(struct xwindow *, boolean, Widget);
|
||||
extern void destroy_status_window(struct xwindow *);
|
||||
#ifndef STATUS_HILITES
|
||||
extern void adjust_status(struct xwindow *, const char *);
|
||||
#endif
|
||||
extern void null_out_status(void);
|
||||
extern void check_turn_events(void);
|
||||
#ifdef STATUS_HILITES
|
||||
@@ -465,7 +457,6 @@ extern void append_text_buffer(struct text_buffer *, const char *,
|
||||
boolean); /* text buffer routines */
|
||||
extern void init_text_buffer(struct text_buffer *);
|
||||
extern void clear_text_buffer(struct text_buffer *);
|
||||
extern void free_text_buffer(struct text_buffer *);
|
||||
#ifdef GRAPHIC_TOMBSTONE
|
||||
extern void calculate_rip_text(int, time_t);
|
||||
#endif
|
||||
@@ -481,64 +472,41 @@ extern int get_value_width(Widget);
|
||||
extern void swap_fg_bg(Widget);
|
||||
extern void set_value(Widget w, const char *new_value);
|
||||
/* external declarations */
|
||||
extern char *X11_getmsghistory(boolean);
|
||||
extern void X11_putmsghistory(const char *, boolean);
|
||||
extern void X11_init_nhwindows(int *, char **);
|
||||
extern void X11_player_selection(void);
|
||||
extern void X11_askname(void);
|
||||
extern void X11_get_nh_event(void);
|
||||
extern void X11_exit_nhwindows(const char *);
|
||||
extern void X11_suspend_nhwindows(const char *);
|
||||
extern void X11_resume_nhwindows(void);
|
||||
extern winid X11_create_nhwindow(int);
|
||||
extern void X11_clear_nhwindow(winid);
|
||||
extern void X11_display_nhwindow(winid, boolean);
|
||||
extern void X11_destroy_nhwindow(winid);
|
||||
extern void X11_curs(winid, int, int);
|
||||
extern void X11_putstr(winid, int, const char *);
|
||||
extern void X11_display_file(const char *, boolean);
|
||||
extern void X11_start_menu(winid, unsigned long);
|
||||
extern void X11_add_menu(winid, const glyph_info *, const ANY_P *, char,
|
||||
char, int, int, const char *, unsigned int);
|
||||
extern void X11_end_menu(winid, const char *);
|
||||
extern int X11_select_menu(winid, int, MENU_ITEM_P **);
|
||||
extern void X11_mark_synch(void);
|
||||
extern void X11_wait_synch(void);
|
||||
#ifdef CLIPPING
|
||||
extern void X11_cliparound(int, int);
|
||||
#endif
|
||||
extern void X11_print_glyph(winid, coordxy, coordxy, const glyph_info *,
|
||||
const glyph_info *);
|
||||
extern void X11_raw_print(const char *);
|
||||
extern void X11_raw_print_bold(const char *);
|
||||
extern int X11_nhgetch(void);
|
||||
extern int X11_nh_poskey(coordxy *, coordxy *, int *);
|
||||
extern void X11_nhbell(void);
|
||||
extern int X11_doprev_message(void);
|
||||
extern char X11_yn_function_core(const char *, const char *, char, unsigned);
|
||||
extern char X11_yn_function(const char *, const char *, char);
|
||||
extern void X11_getlin(const char *, char *);
|
||||
extern int X11_get_ext_cmd(void);
|
||||
extern void X11_number_pad(int);
|
||||
extern void X11_delay_output(void);
|
||||
extern void X11_status_init(void);
|
||||
extern void X11_status_finish(void);
|
||||
extern void X11_status_enablefield(int, const char *, const char *, boolean);
|
||||
extern void X11_status_update(int, genericptr_t, int, int, int,
|
||||
unsigned long *);
|
||||
|
||||
#ifdef GRAPHIC_TOMBSTONE
|
||||
extern void X11_outrip(winid, int, time_t);
|
||||
#else
|
||||
#ifndef GRAPHIC_TOMBSTONE
|
||||
extern void genl_outrip(winid, int, time_t);
|
||||
#endif
|
||||
|
||||
extern void X11_preference_update(const char *);
|
||||
extern void X11_update_inventory(int);
|
||||
extern win_request_info *X11_ctrl_nhwindow(winid, int, win_request_info *);
|
||||
extern X11_map_symbol X11_glyph_char(const glyph_info *);
|
||||
#ifndef USE_XFT
|
||||
extern XFontStruct *X11_bold_font(Display *, XFontStruct *);
|
||||
extern XFontStruct *X11_italic_font(Display *, XFontStruct *);
|
||||
#endif /* !USE_XFT */
|
||||
#ifdef ENHANCED_SYMBOLS
|
||||
extern XFontStruct *X11_unicode_font(Display *, XFontStruct *);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user