switch source tree from k&r to c99
This commit is contained in:
190
include/wintty.h
190
include/wintty.h
@@ -114,35 +114,35 @@ extern char defmorestr[]; /* default --more-- prompt */
|
||||
/* port specific external function references */
|
||||
|
||||
/* ### getline.c ### */
|
||||
E void FDECL(xwaitforspace, (const char *));
|
||||
E void xwaitforspace(const char *);
|
||||
|
||||
/* ### termcap.c, video.c ### */
|
||||
|
||||
E void FDECL(tty_startup, (int *, int *));
|
||||
E void tty_startup(int *, int *);
|
||||
#ifndef NO_TERMS
|
||||
E void NDECL(tty_shutdown);
|
||||
E void tty_shutdown(void);
|
||||
#endif
|
||||
E int FDECL(xputc, (int));
|
||||
E void FDECL(xputs, (const char *));
|
||||
E int xputc(int);
|
||||
E void xputs(const char *);
|
||||
#if defined(SCREEN_VGA) || defined(SCREEN_8514)
|
||||
E void FDECL(xputg, (int, int, unsigned));
|
||||
E void xputg(int, int, unsigned);
|
||||
#endif
|
||||
E void NDECL(cl_end);
|
||||
E void NDECL(clear_screen);
|
||||
E void NDECL(home);
|
||||
E void NDECL(standoutbeg);
|
||||
E void NDECL(standoutend);
|
||||
E void cl_end(void);
|
||||
E void clear_screen(void);
|
||||
E void home(void);
|
||||
E void standoutbeg(void);
|
||||
E void standoutend(void);
|
||||
#if 0
|
||||
E void NDECL(revbeg);
|
||||
E void NDECL(boldbeg);
|
||||
E void NDECL(blinkbeg);
|
||||
E void NDECL(dimbeg);
|
||||
E void NDECL(m_end);
|
||||
E void revbeg(void);
|
||||
E void boldbeg(void);
|
||||
E void blinkbeg(void);
|
||||
E void dimbeg(void);
|
||||
E void m_end(void);
|
||||
#endif
|
||||
E void NDECL(backsp);
|
||||
E void NDECL(graph_on);
|
||||
E void NDECL(graph_off);
|
||||
E void NDECL(cl_eos);
|
||||
E void backsp(void);
|
||||
E void graph_on(void);
|
||||
E void graph_off(void);
|
||||
E void cl_eos(void);
|
||||
|
||||
/*
|
||||
* termcap.c (or facsimiles in other ports) is the right place for doing
|
||||
@@ -150,102 +150,100 @@ E void NDECL(cl_eos);
|
||||
* a color or whatever. wintty.c should concern itself with WHERE to put
|
||||
* stuff in a window.
|
||||
*/
|
||||
E int FDECL(term_attr_fixup, (int));
|
||||
E void FDECL(term_start_attr, (int attr));
|
||||
E void FDECL(term_end_attr, (int attr));
|
||||
E void NDECL(term_start_raw_bold);
|
||||
E void NDECL(term_end_raw_bold);
|
||||
E int term_attr_fixup(int);
|
||||
E void term_start_attr(int attr);
|
||||
E void term_end_attr(int attr);
|
||||
E void term_start_raw_bold(void);
|
||||
E void term_end_raw_bold(void);
|
||||
|
||||
#ifdef TEXTCOLOR
|
||||
E void NDECL(term_end_color);
|
||||
E void FDECL(term_start_color, (int color));
|
||||
E void term_end_color(void);
|
||||
E void term_start_color(int color);
|
||||
#endif /* TEXTCOLOR */
|
||||
|
||||
/* ### topl.c ### */
|
||||
|
||||
E void FDECL(show_topl, (const char *));
|
||||
E void NDECL(remember_topl);
|
||||
E void FDECL(addtopl, (const char *));
|
||||
E void NDECL(more);
|
||||
E void FDECL(update_topl, (const char *));
|
||||
E void FDECL(putsyms, (const char *));
|
||||
E void show_topl(const char *);
|
||||
E void remember_topl(void);
|
||||
E void addtopl(const char *);
|
||||
E void more(void);
|
||||
E void update_topl(const char *);
|
||||
E void putsyms(const char *);
|
||||
|
||||
/* ### wintty.c ### */
|
||||
#ifdef CLIPPING
|
||||
E void NDECL(setclipped);
|
||||
E void setclipped(void);
|
||||
#endif
|
||||
E void FDECL(docorner, (int, int));
|
||||
E void NDECL(end_glyphout);
|
||||
E void FDECL(g_putch, (int));
|
||||
E void FDECL(win_tty_init, (int));
|
||||
E void docorner(int, int);
|
||||
E void end_glyphout(void);
|
||||
E void g_putch(int);
|
||||
E void win_tty_init(int);
|
||||
|
||||
/* external declarations */
|
||||
E void FDECL(tty_init_nhwindows, (int *, char **));
|
||||
E void FDECL(tty_preference_update, (const char *));
|
||||
E void NDECL(tty_player_selection);
|
||||
E void NDECL(tty_askname);
|
||||
E void NDECL(tty_get_nh_event);
|
||||
E void FDECL(tty_exit_nhwindows, (const char *));
|
||||
E void FDECL(tty_suspend_nhwindows, (const char *));
|
||||
E void NDECL(tty_resume_nhwindows);
|
||||
E winid FDECL(tty_create_nhwindow, (int));
|
||||
E void FDECL(tty_clear_nhwindow, (winid));
|
||||
E void FDECL(tty_display_nhwindow, (winid, BOOLEAN_P));
|
||||
E void FDECL(tty_dismiss_nhwindow, (winid));
|
||||
E void FDECL(tty_destroy_nhwindow, (winid));
|
||||
E void FDECL(tty_curs, (winid, int, int));
|
||||
E void FDECL(tty_putstr, (winid, int, const char *));
|
||||
E void FDECL(tty_display_file, (const char *, BOOLEAN_P));
|
||||
E void FDECL(tty_start_menu, (winid, unsigned long));
|
||||
E void FDECL(tty_add_menu, (winid, const glyph_info *, const ANY_P *,
|
||||
CHAR_P, CHAR_P, int, const char *,
|
||||
unsigned int));
|
||||
E void FDECL(tty_end_menu, (winid, const char *));
|
||||
E int FDECL(tty_select_menu, (winid, int, MENU_ITEM_P **));
|
||||
E char FDECL(tty_message_menu, (CHAR_P, int, const char *));
|
||||
E void NDECL(tty_update_inventory);
|
||||
E void NDECL(tty_mark_synch);
|
||||
E void NDECL(tty_wait_synch);
|
||||
E void tty_init_nhwindows(int *, char **);
|
||||
E void tty_preference_update(const char *);
|
||||
E void tty_player_selection(void);
|
||||
E void tty_askname(void);
|
||||
E void tty_get_nh_event(void);
|
||||
E void tty_exit_nhwindows(const char *);
|
||||
E void tty_suspend_nhwindows(const char *);
|
||||
E void tty_resume_nhwindows(void);
|
||||
E winid tty_create_nhwindow(int);
|
||||
E void tty_clear_nhwindow(winid);
|
||||
E void tty_display_nhwindow(winid, boolean);
|
||||
E void tty_dismiss_nhwindow(winid);
|
||||
E void tty_destroy_nhwindow(winid);
|
||||
E void tty_curs(winid, int, int);
|
||||
E void tty_putstr(winid, int, const char *);
|
||||
E void tty_display_file(const char *, boolean);
|
||||
E void tty_start_menu(winid, unsigned long);
|
||||
E void tty_add_menu(winid, const glyph_info *, const ANY_P *, char, char,
|
||||
int, const char *, unsigned int);
|
||||
E void tty_end_menu(winid, const char *);
|
||||
E int tty_select_menu(winid, int, MENU_ITEM_P **);
|
||||
E char tty_message_menu(char, int, const char *);
|
||||
E void tty_update_inventory(void);
|
||||
E void tty_mark_synch(void);
|
||||
E void tty_wait_synch(void);
|
||||
#ifdef CLIPPING
|
||||
E void FDECL(tty_cliparound, (int, int));
|
||||
E void tty_cliparound(int, int);
|
||||
#endif
|
||||
#ifdef POSITIONBAR
|
||||
E void FDECL(tty_update_positionbar, (char *));
|
||||
E void tty_update_positionbar(char *);
|
||||
#endif
|
||||
E void FDECL(tty_print_glyph, (winid, XCHAR_P, XCHAR_P,
|
||||
const glyph_info *, const glyph_info *));
|
||||
E void FDECL(tty_raw_print, (const char *));
|
||||
E void FDECL(tty_raw_print_bold, (const char *));
|
||||
E int NDECL(tty_nhgetch);
|
||||
E int FDECL(tty_nh_poskey, (int *, int *, int *));
|
||||
E void NDECL(tty_nhbell);
|
||||
E int NDECL(tty_doprev_message);
|
||||
E char FDECL(tty_yn_function, (const char *, const char *, CHAR_P));
|
||||
E void FDECL(tty_getlin, (const char *, char *));
|
||||
E int NDECL(tty_get_ext_cmd);
|
||||
E void FDECL(tty_number_pad, (int));
|
||||
E void NDECL(tty_delay_output);
|
||||
E void tty_print_glyph(winid, xchar, xchar, const glyph_info *,
|
||||
const glyph_info *);
|
||||
E void tty_raw_print(const char *);
|
||||
E void tty_raw_print_bold(const char *);
|
||||
E int tty_nhgetch(void);
|
||||
E int tty_nh_poskey(int *, int *, int *);
|
||||
E void tty_nhbell(void);
|
||||
E int tty_doprev_message(void);
|
||||
E char tty_yn_function(const char *, const char *, char);
|
||||
E void tty_getlin(const char *, char *);
|
||||
E int tty_get_ext_cmd(void);
|
||||
E void tty_number_pad(int);
|
||||
E void tty_delay_output(void);
|
||||
#ifdef CHANGE_COLOR
|
||||
E void FDECL(tty_change_color, (int color, long rgb, int reverse));
|
||||
E void tty_change_color(int color, long rgb, int reverse);
|
||||
#ifdef MAC
|
||||
E void FDECL(tty_change_background, (int white_or_black));
|
||||
E short FDECL(set_tty_font_name, (winid, char *));
|
||||
E void tty_change_background(int white_or_black);
|
||||
E short set_tty_font_name(winid, char *);
|
||||
#endif
|
||||
E char *NDECL(tty_get_color_string);
|
||||
E char *tty_get_color_string(void);
|
||||
#endif
|
||||
E void FDECL(tty_status_enablefield,
|
||||
(int, const char *, const char *, BOOLEAN_P));
|
||||
E void NDECL(tty_status_init);
|
||||
E void FDECL(tty_status_update, (int, genericptr_t, int, int, int, unsigned long *));
|
||||
E void tty_status_enablefield(int, const char *, const char *, boolean);
|
||||
E void tty_status_init(void);
|
||||
E void tty_status_update(int, genericptr_t, int, int, int, unsigned long *);
|
||||
|
||||
/* other defs that really should go away (they're tty specific) */
|
||||
E void NDECL(tty_start_screen);
|
||||
E void NDECL(tty_end_screen);
|
||||
E void tty_start_screen(void);
|
||||
E void tty_end_screen(void);
|
||||
|
||||
E void FDECL(genl_outrip, (winid, int, time_t));
|
||||
E void genl_outrip(winid, int, time_t);
|
||||
|
||||
E char *FDECL(tty_getmsghistory, (BOOLEAN_P));
|
||||
E void FDECL(tty_putmsghistory, (const char *, BOOLEAN_P));
|
||||
E char *tty_getmsghistory(boolean);
|
||||
E void tty_putmsghistory(const char *, boolean);
|
||||
|
||||
#ifdef NO_TERMS
|
||||
#ifdef MAC
|
||||
@@ -256,9 +254,9 @@ E void FDECL(tty_putmsghistory, (const char *, BOOLEAN_P));
|
||||
#define putchar term_putc
|
||||
#define fflush term_flush
|
||||
#define puts term_puts
|
||||
E int FDECL(term_putc, (int c));
|
||||
E int FDECL(term_flush, (void *desc));
|
||||
E int FDECL(term_puts, (const char *str));
|
||||
E int term_putc(int c);
|
||||
E int term_flush(void *desc);
|
||||
E int term_puts(const char *str);
|
||||
#endif /* MAC */
|
||||
#if defined(MSDOS) || defined(WIN32)
|
||||
#if defined(SCREEN_BIOS) || defined(SCREEN_DJGPPFAST) || defined(WIN32)
|
||||
@@ -270,7 +268,7 @@ E int FDECL(term_puts, (const char *str));
|
||||
#define puts(x) xputs(x)
|
||||
#endif /*SCREEN_BIOS || SCREEN_DJGPPFAST || WIN32 */
|
||||
#ifdef POSITIONBAR
|
||||
E void FDECL(video_update_positionbar, (char *));
|
||||
E void video_update_positionbar(char *);
|
||||
#endif
|
||||
#endif /*MSDOS*/
|
||||
#endif /*NO_TERMS*/
|
||||
|
||||
Reference in New Issue
Block a user