summaryrefslogtreecommitdiffstats
path: root/backgammon
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2020-04-22 23:36:26 +0000
committerjoerg <joerg@NetBSD.org>2020-04-22 23:36:26 +0000
commit7890a8c64a29e8f0ee5b9b2ef41a118f9ac499bd (patch)
treea98754551e5c6ad17dae417b1991d22de01c9d79 /backgammon
parent3174b1382062d1225202a869e8be6c43c83a49b0 (diff)
downloadbsdgames-darwin-7890a8c64a29e8f0ee5b9b2ef41a118f9ac499bd.tar.gz
bsdgames-darwin-7890a8c64a29e8f0ee5b9b2ef41a118f9ac499bd.tar.zst
bsdgames-darwin-7890a8c64a29e8f0ee5b9b2ef41a118f9ac499bd.zip
buffnum is shared between subs.c and fancy.c
Diffstat (limited to 'backgammon')
-rw-r--r--backgammon/common_source/back.h4
-rw-r--r--backgammon/common_source/fancy.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/backgammon/common_source/back.h b/backgammon/common_source/back.h
index 7c333365..a763714d 100644
--- a/backgammon/common_source/back.h
+++ b/backgammon/common_source/back.h
@@ -1,4 +1,4 @@
-/* $NetBSD: back.h,v 1.20 2012/10/13 19:19:39 dholland Exp $ */
+/* $NetBSD: back.h,v 1.21 2020/04/22 23:36:26 joerg Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -124,6 +124,8 @@ extern const char *const *colorptr; /* color of current player */
extern const char *const *Colorptr; /* color of current player, capitalized */
extern int colen; /* length of color of current player */
+extern int buffnum;
+
extern struct termios old, noech, raw;/* original tty status */
extern int curr; /* row position of cursor */
diff --git a/backgammon/common_source/fancy.c b/backgammon/common_source/fancy.c
index 9116e0ad..52e18990 100644
--- a/backgammon/common_source/fancy.c
+++ b/backgammon/common_source/fancy.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fancy.c,v 1.14 2009/08/12 05:17:57 dholland Exp $ */
+/* $NetBSD: fancy.c,v 1.15 2020/04/22 23:36:26 joerg Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)fancy.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fancy.c,v 1.14 2009/08/12 05:17:57 dholland Exp $");
+__RCSID("$NetBSD: fancy.c,v 1.15 2020/04/22 23:36:26 joerg Exp $");
#endif
#endif /* not lint */
@@ -78,8 +78,6 @@ static char tcap[] = "bccdceclcmhomcmlndup";
/* corresponding strings */
static char **tstr[] = {&BC, &CD, &CE, &CL, &CM, &HO, &MC, &ML, &ND, &UP};
-int buffnum; /* pointer to output buffer */
-
static char tbuf[1024]; /* buffer for decoded termcap entries */
static int oldb[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,