Source-Changes-HG archive

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

[src/trunk]: src/games/dab dab: clean up introductory comments



details:   https://anonhg.NetBSD.org/src/rev/56581ea531f9
branches:  trunk
changeset: 1026736:56581ea531f9
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Dec 05 09:22:45 2021 +0000

description:
dab: clean up introductory comments

The filenames in these comments were redundant, half of them were wrong.

diffstat:

 games/dab/algor.cc      |  7 ++++---
 games/dab/algor.h       |  4 ++--
 games/dab/board.cc      |  7 ++++---
 games/dab/board.h       |  4 ++--
 games/dab/box.cc        |  7 ++++---
 games/dab/box.h         |  6 +++---
 games/dab/defs.h        |  4 ++--
 games/dab/gamescreen.cc |  7 ++++---
 games/dab/gamescreen.h  |  4 ++--
 games/dab/human.cc      |  7 ++++---
 games/dab/human.h       |  4 ++--
 games/dab/main.cc       |  7 ++++---
 games/dab/player.cc     |  6 +++---
 games/dab/player.h      |  5 +++--
 games/dab/random.cc     |  6 +++---
 games/dab/random.h      |  6 +++---
 games/dab/test.cc       |  6 +++---
 games/dab/ttyscrn.cc    |  6 +++---
 games/dab/ttyscrn.h     |  4 ++--
 19 files changed, 57 insertions(+), 50 deletions(-)

diffs (truncated from 398 to 300 lines):

diff -r a82903b13f3c -r 56581ea531f9 games/dab/algor.cc
--- a/games/dab/algor.cc        Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/algor.cc        Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: algor.cc,v 1.5 2012/02/29 23:39:53 joerg Exp $ */
+/*     $NetBSD: algor.cc,v 1.6 2021/12/05 09:22:45 rillig Exp $        */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,10 +30,11 @@
  */
 
 /*
- * algor.C: Computer algorithm
+ * Computer algorithm
  */
+
 #include "defs.h"
-RCSID("$NetBSD: algor.cc,v 1.5 2012/02/29 23:39:53 joerg Exp $")
+RCSID("$NetBSD: algor.cc,v 1.6 2021/12/05 09:22:45 rillig Exp $")
 
 #include "algor.h"
 #include "board.h"
diff -r a82903b13f3c -r 56581ea531f9 games/dab/algor.h
--- a/games/dab/algor.h Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/algor.h Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: algor.h,v 1.5 2012/06/15 10:51:25 joerg Exp $  */
+/*     $NetBSD: algor.h,v 1.6 2021/12/05 09:22:45 rillig Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 /*
- * algor.h: Computer's algorithm
+ * Computer's algorithm
  */
 
 #ifndef _H_ALGOR
diff -r a82903b13f3c -r 56581ea531f9 games/dab/board.cc
--- a/games/dab/board.cc        Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/board.cc        Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: board.cc,v 1.4 2008/04/28 20:22:53 martin Exp $        */
+/*     $NetBSD: board.cc,v 1.5 2021/12/05 09:22:45 rillig Exp $        */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,10 +30,11 @@
  */
 
 /*
- * board.C: Board manipulations
+ * Board manipulations
  */
+
 #include "defs.h"
-RCSID("$NetBSD: board.cc,v 1.4 2008/04/28 20:22:53 martin Exp $")
+RCSID("$NetBSD: board.cc,v 1.5 2021/12/05 09:22:45 rillig Exp $")
 
 #include <stdio.h>
 #include <string.h>
diff -r a82903b13f3c -r 56581ea531f9 games/dab/board.h
--- a/games/dab/board.h Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/board.h Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: board.h,v 1.4 2012/02/29 23:39:53 joerg Exp $  */
+/*     $NetBSD: board.h,v 1.5 2021/12/05 09:22:45 rillig Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 /*
- * board.h: Board functions
+ * Board functions
  */
 
 #ifndef _H_BOARD
diff -r a82903b13f3c -r 56581ea531f9 games/dab/box.cc
--- a/games/dab/box.cc  Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/box.cc  Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: box.cc,v 1.3 2008/04/28 20:22:53 martin Exp $  */
+/*     $NetBSD: box.cc,v 1.4 2021/12/05 09:22:45 rillig Exp $  */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,10 +30,11 @@
  */
 
 /*
- * box.C: Box computations
+ * Box computations
  */
+
 #include "defs.h"
-RCSID("$NetBSD: box.cc,v 1.3 2008/04/28 20:22:53 martin Exp $")
+RCSID("$NetBSD: box.cc,v 1.4 2021/12/05 09:22:45 rillig Exp $")
 
 #include "box.h"
 #include "board.h"
diff -r a82903b13f3c -r 56581ea531f9 games/dab/box.h
--- a/games/dab/box.h   Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/box.h   Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: box.h,v 1.2 2008/04/28 20:22:53 martin Exp $   */
+/*     $NetBSD: box.h,v 1.3 2021/12/05 09:22:45 rillig Exp $   */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,8 +30,8 @@
  */
 
 /*
- * box.C: Single box utilities; A box is an entity with four edges, four
- *       corners, and a center that maps directly to a board
+ * Single box utilities; A box is an entity with four edges, four corners, and
+ * a center that maps directly to a board
  */
 
 #ifndef _H_BOX
