switch source tree from k&r to c99

This commit is contained in:
nhmall
2021-01-26 21:06:16 -05:00
parent a2a9cb7b4f
commit f963c5aca7
232 changed files with 12099 additions and 17782 deletions
+19 -19
View File
@@ -230,7 +230,7 @@ curses_init_nhwindows(int *argcp UNUSED,
the process. You need to fill in pl_character[0].
*/
void
curses_player_selection()
curses_player_selection(void)
{
curses_choose_character();
}
@@ -238,7 +238,7 @@ curses_player_selection()
/* Ask the user for a player name. */
void
curses_askname()
curses_askname(void)
{
#ifdef SELECTSAVED
if (iflags.wc2_selectsaved && !iflags.renameinprogress)
@@ -271,7 +271,7 @@ curses_askname()
A noop for the tty and X window-ports.
*/
void
curses_get_nh_event()
curses_get_nh_event(void)
{
boolean do_reset = FALSE;
@@ -330,7 +330,7 @@ curses_suspend_nhwindows(const char *str UNUSED)
/* Restore the windows after being suspended. */
void
curses_resume_nhwindows()
curses_resume_nhwindows(void)
{
curses_refresh_nethack_windows();
}
@@ -380,7 +380,7 @@ curses_clear_nhwindow(winid wid)
--more--, if necessary, in the tty window-port.
*/
void
curses_display_nhwindow(winid wid, BOOLEAN_P block)
curses_display_nhwindow(winid wid, boolean block)
{
menu_item *selected = NULL;
@@ -489,7 +489,7 @@ curses_putstr(winid wid, int attr, const char *text)
iff complain is TRUE.
*/
void
curses_display_file(const char *filename, BOOLEAN_P must_exist)
curses_display_file(const char *filename, boolean must_exist)
{
curses_view_file(filename, must_exist);
}
@@ -544,7 +544,7 @@ add_menu(winid wid, const glyph_info *glyphinfo,
void
curses_add_menu(winid wid, const glyph_info *glyphinfo,
const ANY_P * identifier,
CHAR_P accelerator, CHAR_P group_accel, int attr,
char accelerator, char group_accel, int attr,
const char *str, unsigned itemflags)
{
int curses_attr;
@@ -641,7 +641,7 @@ mark_synch() -- Don't go beyond this point in I/O on any channel until
for the moment
*/
void
curses_mark_synch()
curses_mark_synch(void)
{
}
@@ -652,7 +652,7 @@ wait_synch() -- Wait until all pending output is complete (*flush*() for
display is OK when return from wait_synch().
*/
void
curses_wait_synch()
curses_wait_synch(void)
{
/* [do we need 'if (counting) curses_count_window((char *)0);' here?] */
}
@@ -700,7 +700,7 @@ print_glyph(window, x, y, glyphinfo, bkglyphinfo)
*/
void
curses_print_glyph(winid wid, XCHAR_P x, XCHAR_P y,
curses_print_glyph(winid wid, xchar x, xchar y,
const glyph_info *glyphinfo, const glyph_info *bkglyphinfo UNUSED)
{
int glyph;
@@ -782,7 +782,7 @@ int nhgetch() -- Returns a single character input from the user.
Returned character _must_ be non-zero.
*/
int
curses_nhgetch()
curses_nhgetch(void)
{
int ch;
@@ -828,7 +828,7 @@ nhbell() -- Beep at user. [This will exist at least until sounds are
redone, since sounds aren't attributable to windows anyway.]
*/
void
curses_nhbell()
curses_nhbell(void)
{
beep();
}
@@ -839,7 +839,7 @@ doprev_message()
-- On the tty-port this scrolls WIN_MESSAGE back one line.
*/
int
curses_doprev_message()
curses_doprev_message(void)
{
curses_prev_mesg();
return 0;
@@ -865,7 +865,7 @@ char yn_function(const char *ques, const char *choices, char default)
ports might use a popup.
*/
char
curses_yn_function(const char *question, const char *choices, CHAR_P def)
curses_yn_function(const char *question, const char *choices, char def)
{
return (char) curses_character_input_dialog(question, choices, def);
}
@@ -893,7 +893,7 @@ int get_ext_cmd(void)
selection, -1 otherwise.
*/
int
curses_get_ext_cmd()
curses_get_ext_cmd(void)
{
return curses_ext_cmd();
}
@@ -915,7 +915,7 @@ delay_output() -- Causes a visible delay of 50ms in the output.
by a nap(50ms), but allows asynchronous operation.
*/
void
curses_delay_output()
curses_delay_output(void)
{
/* refreshing the whole display is a waste of time,
* but that's why we're here */
@@ -931,7 +931,7 @@ start_screen() -- Only used on Unix tty ports, but must be declared for
just declare an empty function.
*/
void
curses_start_screen()
curses_start_screen(void)
{
}
@@ -940,7 +940,7 @@ end_screen() -- Only used on Unix tty ports, but must be declared for
completeness. The complement of start_screen().
*/
void
curses_end_screen()
curses_end_screen(void)
{
}
@@ -1024,7 +1024,7 @@ dummy_change_color(int a1 UNUSED, long a2 UNUSED, int a3 UNUSED)
}
static char *
dummy_get_color_string(VOID_ARGS)
dummy_get_color_string(void)
{
return (char *) 0;
}