version 1.9, 1997/07/09 06:25:47 |
version 1.10, 1997/10/10 12:32:32 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
|
#include <sys/cdefs.h> |
#ifndef lint |
#ifndef lint |
#if 0 |
#if 0 |
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93"; |
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93"; |
#else |
#else |
static char rcsid[] = "$NetBSD$"; |
__RCSID("$NetBSD$"); |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
Line 173 prhand(h, n, win, blank) |
|
Line 174 prhand(h, n, win, blank) |
|
WINDOW *win; |
WINDOW *win; |
BOOLEAN blank; |
BOOLEAN blank; |
{ |
{ |
register int i; |
int i; |
|
|
werase(win); |
werase(win); |
for (i = 0; i < n; i++) |
for (i = 0; i < n; i++) |
Line 192 infrom(hand, n, prompt) |
|
Line 193 infrom(hand, n, prompt) |
|
int n; |
int n; |
char *prompt; |
char *prompt; |
{ |
{ |
register int i, j; |
int i, j; |
CARD crd; |
CARD crd; |
|
|
if (n < 1) { |
if (n < 1) { |
|
|
incard(crd) |
incard(crd) |
CARD *crd; |
CARD *crd; |
{ |
{ |
register int i; |
int i; |
int rnk, sut; |
int rnk, sut; |
char *line, *p, *p1; |
char *line, *p, *p1; |
BOOLEAN retval; |
BOOLEAN retval; |
|
|
int |
int |
getuchar() |
getuchar() |
{ |
{ |
register int c; |
int c; |
|
|
c = readchar(); |
c = readchar(); |
if (islower(c)) |
if (islower(c)) |
Line 349 number(lo, hi, prompt) |
|
Line 350 number(lo, hi, prompt) |
|
int lo, hi; |
int lo, hi; |
char *prompt; |
char *prompt; |
{ |
{ |
register char *p; |
char *p; |
register int sum; |
int sum; |
|
|
for (sum = 0;;) { |
for (sum = 0;;) { |
msg(prompt); |
msg(prompt); |
|
|
endmsg() |
endmsg() |
{ |
{ |
static int lastline = 0; |
static int lastline = 0; |
register int len; |
int len; |
register char *mp, *omp; |
char *mp, *omp; |
|
|
/* All messages should start with uppercase */ |
/* All messages should start with uppercase */ |
mvaddch(lastline + Y_MSG_START, SCORE_X, ' '); |
mvaddch(lastline + Y_MSG_START, SCORE_X, ' '); |
|
|
*/ |
*/ |
void |
void |
wait_for(ch) |
wait_for(ch) |
register int ch; |
int ch; |
{ |
{ |
register char c; |
char c; |
|
|
if (ch == '\n') |
if (ch == '\n') |
while ((c = readchar()) != '\n') |
while ((c = readchar()) != '\n') |
|
|
int |
int |
readchar() |
readchar() |
{ |
{ |
register int cnt; |
int cnt; |
char c; |
char c; |
|
|
over: |
over: |
|
|
char * |
char * |
getline() |
getline() |
{ |
{ |
register char *sp; |
char *sp; |
register int c, oy, ox; |
int c, oy, ox; |
register WINDOW *oscr; |
WINDOW *oscr; |
|
|
oscr = stdscr; |
oscr = stdscr; |
stdscr = Msgwin; |
stdscr = Msgwin; |
|
|
else |
else |
if (c == erasechar()) { /* process erase character */ |
if (c == erasechar()) { /* process erase character */ |
if (sp > linebuf) { |
if (sp > linebuf) { |
register int i; |
int i; |
|
|
sp--; |
sp--; |
for (i = strlen(unctrl(*sp)); i; i--) |
for (i = strlen(unctrl(*sp)); i; i--) |