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
+6 -6
View File
@@ -108,7 +108,7 @@ set_window_position(int *winx, int *winy, int *winw, int *winh,
/* Create the "main" nonvolatile windows used by nethack */
void
curses_create_main_windows()
curses_create_main_windows(void)
{
int min_message_height = 1;
int message_orientation = 0;
@@ -298,7 +298,7 @@ curses_create_main_windows()
/* Initialize curses colors to colors used by NetHack */
void
curses_init_nhcolors()
curses_init_nhcolors(void)
{
#ifdef TEXTCOLOR
if (has_colors()) {
@@ -411,7 +411,7 @@ curses_init_nhcolors()
/* Allow player to pick character's role, race, gender, and alignment.
Borrowed from the Gnome window port. */
void
curses_choose_character()
curses_choose_character(void)
{
int n, i, sel, count_off, pick4u;
int count = 0;
@@ -775,7 +775,7 @@ curses_character_dialog(const char **choices, const char *prompt)
/* Initialize and display options appropriately */
void
curses_init_options()
curses_init_options(void)
{
/* change these from set_gameview to set_in_game */
set_wc_option_mod_status(WC_ALIGN_MESSAGE | WC_ALIGN_STATUS, set_in_game);
@@ -846,7 +846,7 @@ curses_init_options()
/* Display an ASCII splash screen if the splash_screen option is set */
void
curses_display_splash_window()
curses_display_splash_window(void)
{
int i, x_start, y_start;
@@ -880,7 +880,7 @@ curses_display_splash_window()
/* Restore colors and cursor state before exiting */
void
curses_cleanup()
curses_cleanup(void)
{
#ifdef TEXTCOLOR
if (has_colors() && can_change_color()) {