-/* $NetBSD: roll.c,v 1.7 1999/08/21 10:40:04 simonb Exp $ */
+/* $NetBSD: roll.c,v 1.8 2002/06/02 22:17:37 wiz Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)roll.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: roll.c,v 1.7 1999/08/21 10:40:04 simonb Exp $");
+__RCSID("$NetBSD: roll.c,v 1.8 2002/06/02 22:17:37 wiz Exp $");
#endif
#endif /* not lint */
* This routine rolls ndie nside-sided dice.
*/
-#define reg register
-
#if defined(pdp11)
#define MAXRAND 32767L
-/* $NetBSD: input.c,v 1.4 1999/01/03 02:00:17 hubertf Exp $ */
+/* $NetBSD: input.c,v 1.5 2002/06/02 22:17:38 wiz Exp $ */
/*-
* Copyright (c) 1992, 1993
*/
int
rwait(tvp)
- register struct timeval *tvp;
+ struct timeval *tvp;
{
int i;
struct timeval starttv, endtv, *s;
-/* $NetBSD: scores.c,v 1.10 2000/01/21 02:10:56 jsm Exp $ */
+/* $NetBSD: scores.c,v 1.11 2002/06/02 22:17:38 wiz Exp $ */
/*-
* Copyright (c) 1992, 1993
savescore(level)
int level;
{
- register struct highscore *sp;
- register int i;
+ struct highscore *sp;
+ int i;
int change;
FILE *sf;
const char *me;
static char *
thisuser()
{
- register const char *p;
- register struct passwd *pw;
- register size_t l;
+ const char *p;
+ struct passwd *pw;
+ size_t l;
static char u[sizeof(scores[0].hs_name)];
if (u[0])
cmpscores(x, y)
const void *x, *y;
{
- register const struct highscore *a, *b;
- register long l;
+ const struct highscore *a, *b;
+ long l;
a = x;
b = y;
*/
static int
checkscores(hs, num)
- register struct highscore *hs;
+ struct highscore *hs;
int num;
{
- register struct highscore *sp;
- register int i, j, k, numnames;
+ struct highscore *sp;
+ int i, j, k, numnames;
int levelfound[NLEVELS];
struct peruser {
char *name;
int times;
} count[NUMSPOTS];
- register struct peruser *pu;
+ struct peruser *pu;
/*
* Sort so that highest totals come first.
showscores(level)
int level;
{
- register struct highscore *sp;
- register int i, n, c;
+ struct highscore *sp;
+ int i, n, c;
const char *me;
int levelfound[NLEVELS];
static void
printem(level, offset, hs, n, me)
int level, offset;
- register struct highscore *hs;
- register int n;
+ struct highscore *hs;
+ int n;
const char *me;
{
- register struct highscore *sp;
+ struct highscore *sp;
int nrows, row, col, item, i, highlight;
char buf[100];
#define TITLE "Rank Score Name (points/level)"
-/* $NetBSD: screen.c,v 1.16 2001/11/02 18:27:00 christos Exp $ */
+/* $NetBSD: screen.c,v 1.17 2002/06/02 22:17:38 wiz Exp $ */
/*-
* Copyright (c) 1992, 1993
if (t_getent(&info, term) <= 0)
stop("cannot find your termcap");
{
- register struct tcsinfo *p;
+ struct tcsinfo *p;
for (p = tcstrings; p->tcaddr; p++)
*p->tcaddr = t_agetstr(info, p->tcname);
}
{
- register struct tcninfo *p;
+ struct tcninfo *p;
for (p = tcflags; p->tcaddr; p++)
*p->tcaddr = t_getflag(info, p->tcname);
void
scr_update()
{
- register cell *bp, *sp;
- register regcell so, cur_so = 0;
- register int i, ccol, j;
+ cell *bp, *sp;
+ regcell so, cur_so = 0;
+ int i, ccol, j;
sigset_t sigset, osigset;
static const struct shape *lastshape;
*/
void
scr_msg(s, set)
- register char *s;
+ char *s;
int set;
{
if (set || CEstr == NULL) {
- register int l = strlen(s);
+ int l = strlen(s);
moveto(Rows - 2, ((Cols - l) >> 1) - 1);
if (set)
-/* $NetBSD: shapes.c,v 1.4 1999/09/08 21:18:01 jsm Exp $ */
+/* $NetBSD: shapes.c,v 1.5 2002/06/02 22:17:38 wiz Exp $ */
/*-
* Copyright (c) 1992, 1993
int
fits_in(shape, pos)
const struct shape *shape;
- register int pos;
+ int pos;
{
- register int *o = shape->off;
+ int *o = shape->off;
if (board[pos] || board[pos + *o++] || board[pos + *o++] ||
board[pos + *o])
void
place(shape, pos, onoff)
const struct shape *shape;
- register int pos, onoff;
+ int pos, onoff;
{
- register int *o = shape->off;
+ int *o = shape->off;
board[pos] = onoff;
board[pos + *o++] = onoff;
-/* $NetBSD: tetris.c,v 1.14 2000/01/21 02:10:57 jsm Exp $ */
+/* $NetBSD: tetris.c,v 1.15 2002/06/02 22:17:38 wiz Exp $ */
/*-
* Copyright (c) 1992, 1993
static void
setup_board()
{
- register int i;
- register cell *p;
+ int i;
+ cell *p;
p = board;
for (i = B_SIZE; i; i--)
static void
elide()
{
- register int i, j, base;
- register cell *p;
+ int i, j, base;
+ cell *p;
for (i = A_FIRST; i < A_LAST; i++) {
base = i * B_COLS + 1;
int argc;
char *argv[];
{
- register int pos, c;
- register const char *keys;
- register int level = 2;
+ int pos, c;
+ const char *keys;
+ int level = 2;
char key_write[6][10];
int ch, i, j;
int fd;