summaryrefslogtreecommitdiffstats
path: root/battlestar
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2000-09-24 09:46:28 +0000
committerjsm <jsm@NetBSD.org>2000-09-24 09:46:28 +0000
commitd7f90a9758fac4eeef9becbd25c24c76b28001bf (patch)
tree5f54c57b2e1793b88547c8a1bb7150b630dc5212 /battlestar
parent3d4902aa7de8b16683432881769e634609db5457 (diff)
downloadbsdgames-darwin-d7f90a9758fac4eeef9becbd25c24c76b28001bf.tar.gz
bsdgames-darwin-d7f90a9758fac4eeef9becbd25c24c76b28001bf.tar.zst
bsdgames-darwin-d7f90a9758fac4eeef9becbd25c24c76b28001bf.zip
Make functions local to parse.c static.
Diffstat (limited to 'battlestar')
-rw-r--r--battlestar/extern.h5
-rw-r--r--battlestar/parse.c14
2 files changed, 10 insertions, 9 deletions
diff --git a/battlestar/extern.h b/battlestar/extern.h
index ac85e719..811ef051 100644
--- a/battlestar/extern.h
+++ b/battlestar/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.23 2000/09/24 09:44:28 jsm Exp $ */
+/* $NetBSD: extern.h,v 1.24 2000/09/24 09:46:28 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -337,16 +337,13 @@ int follow __P((void));
char *getcom __P((char *, int, const char *, const char *));
char *getword __P((char *, char *, int));
int give __P((void));
-int hash __P((const char *));
void initialize __P((const char *));
-void install __P((struct wlist *));
int jump __P((void));
void kiss __P((void));
int land __P((void));
int launch __P((void));
void light __P((void));
void live __P((void)) __attribute__((__noreturn__));
-struct wlist *lookup __P((const char *));
void love __P((void));
int moveplayer __P((int, int));
void murder __P((void));
diff --git a/battlestar/parse.c b/battlestar/parse.c
index 46a51a0b..75c54e23 100644
--- a/battlestar/parse.c
+++ b/battlestar/parse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.9 2000/09/22 08:19:21 jsm Exp $ */
+/* $NetBSD: parse.c,v 1.10 2000/09/24 09:46:28 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,12 +38,16 @@
#if 0
static char sccsid[] = "@(#)parse.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: parse.c,v 1.9 2000/09/22 08:19:21 jsm Exp $");
+__RCSID("$NetBSD: parse.c,v 1.10 2000/09/24 09:46:28 jsm Exp $");
#endif
#endif /* not lint */
#include "extern.h"
+static int hash __P((const char *));
+static void install __P((struct wlist *));
+static struct wlist *lookup __P((const char *));
+
void
wordinit()
{
@@ -53,7 +57,7 @@ wordinit()
install(w);
}
-int
+static int
hash(s)
const char *s;
{
@@ -67,7 +71,7 @@ hash(s)
return hashval;
}
-struct wlist *
+static struct wlist *
lookup(s)
const char *s;
{
@@ -79,7 +83,7 @@ lookup(s)
return NULL;
}
-void
+static void
install(wp)
struct wlist *wp;
{