From 39a1066cab493ece48c6e692513d1311b7e27c44 Mon Sep 17 00:00:00 2001 From: dholland Date: Wed, 12 Aug 2009 08:44:45 +0000 Subject: sprinkle static --- rogue/move.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'rogue/move.c') diff --git a/rogue/move.c b/rogue/move.c index 73a2ce0e..7d1c2ca1 100644 --- a/rogue/move.c +++ b/rogue/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.11 2008/01/14 03:50:02 dholland Exp $ */ +/* $NetBSD: move.c,v 1.12 2009/08/12 08:44:45 dholland Exp $ */ /* * Copyright (c) 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: move.c,v 1.11 2008/01/14 03:50:02 dholland Exp $"); +__RCSID("$NetBSD: move.c,v 1.12 2009/08/12 08:44:45 dholland Exp $"); #endif #endif /* not lint */ @@ -59,6 +59,13 @@ short m_moves = 0; boolean jump = 0; const char *you_can_move_again = "you can move again"; +static boolean can_turn(short, short); +static boolean check_hunger(boolean); +static char gr_dir(void); +static void heal(void); +static boolean next_to_something(int, int); +static void turn_passage(short, boolean); + int one_move_rogue(short dirch, short pickup) { @@ -231,7 +238,7 @@ is_passable(int row, int col) return(dungeon[row][col] & (FLOOR | TUNNEL | DOOR | STAIRS | TRAP)); } -boolean +static boolean next_to_something(int drow, int dcol) { short i, j, i_end, j_end, row, col; @@ -364,7 +371,7 @@ is_direction(short c, short *d) return(1); } -boolean +static boolean check_hunger(boolean msg_only) { short i, n; @@ -504,7 +511,7 @@ rest(int count) } } -char +static char gr_dir(void) { short d; @@ -540,7 +547,7 @@ gr_dir(void) return(d); } -void +static void heal(void) { static short heal_exp = -1, n, c = 0; @@ -605,7 +612,7 @@ heal(void) } } -boolean +static boolean can_turn(short nrow, short ncol) { if ((dungeon[nrow][ncol] & TUNNEL) && is_passable(nrow, ncol)) { @@ -614,7 +621,7 @@ can_turn(short nrow, short ncol) return(0); } -void +static void turn_passage(short dir, boolean fast) { short crow = rogue.row, ccol = rogue.col, turns = 0; -- cgit v1.2.3-56-ge451