diff options
author | dholland <dholland@NetBSD.org> | 2009-08-12 04:28:27 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-12 04:28:27 +0000 |
commit | 63e571cca69e7558ecb2d0e2e654eff896c0ac62 (patch) | |
tree | 0141582e34f580554ecc15ffc8b4517ada70fc50 /adventure/subr.c | |
parent | 2dc7494ef4aeb144d0da0b9bdbcfeba12073e5e3 (diff) | |
download | bsdgames-darwin-63e571cca69e7558ecb2d0e2e654eff896c0ac62.tar.gz bsdgames-darwin-63e571cca69e7558ecb2d0e2e654eff896c0ac62.tar.zst bsdgames-darwin-63e571cca69e7558ecb2d0e2e654eff896c0ac62.zip |
sprinkle static
Diffstat (limited to 'adventure/subr.c')
-rw-r--r-- | adventure/subr.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/adventure/subr.c b/adventure/subr.c index 4ce56561..bd4dea78 100644 --- a/adventure/subr.c +++ b/adventure/subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr.c,v 1.11 2005/07/01 00:03:36 jmc Exp $ */ +/* $NetBSD: subr.c,v 1.12 2009/08/12 04:28:27 dholland Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: subr.c,v 1.11 2005/07/01 00:03:36 jmc Exp $"); +__RCSID("$NetBSD: subr.c,v 1.12 2009/08/12 04:28:27 dholland Exp $"); #endif #endif /* not lint */ @@ -50,6 +50,14 @@ __RCSID("$NetBSD: subr.c,v 1.11 2005/07/01 00:03:36 jmc Exp $"); #include "hdr.h" #include "extern.h" +static void badmove(void); +static int bitset(int, int); +static int dropper(void); +static int liq2(int); +static int mback(void); +static int specials(void); +static int trbridge(void); + /* Statement functions */ int toting(int objj) @@ -78,7 +86,7 @@ at(int objj) return (FALSE); } -int +static int liq2(int pbotl) { return ((1 - pbotl) * water + (pbotl / 2) * (water + oil)); @@ -107,7 +115,7 @@ liqloc(int locc) return (liq2(j * l + 1)); } -int +static int bitset(int l, int n) { if (cond[l] & setbit[n]) @@ -373,7 +381,7 @@ l12: /* alternative to probability move */ } /* 20 */ -int +static int mback(void) { struct travlist *tk2, *j; @@ -411,7 +419,7 @@ mback(void) } /* 30000 */ -int +static int specials(void) { switch (newloc -= 300) { @@ -433,7 +441,7 @@ specials(void) } /* 30300 */ -int +static int trbridge(void) { if (prop[troll] == 1) { @@ -465,7 +473,7 @@ trbridge(void) } /* 20 */ -void +static void badmove(void) { spk = 12; @@ -616,7 +624,7 @@ l9014: if ((obj == bird || obj == cage) && prop[bird] != 0) } /* 9021 */ -int +static int dropper(void) { k = liq(); |