summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>2001-01-16 02:50:27 +0000
committercgd <cgd@NetBSD.org>2001-01-16 02:50:27 +0000
commitbf73580a4a388748a773b8bbd0b6b06bcbf390d8 (patch)
tree2a1e3ba62afc13af4022eef531ee4a35f25a4267 /hack
parent20527b9cee44c67025053db6f9949df9a3d8f630 (diff)
downloadbsdgames-darwin-bf73580a4a388748a773b8bbd0b6b06bcbf390d8.tar.gz
bsdgames-darwin-bf73580a4a388748a773b8bbd0b6b06bcbf390d8.tar.zst
bsdgames-darwin-bf73580a4a388748a773b8bbd0b6b06bcbf390d8.zip
comment or delete text after CPP directives.
Diffstat (limited to 'hack')
-rw-r--r--hack/config.h12
-rw-r--r--hack/def.monst.h4
-rw-r--r--hack/def.rm.h4
-rw-r--r--hack/hack.cmd.c8
-rw-r--r--hack/hack.h6
5 files changed, 17 insertions, 17 deletions
diff --git a/hack/config.h b/hack/config.h
index f3377d97..dc44c6ea 100644
--- a/hack/config.h
+++ b/hack/config.h
@@ -1,4 +1,4 @@
-/* $NetBSD: config.h,v 1.5 1997/10/19 16:56:49 christos Exp $ */
+/* $NetBSD: config.h,v 1.6 2001/01/16 02:50:28 cgd Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -67,8 +67,8 @@
#ifdef BSD
#define SUSPEND /* let ^Z suspend the game */
-#endif BSD
-#endif UNIX
+#endif /* BSD */
+#endif /* UNIX */
#ifdef CHDIR
/*
@@ -77,9 +77,9 @@
*/
#ifdef QUEST
#define HACKDIR _PATH_QUEST
-#else QUEST
+#else /* QUEST */
#define HACKDIR _PATH_HACK
-#endif QUEST
+#endif /* QUEST */
/*
* Some system administrators are stupid enough to make Hack suid root
@@ -95,7 +95,7 @@
* simultaneously, define HACKDIR, SECURE and MAX_NR_OF_PLAYERS.
* #define MAX_NR_OF_PLAYERS 100
*/
-#endif CHDIR
+#endif /* CHDIR */
/* size of terminal screen is (at least) (ROWNO+2) by COLNO */
#define COLNO 80
diff --git a/hack/def.monst.h b/hack/def.monst.h
index cc49287c..4d3ca91f 100644
--- a/hack/def.monst.h
+++ b/hack/def.monst.h
@@ -1,4 +1,4 @@
-/* $NetBSD: def.monst.h,v 1.4 1997/10/19 16:57:07 christos Exp $ */
+/* $NetBSD: def.monst.h,v 1.5 2001/01/16 02:50:28 cgd Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -38,7 +38,7 @@ struct monst {
Bitfield(mnamelth,6); /* length of name (following mxlth) */
#ifndef NOWORM
Bitfield(wormno,5); /* at most 31 worms on any level */
-#endif NOWORM
+#endif /* NOWORM */
unsigned mtrapseen; /* bitmap of traps we've been trapped in */
long mlstmv; /* prevent two moves at once */
struct obj *minvent;
diff --git a/hack/def.rm.h b/hack/def.rm.h
index 632a5956..f5f86ebe 100644
--- a/hack/def.rm.h
+++ b/hack/def.rm.h
@@ -1,4 +1,4 @@
-/* $NetBSD: def.rm.h,v 1.4 1997/10/19 16:57:21 christos Exp $ */
+/* $NetBSD: def.rm.h,v 1.5 2001/01/16 02:50:28 cgd Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -36,7 +36,7 @@
#define CORR_SYM ':'
#else
#define CORR_SYM '#'
-#endif QUEST
+#endif /* QUEST */
#define POOL_SYM '}'
#define ERRCHAR '{'
diff --git a/hack/hack.cmd.c b/hack/hack.cmd.c
index 9cc90fde..f171db90 100644
--- a/hack/hack.cmd.c
+++ b/hack/hack.cmd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.cmd.c,v 1.4 1997/10/19 16:57:39 christos Exp $ */
+/* $NetBSD: hack.cmd.c,v 1.5 2001/01/16 02:50:28 cgd Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -6,7 +6,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.cmd.c,v 1.4 1997/10/19 16:57:39 christos Exp $");
+__RCSID("$NetBSD: hack.cmd.c,v 1.5 2001/01/16 02:50:28 cgd Exp $");
#endif /* not lint */
#include "hack.h"
@@ -19,7 +19,7 @@ struct func_tab cmdlist[] = {
{ '\024', dotele },
#ifdef SUSPEND
{ '\032', dosuspend },
-#endif { /* SUSPEND */
+#endif /* SUSPEND */
{ 'a', doapply },
/* 'A' : UNUSED */
/* 'b', 'B' : go sw */
@@ -62,7 +62,7 @@ struct func_tab cmdlist[] = {
{ '?', dohelp },
#ifdef SHELL
{ '!', dosh },
-#endif { /* SHELL */
+#endif /* SHELL */
{ '.', donull },
{ ' ', donull },
{ ',', dopickup },
diff --git a/hack/hack.h b/hack/hack.h
index 017da4b5..e411ae1b 100644
--- a/hack/hack.h
+++ b/hack/hack.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.h,v 1.5 2000/07/03 03:57:41 matt Exp $ */
+/* $NetBSD: hack.h,v 1.6 2001/01/16 02:50:28 cgd Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -61,7 +61,7 @@ struct you {
#ifdef QUEST
schar di; /* direction of FF */
xchar ux0, uy0; /* initial position FF */
-#endif QUEST
+#endif /* QUEST */
xchar udisx, udisy; /* last display pos */
char usym; /* usually '@' */
schar uluck;
@@ -73,7 +73,7 @@ struct you {
unsigned ulevel:4; /* 1 - 14 */
#ifdef QUEST
unsigned uhorizon:7;
-#endif QUEST
+#endif /* QUEST */
unsigned utrap:3; /* trap timeout */
unsigned utraptype:1; /* defined if utrap nonzero */
#define TT_BEARTRAP 0