Module Name: src
Committed By: kre
Date: Sat Apr 15 13:40:23 UTC 2023
Modified Files:
src/games/worms: worms.c
Log Message:
80 column police.
If this code were just a few chars over the limit, it might get
let off with a warning, but 214 in an 80 zone is way beyond that.
Six months loss of coding licence, and a 214000 character fine.
NFCI.
(I verified the the code was unchanged by joining the resulting
lines back into one again, and then diff'ing that line against
the original - it is identical).
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/games/worms/worms.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/worms/worms.c
diff -u src/games/worms/worms.c:1.24 src/games/worms/worms.c:1.25
--- src/games/worms/worms.c:1.24 Sat Apr 15 13:00:30 2023
+++ src/games/worms/worms.c Sat Apr 15 13:40:23 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: worms.c,v 1.24 2023/04/15 13:00:30 kre Exp $ */
+/* $NetBSD: worms.c,v 1.25 2023/04/15 13:40:23 kre Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#if 0
static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: worms.c,v 1.24 2023/04/15 13:00:30 kre Exp $");
+__RCSID("$NetBSD: worms.c,v 1.25 2023/04/15 13:40:23 kre Exp $");
#endif
#endif /* not lint */
@@ -313,7 +313,18 @@ main(int argc, char *argv[])
mvaddch(y1, x1, trail);
}
}
- op = &(!x ? (!y ? upleft : (y == bottom ? lowleft : left)) : (x == last ? (!y ? upright : (y == bottom ? lowright : right)) : (!y ? upper : (y == bottom ? lower : normal))))[w->orientation];
+
+ op = &(!x
+ ? (!y
+ ? upleft
+ : (y == bottom ? lowleft : left))
+ : (x == last
+ ? (!y ? upright
+ : (y == bottom ? lowright : right))
+ : (!y ? upper
+ : (y == bottom ? lower : normal)))
+ )[w->orientation];
+
switch (op->nopts) {
case 0:
refresh();