Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games games: remove trailing whitespace in *.c and *.h
details: https://anonhg.NetBSD.org/src/rev/31bb039dcb04
branches: trunk
changeset: 378977:31bb039dcb04
user: rillig <rillig%NetBSD.org@localhost>
date: Sun May 02 12:50:43 2021 +0000
description:
games: remove trailing whitespace in *.c and *.h
diffstat:
games/adventure/init.c | 6 +-
games/adventure/io.c | 22 +-
games/adventure/main.c | 10 +-
games/adventure/setup.c | 6 +-
games/adventure/subr.c | 28 +-
games/adventure/vocab.c | 6 +-
games/adventure/wizard.c | 6 +-
games/atc/extern.h | 4 +-
games/atc/graphics.c | 8 +-
games/atc/input.c | 36 +-
games/atc/list.c | 6 +-
games/atc/log.c | 20 +-
games/atc/main.c | 10 +-
games/atc/update.c | 18 +-
games/backgammon/backgammon/main.c | 6 +-
games/backgammon/common_source/fancy.c | 36 +-
games/backgammon/teachgammon/tutor.c | 6 +-
games/banner/banner.c | 1862 ++++++++++++++++----------------
games/battlestar/command1.c | 10 +-
games/battlestar/command2.c | 22 +-
games/battlestar/command3.c | 58 +-
games/battlestar/command4.c | 56 +-
games/battlestar/command5.c | 28 +-
games/battlestar/command6.c | 8 +-
games/battlestar/command7.c | 26 +-
games/battlestar/cypher.c | 40 +-
games/battlestar/fly.c | 8 +-
games/battlestar/getcom.c | 10 +-
games/battlestar/parse.c | 10 +-
games/battlestar/room.c | 6 +-
games/boggle/boggle/extern.h | 4 +-
games/boggle/boggle/mach.c | 14 +-
games/boggle/boggle/prtable.c | 12 +-
games/boggle/boggle/word.c | 14 +-
games/boggle/mkdict/mkdict.c | 6 +-
games/boggle/mkindex/mkindex.c | 6 +-
games/canfield/canfield/canfield.c | 52 +-
games/cribbage/score.c | 6 +-
games/dab/random.h | 4 +-
games/dm/dm.c | 8 +-
games/fortune/strfile/strfile.c | 6 +-
games/gomoku/bdisp.c | 6 +-
games/gomoku/main.c | 6 +-
games/gomoku/stoc.c | 6 +-
games/hack/config.h | 4 +-
games/hack/extern.h | 4 +-
games/hack/hack.c | 6 +-
games/hack/hack.terminfo.c | 10 +-
games/hack/hack.zap.c | 6 +-
games/hals_end/hals_end.c | 4 +-
games/hunt/hunt/hunt_private.h | 44 +-
games/hunt/huntd/answer.c | 48 +-
games/hunt/huntd/draw.c | 46 +-
games/hunt/huntd/driver.c | 46 +-
games/hunt/huntd/execute.c | 46 +-
games/hunt/huntd/expl.c | 46 +-
games/hunt/huntd/extern.c | 46 +-
games/hunt/huntd/hunt.h | 44 +-
games/hunt/huntd/makemaze.c | 46 +-
games/hunt/huntd/shots.c | 46 +-
games/hunt/huntd/terminal.c | 46 +-
games/hunt/include/hunt_common.h | 44 +-
games/hunt/include/pathnames.h | 44 +-
games/larn/action.c | 10 +-
games/larn/global.c | 6 +-
games/larn/io.c | 36 +-
games/larn/main.c | 6 +-
games/larn/monster.c | 6 +-
games/larn/moreobj.c | 8 +-
games/larn/scores.c | 12 +-
games/larn/store.c | 6 +-
games/mille/extern.c | 6 +-
games/mille/mille.h | 4 +-
games/mille/misc.c | 6 +-
games/morse/morse.c | 10 +-
games/number/number.c | 6 +-
games/phantasia/fight.c | 6 +-
games/phantasia/misc.c | 14 +-
games/phantasia/setup.c | 10 +-
games/pom/pom.c | 6 +-
games/primes/pattern.c | 8 +-
games/random/random.c | 8 +-
games/rogue/message.c | 10 +-
games/rogue/save.c | 6 +-
games/rogue/use.c | 6 +-
games/sail/array.h | 2 +-
games/testpat/testpat.c | 6 +-
games/tetris/scores.c | 4 +-
games/tetris/screen.c | 12 +-
games/warp/EXTERN.h | 4 +-
games/warp/INTERN.h | 4 +-
games/warp/bang.c | 8 +-
games/warp/bang.h | 2 +-
games/warp/init.c | 12 +-
games/warp/init.h | 2 +-
games/warp/intrp.c | 16 +-
games/warp/intrp.h | 4 +-
games/warp/move.c | 6 +-
games/warp/move.h | 2 +-
games/warp/object.c | 2 +-
games/warp/object.h | 6 +-
games/warp/play.c | 4 +-
games/warp/play.h | 2 +-
games/warp/score.c | 12 +-
games/warp/score.h | 2 +-
games/warp/sig.c | 6 +-
games/warp/sig.h | 2 +-
games/warp/sm.c | 8 +-
games/warp/term.c | 14 +-
games/warp/term.h | 8 +-
games/warp/them.c | 12 +-
games/warp/them.h | 2 +-
games/warp/us.c | 14 +-
games/warp/us.h | 4 +-
games/warp/util.c | 12 +-
games/warp/util.h | 2 +-
games/warp/version.c | 2 +-
games/warp/version.h | 2 +-
games/warp/warp.c | 38 +-
games/warp/warp.h | 10 +-
games/warp/weapon.c | 10 +-
games/warp/weapon.h | 2 +-
games/wump/wump.c | 8 +-
123 files changed, 1809 insertions(+), 1809 deletions(-)
diffs (truncated from 7182 to 300 lines):
diff -r be2d1c3cd1b5 -r 31bb039dcb04 games/adventure/init.c
--- a/games/adventure/init.c Sun May 02 12:25:55 2021 +0000
+++ b/games/adventure/init.c Sun May 02 12:50:43 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.21 2014/03/22 20:07:05 dholland Exp $ */
+/* $NetBSD: init.c,v 1.22 2021/05/02 12:50:43 rillig Exp $ */
/*-
* Copyright (c) 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 6/2/93";
#else
-__RCSID("$NetBSD: init.c,v 1.21 2014/03/22 20:07:05 dholland Exp $");
+__RCSID("$NetBSD: init.c,v 1.22 2021/05/02 12:50:43 rillig Exp $");
#endif
#endif /* not lint */
@@ -59,7 +59,7 @@ static void linkdata(void);
int blklin = TRUE;
-int setbit[16] = {1, 2, 4, 010, 020, 040, 0100, 0200, 0400, 01000, 02000,
+int setbit[16] = {1, 2, 4, 010, 020, 040, 0100, 0200, 0400, 01000, 02000,
04000, 010000, 020000, 040000, 0100000};
volatile sig_atomic_t delhit;
diff -r be2d1c3cd1b5 -r 31bb039dcb04 games/adventure/io.c
--- a/games/adventure/io.c Sun May 02 12:25:55 2021 +0000
+++ b/games/adventure/io.c Sun May 02 12:50:43 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.22 2009/08/25 06:56:52 dholland Exp $ */
+/* $NetBSD: io.c,v 1.23 2021/05/02 12:50:43 rillig Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: io.c,v 1.22 2009/08/25 06:56:52 dholland Exp $");
+__RCSID("$NetBSD: io.c,v 1.23 2021/05/02 12:50:43 rillig Exp $");
#endif
#endif /* not lint */
@@ -178,7 +178,7 @@ static const char *tape = iotape; /* p
/* next virtual char, bump adr */
static int
next(void)
-{
+{
int ch;
ch = (*inptr ^ random()) & 0xFF; /* Decrypt input data */
@@ -196,7 +196,7 @@ static char breakch; /* tell which char
/* "read" data from virtual file */
void
rdata(void)
-{
+{
int sect;
char ch;
@@ -273,7 +273,7 @@ static char nbf[12];
/* read initial location num */
static int
rnum(void)
-{
+{
char *s;
tape = iotape; /* restart encryption tape */
for (s = nbf, *s = 0;; s++)
@@ -316,7 +316,7 @@ rdesc(int sect)
ptext[oldloc].txtlen = maystart - seekstart;
break;
case 6:/* random messages */
- if (oldloc >= RTXSIZE)
+ if (oldloc >= RTXSIZE)
errx(1,"Too many random msgs");
rtext[oldloc].seekadr = seekhere;
rtext[oldloc].txtlen = maystart - seekstart;
@@ -354,7 +354,7 @@ rdesc(int sect)
/* read travel table */
static void
rtrav(void)
-{
+{
int locc;
struct travlist *t = NULL;
char *s;
@@ -362,7 +362,7 @@ rtrav(void)
int len, m, n, entries = 0;
for (oldloc = -1;;) { /* get another line */
- /* end of entry */
+ /* end of entry */
if ((locc = rnum()) != oldloc && oldloc >= 0 && t) {
t->next = 0; /* terminate the old entry */
/* printf("%d:%d entries\n",oldloc,entries); */
@@ -460,7 +460,7 @@ rvoc(void)
/* initial object locations */
static void
rlocs(void)
-{
+{
for (;;) {
if ((obj = rnum()) < 0)
break;
@@ -475,7 +475,7 @@ rlocs(void)
/* default verb messages */
static void
rdefault(void)
-{
+{
for (;;) {
if ((verb = rnum()) < 0)
break;
@@ -486,7 +486,7 @@ rdefault(void)
/* liquid assets &c: cond bits */
static void
rliq(void)
-{
+{
int bitnum;
for (;;) { /* read new bit list */
if ((bitnum = rnum()) < 0)
diff -r be2d1c3cd1b5 -r 31bb039dcb04 games/adventure/main.c
--- a/games/adventure/main.c Sun May 02 12:25:55 2021 +0000
+++ b/games/adventure/main.c Sun May 02 12:50:43 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.21 2009/08/25 06:56:52 dholland Exp $ */
+/* $NetBSD: main.c,v 1.22 2021/05/02 12:50:43 rillig Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/2/93";
#else
-__RCSID("$NetBSD: main.c,v 1.21 2009/08/25 06:56:52 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.22 2021/05/02 12:50:43 rillig Exp $");
#endif
#endif /* not lint */
@@ -407,7 +407,7 @@ l4080:
if (place[eggs] == plac[eggs]
|| (toting(eggs) && loc == plac[eggs]))
goto l2011;
- if (place[eggs] == 0 && place[troll] == 0 &&
+ if (place[eggs] == 0 && place[troll] == 0 &&
prop[troll] == 0)
prop[troll] = 1;
k = 2;
@@ -593,7 +593,7 @@ l4090:
if (obj == food)
goto l8142;
if (obj == bird || obj == snake || obj == clam
- || obj == oyster || obj == dwarf || obj == dragon
+ || obj == oyster || obj == dwarf || obj == dragon
|| obj == troll || obj == bear)
spk = 71;
goto l2011;
@@ -634,7 +634,7 @@ l4090:
|| k == liqloc(loc))
spk = 94;
for (i = 1; i <= 5; i++)
- if (dloc[i] == loc && dflag >= 2
+ if (dloc[i] == loc && dflag >= 2
&& obj == dwarf)
spk = 94;
if (closed)
diff -r be2d1c3cd1b5 -r 31bb039dcb04 games/adventure/setup.c
--- a/games/adventure/setup.c Sun May 02 12:25:55 2021 +0000
+++ b/games/adventure/setup.c Sun May 02 12:50:43 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setup.c,v 1.11 2005/07/01 00:03:36 jmc Exp $ */
+/* $NetBSD: setup.c,v 1.12 2021/05/02 12:50:43 rillig Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@ static char copyright[] = "@(#) Copyrigh
#if 0
static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: setup.c,v 1.11 2005/07/01 00:03:36 jmc Exp $";
+static char rcsid[] = "$NetBSD: setup.c,v 1.12 2021/05/02 12:50:43 rillig Exp $";
#endif
#endif /* not lint */
@@ -98,7 +98,7 @@ main(int argc, char *argv[])
while ((c = getc(infile)) != EOF) {
if (linestart && c == ' ') { /* Convert first spaces to tab */
- printf("0x%02x,",
+ printf("0x%02x,",
(unsigned int)('\t' ^ random()) & 0xFF);
while ((c = getc(infile)) == ' ' && c != EOF);
/* Drop the non-whitespace character through */
diff -r be2d1c3cd1b5 -r 31bb039dcb04 games/adventure/subr.c
--- a/games/adventure/subr.c Sun May 02 12:25:55 2021 +0000
+++ b/games/adventure/subr.c Sun May 02 12:50:43 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr.c,v 1.13 2009/08/25 06:56:52 dholland Exp $ */
+/* $NetBSD: subr.c,v 1.14 2021/05/02 12:50:43 rillig Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: subr.c,v 1.13 2009/08/25 06:56:52 dholland Exp $");
+__RCSID("$NetBSD: subr.c,v 1.14 2021/05/02 12:50:43 rillig Exp $");
#endif
#endif /* not lint */
@@ -210,7 +210,7 @@ fdwarf(void)
j = 1 + ran(j);
odloc[i] = dloc[i];
dloc[i] = tk[j];
- dseen[i] = (dseen[i] && loc >= 15) ||
+ dseen[i] = (dseen[i] && loc >= 15) ||
(dloc[i] == loc || odloc[i] == loc);
if (!dseen[i])
continue; /* i.e. goto 6030 */
@@ -298,7 +298,7 @@ l82: if (stick <= 1) { /* 82 */
/* label 8 */
int
march(void)
-{
+{
int ll1, ll2;
if ((tkk = travel[newloc = loc]) == 0)
@@ -383,7 +383,7 @@ l12: /* alternative to probability mo
/* 20 */
static int
mback(void)
-{
+{
struct travlist *tk2, *j;
int ll;
if (forced(k = oldloc))
@@ -421,7 +421,7 @@ mback(void)
/* 30000 */
static int
specials(void)
-{
+{
switch (newloc -= 300) {
case 1: /* 30100 */
newloc = 99 + 100 - loc;
@@ -504,7 +504,7 @@ bug(int n)
/* 2600 &c */
void
checkhints(void)
-{
+{
int hint;
for (hint = 4; hint <= hintmax; hint++) {
if (hinted[hint])
@@ -571,7 +571,7 @@ trsay(void)
/* 9010 */
int
trtake(void)
-{
+{
if (toting(obj))
return (2011); /* 9010 */
spk = 25;
@@ -626,7 +626,7 @@ l9014: if ((obj == bird || obj == cage)
/* 9021 */
static int
dropper(void)
-{
+{
k = liq();
if (k == obj)
obj = bottle;
@@ -774,7 +774,7 @@ tropen(void)
/* 9120 */
int
trkill(void)
-{
+{
int i;
for (i = 1; i <= 5; i++)
if (dloc[i] == loc && dflag >= 2)
@@ -856,7 +856,7 @@ trkill(void)
/* 9170: throw */
int
trtoss(void)
-{
+{
int i;
if (toting(rod2) && obj == rod && !toting(rod))
obj = rod2;
@@ -918,7 +918,7 @@ trtoss(void)
/* 9210 */
int
Home |
Main Index |
Thread Index |
Old Index