diff options
author | dholland <dholland@NetBSD.org> | 2009-08-12 07:28:40 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-12 07:28:40 +0000 |
commit | 8b1c71ee649fb41155da92995044e451c39ea700 (patch) | |
tree | 24e74c8d453828689bfeac45e6162912f3c42d76 /hack/hack.mkmaze.c | |
parent | 31f496067cd42ce5ff71163efa5921ab6522e4aa (diff) | |
download | bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.gz bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.zst bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.zip |
sprinkle static
Diffstat (limited to 'hack/hack.mkmaze.c')
-rw-r--r-- | hack/hack.mkmaze.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/hack/hack.mkmaze.c b/hack/hack.mkmaze.c index b71d5741..01fb9af3 100644 --- a/hack/hack.mkmaze.c +++ b/hack/hack.mkmaze.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.mkmaze.c,v 1.7 2009/06/07 18:30:39 dholland Exp $ */ +/* $NetBSD: hack.mkmaze.c,v 1.8 2009/08/12 07:28:41 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,15 +63,20 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.mkmaze.c,v 1.7 2009/06/07 18:30:39 dholland Exp $"); +__RCSID("$NetBSD: hack.mkmaze.c,v 1.8 2009/08/12 07:28:41 dholland Exp $"); #endif /* not lint */ #include "hack.h" #include "extern.h" #include "def.mkroom.h" /* not really used */ -const struct permonst hell_hound = + +static const struct permonst hell_hound = {"hell hound", 'd', 12, 14, 2, 3, 6, 0}; +static void walkfrom(int, int); +static void move(int *, int *, int); +static int okay(int, int, int); + void makemaz(void) { @@ -151,7 +156,7 @@ makemaz(void) xdnstair = ydnstair = 0; } -void +static void walkfrom(int x, int y) { int q, a, dir; @@ -172,7 +177,7 @@ walkfrom(int x, int y) } } -void +static void move(int *x, int *y, int dir) { switch (dir) { @@ -191,7 +196,7 @@ move(int *x, int *y, int dir) } } -int +static int okay(int x, int y, int dir) { move(&x, &y, dir); |