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
+5 -7
View File
@@ -38,7 +38,7 @@ static int parse_escape_sequence(void);
/* Read a character of input from the user */
int
curses_read_char()
curses_read_char(void)
{
int ch;
#if defined(ALT_0) || defined(ALT_9) || defined(ALT_A) || defined(ALT_Z)
@@ -624,7 +624,7 @@ curses_move_cursor(winid wid, int x, int y)
/* Perform actions that should be done every turn before nhgetch() */
void
curses_prehousekeeping()
curses_prehousekeeping(void)
{
#ifndef PDCURSES
WINDOW *win = curses_get_nhwin(MAP_WIN);
@@ -647,7 +647,7 @@ curses_prehousekeeping()
/* Perform actions that should be done every turn after nhgetch() */
void
curses_posthousekeeping()
curses_posthousekeeping(void)
{
curs_set(0);
/* curses_decrement_highlights(FALSE); */
@@ -817,8 +817,7 @@ curses_read_attrs(const char *attrs)
/* format iflags.wc2_petattr into "+a+b..." for set bits a, b, ...
(used by core's 'O' command; return value points past leading '+') */
char *
curses_fmt_attrs(outbuf)
char *outbuf;
curses_fmt_attrs(char *outbuf)
{
int attr = iflags.wc2_petattr;
@@ -1030,8 +1029,7 @@ curses_get_mouse(int *mousex, int *mousey, int *mod)
}
void
curses_mouse_support(mode)
int mode; /* 0: off, 1: on, 2: alternate on */
curses_mouse_support(int mode) /* 0: off, 1: on, 2: alternate on */
{
#ifdef NCURSES_MOUSE_VERSION
mmask_t result, oldmask, newmask;