From 2b1b33dbf5144e2190a0dc9963afa23ce93aa7af Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 22 Mar 2014 22:58:56 +0000 Subject: Make the list of place types an enumeration. Use unsigned values for place numbers. --- atc/input.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'atc/input.c') 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 -- cgit v1.2.3-56-ge451