summaryrefslogtreecommitdiffstats
path: root/mille/misc.c
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1997-05-23 23:09:36 +0000
committerjtc <jtc@NetBSD.org>1997-05-23 23:09:36 +0000
commit9853b17d101ca569d22656507e9da0092cfad0ff (patch)
tree21220576e4dd7b226094f1e9663f0e3b55186d70 /mille/misc.c
parentb218620de93fbebcfba8ec74b22d33986ba70b3f (diff)
downloadbsdgames-darwin-9853b17d101ca569d22656507e9da0092cfad0ff.tar.gz
bsdgames-darwin-9853b17d101ca569d22656507e9da0092cfad0ff.tar.zst
bsdgames-darwin-9853b17d101ca569d22656507e9da0092cfad0ff.zip
Change "reg" to "register"
Remove private implementation of erasechar() and killchar().
Diffstat (limited to 'mille/misc.c')
-rw-r--r--mille/misc.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/mille/misc.c b/mille/misc.c
index 8dafc778..37dc4eb3 100644
--- a/mille/misc.c
+++ b/mille/misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.4 1995/03/24 05:01:54 cgd Exp $ */
+/* $NetBSD: misc.c,v 1.5 1997/05/23 23:09:40 jtc Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: misc.c,v 1.4 1995/03/24 05:01:54 cgd Exp $";
+static char rcsid[] = "$NetBSD: misc.c,v 1.5 1997/05/23 23:09:40 jtc Exp $";
#endif
#endif /* not lint */
@@ -52,7 +52,6 @@ static char rcsid[] = "$NetBSD: misc.c,v 1.4 1995/03/24 05:01:54 cgd Exp $";
# ifdef attron
# include <term.h>
-# define _tty cur_term->Nttyb
# endif attron
/*
@@ -77,7 +76,7 @@ char *str;
CARD
getcard()
{
- reg int c, c1;
+ register int c, c1;
for (;;) {
while ((c = readch()) == '\n' || c == '\r' || c == ' ')
@@ -124,7 +123,7 @@ cont: ;
}
check_ext(forcomp)
-reg bool forcomp; {
+register bool forcomp; {
if (End == 700)
@@ -143,8 +142,8 @@ done:
}
}
else {
- reg PLAY *pp, *op;
- reg int i, safe, miles;
+ register PLAY *pp, *op;
+ register int i, safe, miles;
pp = &Player[COMP];
op = &Player[PLAYER];
@@ -178,9 +177,9 @@ done:
* also allowed. Return TRUE if the answer was yes, FALSE if no.
*/
getyn(promptno)
-register int promptno; {
-
- reg char c;
+register int promptno;
+{
+ register char c;
Saved = FALSE;
for (;;) {
@@ -249,7 +248,7 @@ check_more() {
readch()
{
- reg int cnt;
+ register int cnt;
static char c;
for (cnt = 0; read(0, &c, 1) <= 0; cnt++)