summaryrefslogtreecommitdiffstats
path: root/robots/move.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-12 08:21:41 +0000
committerdholland <dholland@NetBSD.org>2009-08-12 08:21:41 +0000
commit4fa17c6f9afc7c76d0350d5d9e5996391aa18137 (patch)
treedf25abab941a9c4156963af474b6ba2a96023025 /robots/move.c
parent8916e2056e90ba2c157dfd2b98fb48837d565646 (diff)
downloadbsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.tar.gz
bsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.tar.zst
bsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.zip
sprinkle static
Diffstat (limited to 'robots/move.c')
-rw-r--r--robots/move.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/robots/move.c b/robots/move.c
index 443fdde3..3b13d1f8 100644
--- a/robots/move.c
+++ b/robots/move.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move.c,v 1.15 2009/07/20 06:39:06 dholland Exp $ */
+/* $NetBSD: move.c,v 1.16 2009/08/12 08:30:55 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: move.c,v 1.15 2009/07/20 06:39:06 dholland Exp $");
+__RCSID("$NetBSD: move.c,v 1.16 2009/08/12 08:30:55 dholland Exp $");
#endif
#endif /* not lint */
@@ -47,6 +47,10 @@ __RCSID("$NetBSD: move.c,v 1.15 2009/07/20 06:39:06 dholland Exp $");
#define ESC '\033'
+static bool do_move(int, int);
+static bool eaten(const COORD *);
+static bool must_telep(void);
+
/*
* get_move:
* Get and execute a move from the player
@@ -212,7 +216,7 @@ ret:
* Must I teleport; i.e., is there anywhere I can move without
* being eaten?
*/
-bool
+static bool
must_telep(void)
{
int x, y;
@@ -244,7 +248,7 @@ must_telep(void)
* do_move:
* Execute a move
*/
-bool
+static bool
do_move(int dy, int dx)
{
static COORD newpos;
@@ -280,7 +284,7 @@ do_move(int dy, int dx)
* eaten:
* Player would get eaten at this place
*/
-bool
+static bool
eaten(const COORD *pos)
{
int x, y;