diff options
Diffstat (limited to 'backgammon/common_source/table.c')
-rw-r--r-- | backgammon/common_source/table.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/backgammon/common_source/table.c b/backgammon/common_source/table.c index 1b817dca..869d802e 100644 --- a/backgammon/common_source/table.c +++ b/backgammon/common_source/table.c @@ -1,4 +1,4 @@ -/* $NetBSD: table.c,v 1.9 2006/03/18 23:23:33 christos Exp $ */ +/* $NetBSD: table.c,v 1.10 2009/08/12 05:17:57 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,13 +34,13 @@ #if 0 static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: table.c,v 1.9 2006/03/18 23:23:33 christos Exp $"); +__RCSID("$NetBSD: table.c,v 1.10 2009/08/12 05:17:57 dholland Exp $"); #endif #endif /* not lint */ #include "back.h" -const char *const help2[] = { +static const char *const help2[] = { " Enter moves as <s>-<f> or <s>/<r> where <s> is the starting", "position, <f> is the finishing position, and <r> is the roll.", "Remember, each die roll must be moved separately.", @@ -77,6 +77,9 @@ static const struct state atmata[] = { {'\n', 0, -1}, {'.', 0, 0} }; +static int dotable(int, int); +static int rsetbrd(void); + int checkmove(int ist) { @@ -194,7 +197,7 @@ dochar: goto dochar; } -int +static int dotable(int c, int i) { int a; @@ -288,7 +291,7 @@ dotable(int c, int i) return (-5); } -int +static int rsetbrd(void) { int i, j, n; |