diff -r a82903b13f3c -r 56581ea531f9 games/dab/defs.h
--- a/games/dab/defs.h  Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/defs.h  Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: defs.h,v 1.3 2011/05/23 23:06:41 joerg Exp $   */
+/*     $NetBSD: defs.h,v 1.4 2021/12/05 09:22:45 rillig Exp $  */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 /*
- * defs.h: Macro defines
+ * Macro defines
  */
 
 #ifndef _H_DEFS
diff -r a82903b13f3c -r 56581ea531f9 games/dab/gamescreen.cc
--- a/games/dab/gamescreen.cc   Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/gamescreen.cc   Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gamescreen.cc,v 1.2 2008/04/28 20:22:53 martin Exp $   */
+/*     $NetBSD: gamescreen.cc,v 1.3 2021/12/05 09:22:45 rillig Exp $   */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,10 +30,11 @@
  */
 
 /*
- * gamescreen.C: Common screen functions
+ * Common screen functions
  */
+
 #include "defs.h"
-RCSID("$NetBSD: gamescreen.cc,v 1.2 2008/04/28 20:22:53 martin Exp $")
+RCSID("$NetBSD: gamescreen.cc,v 1.3 2021/12/05 09:22:45 rillig Exp $")
 
 #include "gamescreen.h"
 
diff -r a82903b13f3c -r 56581ea531f9 games/dab/gamescreen.h
--- a/games/dab/gamescreen.h    Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/gamescreen.h    Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gamescreen.h,v 1.3 2010/12/08 17:08:07 joerg Exp $     */
+/*     $NetBSD: gamescreen.h,v 1.4 2021/12/05 09:22:45 rillig Exp $    */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 /*
- * screen.h: Screen base class
+ * Screen base class
  */
 
 #ifndef _H_GAMESCREEN
diff -r a82903b13f3c -r 56581ea531f9 games/dab/human.cc
--- a/games/dab/human.cc        Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/human.cc        Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: human.cc,v 1.3 2008/04/28 20:22:54 martin Exp $        */
+/*     $NetBSD: human.cc,v 1.4 2021/12/05 09:22:45 rillig Exp $        */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,10 +30,11 @@
  */
 
 /*
- * human.C: Human interface for dots, using rogue-like keys.
+ * Human interface for dots, using rogue-like keys.
  */
+
 #include "defs.h"
-RCSID("$NetBSD: human.cc,v 1.3 2008/04/28 20:22:54 martin Exp $")
+RCSID("$NetBSD: human.cc,v 1.4 2021/12/05 09:22:45 rillig Exp $")
 
 #include "human.h"
 #include "board.h"
diff -r a82903b13f3c -r 56581ea531f9 games/dab/human.h
--- a/games/dab/human.h Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/human.h Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: human.h,v 1.3 2008/04/28 20:22:54 martin Exp $ */
+/*     $NetBSD: human.h,v 1.4 2021/12/05 09:22:45 rillig Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 /*
- * human.h: Human input interface
+ * Human input interface
  */
 
 #ifndef _H_HUMAN
diff -r a82903b13f3c -r 56581ea531f9 games/dab/main.cc
--- a/games/dab/main.cc Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/main.cc Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.cc,v 1.6 2012/10/06 19:39:51 christos Exp $       */
+/*     $NetBSD: main.cc,v 1.7 2021/12/05 09:22:45 rillig Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,10 +30,11 @@
  */
 
 /*
- * main.C: Main dots program
+ * Main dots program
  */
+
 #include "defs.h"
-RCSID("$NetBSD: main.cc,v 1.6 2012/10/06 19:39:51 christos Exp $")
+RCSID("$NetBSD: main.cc,v 1.7 2021/12/05 09:22:45 rillig Exp $")
 
 #include <stdio.h>
 #include <unistd.h>
diff -r a82903b13f3c -r 56581ea531f9 games/dab/player.cc
--- a/games/dab/player.cc       Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/player.cc       Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: player.cc,v 1.2 2008/04/28 20:22:54 martin Exp $        */
+/*     $NetBSD: player.cc,v 1.3 2021/12/05 09:22:45 rillig Exp $        */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,11 +30,11 @@
  */
 
 /*
- * player.C: Player base class
+ * Player base class
  */
 
 #include "defs.h"
-RCSID("$NetBSD: player.cc,v 1.2 2008/04/28 20:22:54 martin Exp $")
+RCSID("$NetBSD: player.cc,v 1.3 2021/12/05 09:22:45 rillig Exp $")
 
 #include "board.h"
 #include "player.h"
diff -r a82903b13f3c -r 56581ea531f9 games/dab/player.h
--- a/games/dab/player.h        Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/player.h        Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: player.h,v 1.3 2008/04/28 20:22:54 martin Exp $        */
+/*     $NetBSD: player.h,v 1.4 2021/12/05 09:22:45 rillig Exp $        */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,8 +30,9 @@
  */
 
 /*
- * player.h: Player base class
+ * Player base class
  */
+
 #ifndef _H_PLAYER
 #define _H_PLAYER
 
diff -r a82903b13f3c -r 56581ea531f9 games/dab/random.cc
--- a/games/dab/random.cc       Sun Dec 05 08:19:57 2021 +0000
+++ b/games/dab/random.cc       Sun Dec 05 09:22:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: random.cc,v 1.3 2008/04/28 20:22:54 martin Exp $       */
+/*     $NetBSD: random.cc,v 1.4 2021/12/05 09:22:45 rillig Exp $       */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.



Home | Main Index | Thread Index | Old Index