summaryrefslogtreecommitdiffstats
path: root/atc/input.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-22 22:58:56 +0000
committerdholland <dholland@NetBSD.org>2014-03-22 22:58:56 +0000
commit2b1b33dbf5144e2190a0dc9963afa23ce93aa7af (patch)
tree6e374d2a51414743ee9f00df6c9903fbca26a8a0 /atc/input.c
parentb02984cd3526b2e629c94ede019e8e2492c06e5f (diff)
downloadbsdgames-darwin-2b1b33dbf5144e2190a0dc9963afa23ce93aa7af.tar.gz
bsdgames-darwin-2b1b33dbf5144e2190a0dc9963afa23ce93aa7af.tar.zst
bsdgames-darwin-2b1b33dbf5144e2190a0dc9963afa23ce93aa7af.zip
Make the list of place types an enumeration. Use unsigned values for
place numbers.
Diffstat (limited to 'atc/input.c')
-rw-r--r--atc/input.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/atc/input.c b/atc/input.c
index 1513c2a4..500af29b 100644
--- a/atc/input.c
+++ b/atc/input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: input.c,v 1.27 2014/03/22 22:47:07 dholland Exp $ */
+/* $NetBSD: input.c,v 1.28 2014/03/22 22:58:56 dholland Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: input.c,v 1.27 2014/03/22 22:47:07 dholland Exp $");
+__RCSID("$NetBSD: input.c,v 1.28 2014/03/22 22:58:56 dholland Exp $");
#endif
#endif /* not lint */
@@ -199,7 +199,8 @@ static PLANE p;
static STACK stack[MAXDEPTH];
static int level;
static int tval;
-static int dest_type, dir;
+static int dir;
+static enum places dest_type;
static unsigned dest_no;
static int