diff options
author | 1997-10-14 00:53:26 +0000 | |
---|---|---|
committer | 1997-10-14 00:53:26 +0000 | |
commit | 2b3622fc1b9227cf58511fe6767ecb877242caf9 (patch) | |
tree | bb6f0d1f5fc43951d078f74284e3038a2f318cdb /backgammon/common_source/init.c | |
parent | 8406d70de0c36b1209aea68889d87c92506a3b3e (diff) | |
download | bsdgames-darwin-2b3622fc1b9227cf58511fe6767ecb877242caf9.tar.gz bsdgames-darwin-2b3622fc1b9227cf58511fe6767ecb877242caf9.tar.zst bsdgames-darwin-2b3622fc1b9227cf58511fe6767ecb877242caf9.zip |
define global vars with `extern' in "back.h", and only define once in
init.c... backgammon works again...
Diffstat (limited to 'backgammon/common_source/init.c')
-rw-r--r-- | backgammon/common_source/init.c | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/backgammon/common_source/init.c b/backgammon/common_source/init.c index 35c72918..4addd6cb 100644 --- a/backgammon/common_source/init.c +++ b/backgammon/common_source/init.c @@ -1,4 +1,4 @@ -/* $NetBSD: init.c,v 1.5 1997/10/10 08:59:46 lukem Exp $ */ +/* $NetBSD: init.c,v 1.6 1997/10/14 00:53:31 lukem Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: init.c,v 1.5 1997/10/10 08:59:46 lukem Exp $"); +__RCSID("$NetBSD: init.c,v 1.6 1997/10/14 00:53:31 lukem Exp $"); #endif #endif /* not lint */ @@ -67,3 +67,37 @@ int iroll = 0; /* special flag for inputting rolls */ int rfl = 0; char *color[] = {"White", "Red", "white", "red"}; + + +char **Colorptr; +char **colorptr; +int *inopp; +int *inptr; +int *offopp; +int *offptr; +char args[100]; +int bar; +int begscr; +int board[26]; +char cin[100]; +int colen; +int cturn; +int curc; +int curr; +int d0; +int dice[2]; +int dlast; +int g[5]; +int gvalue; +int h[4]; +int home; +int in[2]; +int mvl; +int mvlim; +int ncin; +int off[2]; +int p[5]; +int rscore; +int table[6][6]; +int wscore; +struct termios old, noech, raw; |