summaryrefslogtreecommitdiffstats
path: root/adventure/done.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-08-11 14:06:10 +0000
committerchristos <christos@NetBSD.org>1997-08-11 14:06:10 +0000
commit278fa94d7dbb78924090308546ee84599c8d5f1d (patch)
tree476fd614bc23ad643e88f4e02ecf6963da49ec89 /adventure/done.c
parent58c57d3e52a500443c40b548d5652e2f0a708d43 (diff)
downloadbsdgames-darwin-278fa94d7dbb78924090308546ee84599c8d5f1d.tar.gz
bsdgames-darwin-278fa94d7dbb78924090308546ee84599c8d5f1d.tar.zst
bsdgames-darwin-278fa94d7dbb78924090308546ee84599c8d5f1d.zip
PR/3964: Eric Fischer: Remove dependencies to traditional cpp...
While I was there add WARNS?= too.
Diffstat (limited to 'adventure/done.c')
-rw-r--r--adventure/done.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/adventure/done.c b/adventure/done.c
index 464d606f..2340d2ee 100644
--- a/adventure/done.c
+++ b/adventure/done.c
@@ -1,4 +1,4 @@
-/* $NetBSD: done.c,v 1.2 1995/03/21 12:05:01 cgd Exp $ */
+/* $NetBSD: done.c,v 1.3 1997/08/11 14:06:12 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -38,18 +38,22 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)done.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: done.c,v 1.2 1995/03/21 12:05:01 cgd Exp $";
+__RCSID("$NetBSD: done.c,v 1.3 1997/08/11 14:06:12 christos Exp $");
#endif
#endif /* not lint */
/* Re-coding of advent in C: termination routines */
+#include <stdio.h>
#include "hdr.h"
+#include "extern.h"
+int
score() /* sort of like 20000 */
{ register int scor,i;
mxscor=scor=0;
@@ -86,6 +90,7 @@ score() /* sort of like 20000 */
return(scor);
}
+void
done(entry) /* entry=1 means goto 13000 */ /* game is over */
int entry; /* entry=2 means goto 20000 */ /* 3=19000 */
{ register int i,sc;
@@ -114,6 +119,7 @@ int entry; /* entry=2 means goto 20000 */ /* 3=19000 */
}
+int
die(entry) /* label 90 */
int entry;
{ register int i;