summaryrefslogtreecommitdiffstats
path: root/rogue/score.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-12 08:44:45 +0000
committerdholland <dholland@NetBSD.org>2009-08-12 08:44:45 +0000
commit39a1066cab493ece48c6e692513d1311b7e27c44 (patch)
treea896a49b2b5b09b9763d953ea2ce9ec0e813beb3 /rogue/score.c
parent4fa17c6f9afc7c76d0350d5d9e5996391aa18137 (diff)
downloadbsdgames-darwin-39a1066cab493ece48c6e692513d1311b7e27c44.tar.gz
bsdgames-darwin-39a1066cab493ece48c6e692513d1311b7e27c44.tar.zst
bsdgames-darwin-39a1066cab493ece48c6e692513d1311b7e27c44.zip
sprinkle static
Diffstat (limited to 'rogue/score.c')
-rw-r--r--rogue/score.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/rogue/score.c b/rogue/score.c
index f094fa2d..231f0c6d 100644
--- a/rogue/score.c
+++ b/rogue/score.c
@@ -1,4 +1,4 @@
-/* $NetBSD: score.c,v 1.14 2008/01/14 03:50:02 dholland Exp $ */
+/* $NetBSD: score.c,v 1.15 2009/08/12 08:44:45 dholland Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: score.c,v 1.14 2008/01/14 03:50:02 dholland Exp $");
+__RCSID("$NetBSD: score.c,v 1.15 2009/08/12 08:44:45 dholland Exp $");
#endif
#endif /* not lint */
@@ -57,6 +57,12 @@ __RCSID("$NetBSD: score.c,v 1.14 2008/01/14 03:50:02 dholland Exp $");
#include "rogue.h"
#include "pathnames.h"
+static void center(short, const char *);
+static int get_value(const object *);
+static void id_all(void);
+static void sell_pack(void);
+static void sf_error(void) __attribute__((__noreturn__));
+
void
killed_by(const object *monster, short other)
{
@@ -516,7 +522,7 @@ is_vowel(short ch)
(ch == 'u') );
}
-void
+static void
sell_pack(void)
{
object *obj;
@@ -548,7 +554,7 @@ sell_pack(void)
messagef(0, "%s", ""); /* gcc objects to just "" */
}
-int
+static int
get_value(const object *obj)
{
short wc;
@@ -596,7 +602,7 @@ get_value(const object *obj)
return(val);
}
-void
+static void
id_all(void)
{
short i;
@@ -650,7 +656,7 @@ xxx(boolean st)
return(r);
}
-void
+static void
center(short row, const char *buf)
{
short margin;
@@ -659,7 +665,7 @@ center(short row, const char *buf)
mvaddstr(row, margin, buf);
}
-void
+static void
sf_error(void)
{
md_lock(0);