Module Name: src Committed By: joerg Date: Wed Apr 22 23:36:26 UTC 2020
Modified Files: src/games/backgammon/common_source: back.h fancy.c Log Message: buffnum is shared between subs.c and fancy.c To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/games/backgammon/common_source/back.h cvs rdiff -u -r1.14 -r1.15 src/games/backgammon/common_source/fancy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/backgammon/common_source/back.h diff -u src/games/backgammon/common_source/back.h:1.20 src/games/backgammon/common_source/back.h:1.21 --- src/games/backgammon/common_source/back.h:1.20 Sat Oct 13 19:19:39 2012 +++ src/games/backgammon/common_source/back.h Wed Apr 22 23:36:26 2020 @@ -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; /* c 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 */ Index: src/games/backgammon/common_source/fancy.c diff -u src/games/backgammon/common_source/fancy.c:1.14 src/games/backgammon/common_source/fancy.c:1.15 --- src/games/backgammon/common_source/fancy.c:1.14 Wed Aug 12 05:17:57 2009 +++ src/games/backgammon/common_source/fancy.c Wed Apr 22 23:36:26 2020 @@ -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[] = "bccdceclcmhomcmlnd /* 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,