-/* $NetBSD: bdisp.c,v 1.9 2008/08/08 16:10:47 drochner Exp $ */
+/* $NetBSD: bdisp.c,v 1.12 2009/07/13 19:05:40 roy Exp $ */
/*
* Copyright (c) 1994
#if 0
static char sccsid[] = "@(#)bdisp.c 8.2 (Berkeley) 5/3/95";
#else
-__RCSID("$NetBSD: bdisp.c,v 1.9 2008/08/08 16:10:47 drochner Exp $");
+__RCSID("$NetBSD: bdisp.c,v 1.12 2009/07/13 19:05:40 roy Exp $");
#endif
#endif /* not lint */
* Initialize screen display.
*/
void
-cursinit()
+cursinit(void)
{
if (!initscr()) {
* Restore screen display.
*/
void
-cursfini()
+cursfini(void)
{
leaveok(stdscr, FALSE);
* Initialize board display.
*/
void
-bdisp_init()
+bdisp_init(void)
{
int i, j;
* Update who is playing whom.
*/
void
-bdwho(update)
- int update;
+bdwho(int update)
{
int i;
* Update the board display after a move.
*/
void
-bdisp()
+bdisp(void)
{
int i, j, c;
struct spotstr *sp;
move(BSZ1 - j, 2 * i + 1);
sp = &board[i + j * BSZ1];
if (debug > 1 && sp->s_occ == EMPTY) {
- if (sp->s_flg & IFLAGALL)
+ if (sp->s_flags & IFLAGALL)
c = '+';
- else if (sp->s_flg & CFLAGALL)
+ else if (sp->s_flags & CFLAGALL)
c = '-';
else
c = '.';
* Dump board display to a file.
*/
void
-bdump(fp)
- FILE *fp;
+bdump(FILE *fp)
{
int i, j, c;
struct spotstr *sp;
for (i = 1; i < BSZ1; i++) {
sp = &board[i + j * BSZ1];
if (debug > 1 && sp->s_occ == EMPTY) {
- if (sp->s_flg & IFLAGALL)
+ if (sp->s_flags & IFLAGALL)
c = '+';
- else if (sp->s_flg & CFLAGALL)
+ else if (sp->s_flags & CFLAGALL)
c = '-';
else
c = '.';
* Display a transcript entry
*/
void
-dislog(str)
- const char *str;
+dislog(const char *str)
{
if (++lastline >= SCRNH - 1) {
*/
void
-ask(str)
- const char *str;
+ask(const char *str)
{
int len = strlen(str);
}
int
-getline(buf, size)
- char *buf;
- int size;
+get_line(char *buf, int size)
{
char *cp, *end;
int c;