Source-Changes-HG archive

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

[src/trunk]: src/games/hunt/huntd #if 0 some unused code.



details:   https://anonhg.NetBSD.org/src/rev/23982cf73cda
branches:  trunk
changeset: 765286:23982cf73cda
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 22:58:44 2011 +0000

description:
#if 0 some unused code.

diffstat:

 games/hunt/huntd/makemaze.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r d9f25137dc3d -r 23982cf73cda games/hunt/huntd/makemaze.c
--- a/games/hunt/huntd/makemaze.c       Mon May 23 22:56:11 2011 +0000
+++ b/games/hunt/huntd/makemaze.c       Mon May 23 22:58:44 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makemaze.c,v 1.7 2009/08/12 07:42:11 dholland Exp $    */
+/*     $NetBSD: makemaze.c,v 1.8 2011/05/23 22:58:44 joerg Exp $       */
 /*
  * Copyright (c) 1983-2003, Regents of the University of California.
  * All rights reserved.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: makemaze.c,v 1.7 2009/08/12 07:42:11 dholland Exp $");
+__RCSID("$NetBSD: makemaze.c,v 1.8 2011/05/23 22:58:44 joerg Exp $");
 #endif /* not lint */
 
 #include "hunt.h"
@@ -40,8 +40,10 @@
 #define ISCLEAR(y,x)   (Maze[y][x] == SPACE)
 #define ODD(n)         ((n) & 01)
 
+#if 0
 static int candig(int, int);
 static void dig(int, int);
+#endif
 static void dig_maze(int, int);
 static void remap(void);
 
@@ -67,6 +69,7 @@
 #define NPERM  24
 #define NDIR   4
 
+#if 0
 static int dirs[NPERM][NDIR] = {
        {0,1,2,3},      {3,0,1,2},      {0,2,3,1},      {0,3,2,1},
        {1,0,2,3},      {2,3,0,1},      {0,2,1,3},      {2,3,1,0},
@@ -80,6 +83,7 @@
        {0, 1}, {1, 0}, {0, -1}, {-1, 0}
 };
 
+
 static void
 dig(int y, int x)
 {
@@ -133,6 +137,7 @@
 
        return TRUE;                    /* OK */
 }
+#endif
 
 void
 dig_maze(int x, int y)



Home | Main Index | Thread Index | Old Index