summaryrefslogtreecommitdiffstats
path: root/sail/dr_3.c
diff options
context:
space:
mode:
authorjwise <jwise@NetBSD.org>2001-01-04 01:53:24 +0000
committerjwise <jwise@NetBSD.org>2001-01-04 01:53:24 +0000
commitd7be70527bfff340ccf3fef43add3188d54d7eae (patch)
tree69f1c4a865aa8176ded722b9921e53476767b220 /sail/dr_3.c
parent0eb576600d73fa407f92dca881df9fc0b68864fd (diff)
downloadbsdgames-darwin-d7be70527bfff340ccf3fef43add3188d54d7eae.tar.gz
bsdgames-darwin-d7be70527bfff340ccf3fef43add3188d54d7eae.zip
First half of static-ization of local funcs.
Diffstat (limited to 'sail/dr_3.c')
-rw-r--r--sail/dr_3.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/sail/dr_3.c b/sail/dr_3.c
index b10fae42..3c8be352 100644
--- a/sail/dr_3.c
+++ b/sail/dr_3.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_3.c,v 1.9 2001/01/01 21:57:37 jwise Exp $ */
+/* $NetBSD: dr_3.c,v 1.10 2001/01/04 01:53:24 jwise Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,13 +38,23 @@
#if 0
static char sccsid[] = "@(#)dr_3.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dr_3.c,v 1.9 2001/01/01 21:57:37 jwise Exp $");
+__RCSID("$NetBSD: dr_3.c,v 1.10 2001/01/04 01:53:24 jwise Exp $");
#endif
#endif /* not lint */
#include "driver.h"
#include <stdlib.h>
+void moveall(void);
+static int stillmoving(int);
+static int is_isolated(struct ship *);
+static int push(struct ship *, struct ship *);
+static void step(int, struct ship *, char *);
+void sendbp(struct ship *, struct ship *, int, int);
+int is_toughmelee(struct ship *, struct ship *, int, int);
+void reload(void);
+void checksails(void);
+
/* move all comp ships */
void
moveall(void)
@@ -183,7 +193,7 @@ moveall(void)
}
}
-int
+static int
stillmoving(int k)
{
struct ship *sp;
@@ -194,7 +204,7 @@ stillmoving(int k)
return 0;
}
-int
+static int
is_isolated(struct ship *ship)
{
struct ship *sp;
@@ -206,7 +216,7 @@ is_isolated(struct ship *ship)
return 1;
}
-int
+static int
push(struct ship *from, struct ship *to)
{
int bs, sb;
@@ -220,7 +230,7 @@ push(struct ship *from, struct ship *to)
return from < to;
}
-void
+static void
step(int com, struct ship *sp, char *moved)
{
int dist;