de-register
This commit is contained in:
parent
2f6c445df5
commit
10b0b6bce0
@ -1,4 +1,4 @@
|
||||
/* $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
|
||||
@ -38,7 +38,7 @@
|
||||
#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 */
|
||||
|
||||
@ -49,8 +49,6 @@ __RCSID("$NetBSD: roll.c,v 1.7 1999/08/21 10:40:04 simonb Exp $");
|
||||
* This routine rolls ndie nside-sided dice.
|
||||
*/
|
||||
|
||||
#define reg register
|
||||
|
||||
#if defined(pdp11)
|
||||
#define MAXRAND 32767L
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $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
|
||||
@ -76,7 +76,7 @@
|
||||
*/
|
||||
int
|
||||
rwait(tvp)
|
||||
register struct timeval *tvp;
|
||||
struct timeval *tvp;
|
||||
{
|
||||
int i;
|
||||
struct timeval starttv, endtv, *s;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $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
|
||||
@ -152,8 +152,8 @@ void
|
||||
savescore(level)
|
||||
int level;
|
||||
{
|
||||
register struct highscore *sp;
|
||||
register int i;
|
||||
struct highscore *sp;
|
||||
int i;
|
||||
int change;
|
||||
FILE *sf;
|
||||
const char *me;
|
||||
@ -218,9 +218,9 @@ savescore(level)
|
||||
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])
|
||||
@ -251,8 +251,8 @@ static int
|
||||
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;
|
||||
@ -279,17 +279,17 @@ cmpscores(x, 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.
|
||||
@ -355,8 +355,8 @@ void
|
||||
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];
|
||||
|
||||
@ -407,11 +407,11 @@ showscores(level)
|
||||
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)"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $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
|
||||
@ -183,13 +183,13 @@ scr_init()
|
||||
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);
|
||||
@ -377,9 +377,9 @@ typedef cell regcell;
|
||||
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;
|
||||
|
||||
@ -489,12 +489,12 @@ scr_update()
|
||||
*/
|
||||
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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $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
|
||||
@ -85,9 +85,9 @@ const struct shape shapes[] = {
|
||||
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])
|
||||
@ -102,9 +102,9 @@ fits_in(shape, pos)
|
||||
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;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $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
|
||||
@ -92,8 +92,8 @@ static void setup_board __P((void));
|
||||
static void
|
||||
setup_board()
|
||||
{
|
||||
register int i;
|
||||
register cell *p;
|
||||
int i;
|
||||
cell *p;
|
||||
|
||||
p = board;
|
||||
for (i = B_SIZE; i; i--)
|
||||
@ -106,8 +106,8 @@ setup_board()
|
||||
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;
|
||||
@ -133,9 +133,9 @@ main(argc, argv)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user