Source-Changes-HG archive

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

[src/trunk]: src/games/gomoku gomoku: clean up version control sections



details:   https://anonhg.NetBSD.org/src/rev/fe0528a85cd7
branches:  trunk
changeset: 366242:fe0528a85cd7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu May 19 22:19:18 2022 +0000

description:
gomoku: clean up version control sections

Lint can handle these definitions, and the '#if 0' is redundant.

No functional change.

diffstat:

 games/gomoku/bdinit.c   |  11 +++--------
 games/gomoku/bdisp.c    |  11 +++--------
 games/gomoku/main.c     |  14 +++-----------
 games/gomoku/makemove.c |  11 +++--------
 games/gomoku/pickmove.c |  11 +++--------
 games/gomoku/stoc.c     |  11 +++--------
 6 files changed, 18 insertions(+), 51 deletions(-)

diffs (155 lines):

diff -r f4a87fc910c3 -r fe0528a85cd7 games/gomoku/bdinit.c
--- a/games/gomoku/bdinit.c     Thu May 19 20:51:59 2022 +0000
+++ b/games/gomoku/bdinit.c     Thu May 19 22:19:18 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bdinit.c,v 1.17 2022/05/19 18:58:59 rillig Exp $       */
+/*     $NetBSD: bdinit.c,v 1.18 2022/05/19 22:19:18 rillig Exp $       */
 
 /*
  * Copyright (c) 1994
@@ -33,13 +33,8 @@
  */
 
 #include <sys/cdefs.h>
-#ifndef lint
-#if 0
-static char sccsid[] = "from: @(#)bdinit.c     8.2 (Berkeley) 5/3/95";
-#else
-__RCSID("$NetBSD: bdinit.c,v 1.17 2022/05/19 18:58:59 rillig Exp $");
-#endif
-#endif /* not lint */
+/*     from: @(#)bdinit.c      8.2 (Berkeley) 5/3/95   */
+__RCSID("$NetBSD: bdinit.c,v 1.18 2022/05/19 22:19:18 rillig Exp $");
 
 #include <string.h>
 #include "gomoku.h"
diff -r f4a87fc910c3 -r fe0528a85cd7 games/gomoku/bdisp.c
--- a/games/gomoku/bdisp.c      Thu May 19 20:51:59 2022 +0000
+++ b/games/gomoku/bdisp.c      Thu May 19 22:19:18 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bdisp.c,v 1.33 2022/05/19 19:52:56 rillig Exp $        */
+/*     $NetBSD: bdisp.c,v 1.34 2022/05/19 22:19:18 rillig Exp $        */
 
 /*
  * Copyright (c) 1994
@@ -33,13 +33,8 @@
  */
 
 #include <sys/cdefs.h>
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)bdisp.c    8.2 (Berkeley) 5/3/95";
-#else
-__RCSID("$NetBSD: bdisp.c,v 1.33 2022/05/19 19:52:56 rillig Exp $");
-#endif
-#endif /* not lint */
+/*     @(#)bdisp.c     8.2 (Berkeley) 5/3/95   */
+__RCSID("$NetBSD: bdisp.c,v 1.34 2022/05/19 22:19:18 rillig Exp $");
 
 #include <curses.h>
 #include <string.h>
diff -r f4a87fc910c3 -r fe0528a85cd7 games/gomoku/main.c
--- a/games/gomoku/main.c       Thu May 19 20:51:59 2022 +0000
+++ b/games/gomoku/main.c       Thu May 19 22:19:18 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.40 2022/05/19 20:09:46 rillig Exp $ */
+/*     $NetBSD: main.c,v 1.41 2022/05/19 22:19:18 rillig Exp $ */
 
 /*
  * Copyright (c) 1994
@@ -33,18 +33,10 @@
  */
 
 #include <sys/cdefs.h>
-#ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1994\
  The Regents of the University of California.  All rights reserved.");
