summaryrefslogtreecommitdiffstats
path: root/phantasia/interplayer.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 /phantasia/interplayer.c
parent8916e2056e90ba2c157dfd2b98fb48837d565646 (diff)
downloadbsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.tar.gz
bsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.tar.zst
bsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.zip
sprinkle static
Diffstat (limited to 'phantasia/interplayer.c')
-rw-r--r--phantasia/interplayer.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/phantasia/interplayer.c b/phantasia/interplayer.c
index d47d32e0..3bb797d4 100644
--- a/phantasia/interplayer.c
+++ b/phantasia/interplayer.c
@@ -1,4 +1,4 @@
-/* $NetBSD: interplayer.c,v 1.10 2009/05/25 23:08:45 dholland Exp $ */
+/* $NetBSD: interplayer.c,v 1.11 2009/08/12 08:21:41 dholland Exp $ */
/*
* interplayer.c - player to player routines for Phantasia
@@ -8,6 +8,11 @@
#undef bool
#include <curses.h>
+static long allocvoid(void);
+static void battleplayer(long);
+static void myturn(void);
+static void tampered(int, double, double);
+
void
checkbattle(void)
{
@@ -45,7 +50,7 @@ checkbattle(void)
}
}
-void
+static void
battleplayer(long foeplace)
{
double dtemp; /* for temporary calculations */
@@ -273,7 +278,7 @@ LEAVE:
death("Interterminal battle");
}
-void
+static void
myturn(void)
{
double dtemp; /* for temporary calculations */
@@ -384,7 +389,7 @@ checktampered(void)
tampered(Other.p_tampered, Other.p_1scratch, Other.p_2scratch);
}
-void
+static void
tampered(int what, double arg1, double arg2)
{
long loc; /* location in file of other players */
@@ -866,7 +871,7 @@ writevoid(struct energyvoid *vp, long loc)
fseek(Energyvoidfp, 0L, SEEK_SET);
}
-long
+static long
allocvoid(void)
{
long loc = 0L; /* location of new energy void */