CVS commit: src/games/backgammon/common_source
Module Name:src Committed By: mrg Date: Tue Apr 13 02:11:40 UTC 2021 Modified Files: src/games/backgammon/common_source: Makefile fancy.c Log Message: no longer need -Wno-error=implicit-fallthrough. don't provide common symbols that are in libterminfo now days. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/games/backgammon/common_source/Makefile cvs rdiff -u -r1.15 -r1.16 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/Makefile diff -u src/games/backgammon/common_source/Makefile:1.11 src/games/backgammon/common_source/Makefile:1.12 --- src/games/backgammon/common_source/Makefile:1.11 Sun Sep 29 23:44:59 2019 +++ src/games/backgammon/common_source/Makefile Tue Apr 13 02:11:39 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2019/09/29 23:44:59 mrg Exp $ +# $NetBSD: Makefile,v 1.12 2021/04/13 02:11:39 mrg Exp $ LIBISPRIVATE= yes @@ -6,11 +6,4 @@ LIB= common SRCS= allow.c board.c check.c fancy.c init.c odds.c \ one.c save.c subs.c table.c -.include - -# Has fallthru comment that is missed -.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" -COPTS.check.c+= -Wno-error=implicit-fallthrough -.endif - .include Index: src/games/backgammon/common_source/fancy.c diff -u src/games/backgammon/common_source/fancy.c:1.15 src/games/backgammon/common_source/fancy.c:1.16 --- src/games/backgammon/common_source/fancy.c:1.15 Wed Apr 22 23:36:26 2020 +++ src/games/backgammon/common_source/fancy.c Tue Apr 13 02:11:39 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: fancy.c,v 1.15 2020/04/22 23:36:26 joerg Exp $ */ +/* $NetBSD: fancy.c,v 1.16 2021/04/13 02:11:39 mrg 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.15 2020/04/22 23:36:26 joerg Exp $"); +__RCSID("$NetBSD: fancy.c,v 1.16 2021/04/13 02:11:39 mrg Exp $"); #endif #endif /* not lint */ @@ -52,8 +52,10 @@ static void newline(void); * * XXX: rewrite this crap using curses. */ +#if 0 charPC; /* padding character */ char *BC; /* backspace sequence */ +#endif char *CD; /* clear to end of screen sequence */ char *CE; /* clear to end of line sequence */ char *CL; /* clear screen sequence */ @@ -62,7 +64,9 @@ char *HO; /* home cursor sequence */ char *MC; /* column cursor movement map */ char *ML; /* row cursor movement map */ char *ND; /* forward cursor sequence */ +#if 0 char *UP; /* up cursor sequence */ +#endif static int lHO; /* length of HO */ static int lBC; /* length of BC */
CVS commit: src/games/backgammon/common_source
Module Name:src Committed By: dholland Date: Sun Dec 6 11:41:47 UTC 2020 Modified Files: src/games/backgammon/common_source: back.h Log Message: speed limit 80 To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/games/backgammon/common_source/back.h 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.21 src/games/backgammon/common_source/back.h:1.22 --- src/games/backgammon/common_source/back.h:1.21 Wed Apr 22 23:36:26 2020 +++ src/games/backgammon/common_source/back.h Sun Dec 6 11:41:47 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: back.h,v 1.21 2020/04/22 23:36:26 joerg Exp $ */ +/* $NetBSD: back.h,v 1.22 2020/12/06 11:41:47 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -46,7 +46,12 @@ #define rnum(r) (random()%r) #define D0 dice[0] #define D1 dice[1] -#define mswap(m) {(m)->D0 ^= (m)->D1; (m)->D1 ^= (m)->D0; (m)->D0 ^= (m)->D1; (m)->d0 = 1-(m)->d0;} +#define mswap(m) { \ + (m)->D0 ^= (m)->D1; \ + (m)->D1 ^= (m)->D0; \ + (m)->D0 ^= (m)->D1; \ + (m)->d0 = 1-(m)->d0; \ +} struct move { int dice[2]; /* value of dice */ @@ -121,7 +126,7 @@ extern char cin[100]; /* input line of c extern const char *const color[]; /* colors as strings */ extern const char *const *colorptr; /* color of current player */ -extern const char *const *Colorptr; /* color of current player, capitalized */ +extern const char *const *Colorptr; /* ditto, capitalized */ extern int colen; /* length of color of current player */ extern int buffnum;
CVS commit: src/games/backgammon/common_source
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[] = {, , , , , , , , , }; -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,
CVS commit: src/games/backgammon/common_source
Module Name:src Committed By: christos Date: Mon Feb 18 19:35:44 UTC 2019 Modified Files: src/games/backgammon/common_source: check.c Log Message: add fallthrough To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/games/backgammon/common_source/check.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/check.c diff -u src/games/backgammon/common_source/check.c:1.8 src/games/backgammon/common_source/check.c:1.9 --- src/games/backgammon/common_source/check.c:1.8 Sat Oct 13 15:19:39 2012 +++ src/games/backgammon/common_source/check.c Mon Feb 18 14:35:44 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: check.c,v 1.8 2012/10/13 19:19:39 dholland Exp $ */ +/* $NetBSD: check.c,v 1.9 2019/02/18 19:35:44 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)check.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: check.c,v 1.8 2012/10/13 19:19:39 dholland Exp $"); +__RCSID("$NetBSD: check.c,v 1.9 2019/02/18 19:35:44 christos Exp $"); #endif #endif /* not lint */ @@ -66,6 +66,7 @@ getmove(struct move *mm) bflag = pnum; return; } + /*FALLTHROUGH*/ case -4: case 0: if (tflag)