-#endif /* not lint */
-
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)main.c     8.4 (Berkeley) 5/4/95";
-#else
-__RCSID("$NetBSD: main.c,v 1.40 2022/05/19 20:09:46 rillig Exp $");
-#endif
-#endif /* not lint */
+/*     @(#)main.c      8.4 (Berkeley) 5/4/95   */
+__RCSID("$NetBSD: main.c,v 1.41 2022/05/19 22:19:18 rillig Exp $");
 
 #include <curses.h>
 #include <err.h>
diff -r f4a87fc910c3 -r fe0528a85cd7 games/gomoku/makemove.c
--- a/games/gomoku/makemove.c   Thu May 19 20:51:59 2022 +0000
+++ b/games/gomoku/makemove.c   Thu May 19 22:19:18 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makemove.c,v 1.17 2022/05/18 22:30:19 rillig Exp $     */
+/*     $NetBSD: makemove.c,v 1.18 2022/05/19 22:19:18 rillig Exp $     */
 
 /*
  * Copyright (c) 1994
@@ -33,13 +33,8 @@
  */
 
 #include <sys/cdefs.h>
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)makemove.c 8.2 (Berkeley) 5/3/95";
-#else
-__RCSID("$NetBSD: makemove.c,v 1.17 2022/05/18 22:30:19 rillig Exp $");
-#endif
-#endif /* not lint */
+/*     @(#)makemove.c  8.2 (Berkeley) 5/3/95   */
+__RCSID("$NetBSD: makemove.c,v 1.18 2022/05/19 22:19:18 rillig Exp $");
 
 #include "gomoku.h"
 
diff -r f4a87fc910c3 -r fe0528a85cd7 games/gomoku/pickmove.c
--- a/games/gomoku/pickmove.c   Thu May 19 20:51:59 2022 +0000
+++ b/games/gomoku/pickmove.c   Thu May 19 22:19:18 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pickmove.c,v 1.35 2022/05/19 18:58:59 rillig Exp $     */
+/*     $NetBSD: pickmove.c,v 1.36 2022/05/19 22:19:18 rillig Exp $     */
 
 /*
  * Copyright (c) 1994
@@ -33,13 +33,8 @@
  */
 
 #include <sys/cdefs.h>
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)pickmove.c 8.2 (Berkeley) 5/3/95";
-#else
-__RCSID("$NetBSD: pickmove.c,v 1.35 2022/05/19 18:58:59 rillig Exp $");
-#endif
-#endif /* not lint */
+/*     @(#)pickmove.c  8.2 (Berkeley) 5/3/95   */
+__RCSID("$NetBSD: pickmove.c,v 1.36 2022/05/19 22:19:18 rillig Exp $");
 
 #include <stdlib.h>
 #include <string.h>
diff -r f4a87fc910c3 -r fe0528a85cd7 games/gomoku/stoc.c
--- a/games/gomoku/stoc.c       Thu May 19 20:51:59 2022 +0000
+++ b/games/gomoku/stoc.c       Thu May 19 22:19:18 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stoc.c,v 1.17 2022/05/18 22:30:19 rillig Exp $ */
+/*     $NetBSD: stoc.c,v 1.18 2022/05/19 22:19:18 rillig Exp $ */
 
 /*
  * Copyright (c) 1994
@@ -33,13 +33,8 @@
  */
 
 #include <sys/cdefs.h>
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)stoc.c     8.1 (Berkeley) 7/24/94";
-#else
-__RCSID("$NetBSD: stoc.c,v 1.17 2022/05/18 22:30:19 rillig Exp $");
-#endif
-#endif /* not lint */
+/*     @(#)stoc.c      8.1 (Berkeley) 7/24/94  */
+__RCSID("$NetBSD: stoc.c,v 1.18 2022/05/19 22:19:18 rillig Exp $");
 
 #include <ctype.h>
 #include <stdlib.h>



Home | Main Index | Thread Index | Old Index