Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/backgammon/common_source buffnum is shared between sub...



details:   https://anonhg.NetBSD.org/src/rev/b53fd35e8b39
branches:  trunk
changeset: 1009403:b53fd35e8b39
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Apr 22 23:36:26 2020 +0000

description:
buffnum is shared between subs.c and fancy.c

diffstat:

 games/backgammon/common_source/back.h  |  4 +++-
 games/backgammon/common_source/fancy.c |  6 ++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 282a08ef024c -r b53fd35e8b39 games/backgammon/common_source/back.h
--- a/games/backgammon/common_source/back.h     Wed Apr 22 23:32:25 2020 +0000
+++ b/games/backgammon/common_source/back.h     Wed Apr 22 23:36:26 2020 +0000
@@ -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, 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 -r 282a08ef024c -r b53fd35e8b39 games/backgammon/common_source/fancy.c
--- a/games/backgammon/common_source/fancy.c    Wed Apr 22 23:32:25 2020 +0000
+++ b/games/backgammon/common_source/fancy.c    Wed Apr 22 23:36:26 2020 +0000
@@ -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 @@
  /* 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, 



Home | Main Index | Thread Index | Old Index