switch source tree from k&r to c99
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user