Source-Changes-HG archive

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

[src/trunk]: src/games More include additions for exit, abs, strcmp, etc.



details:   https://anonhg.NetBSD.org/src/rev/ab29493bcc7b
branches:  trunk
changeset: 494170:ab29493bcc7b
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jul 03 03:57:39 2000 +0000

description:
More include additions for exit, abs, strcmp, etc.

diffstat:

 games/adventure/done.c             |  5 +++--
 games/adventure/main.c             |  5 +++--
 games/adventure/subr.c             |  5 +++--
 games/bcd/bcd.c                    |  5 +++--
 games/canfield/cfscores/cfscores.c |  6 ++++--
 games/gomoku/stoc.c                |  5 +++--
 games/hack/hack.h                  |  3 ++-
 games/hunt/huntd/get_names.c       |  5 +++--
 games/larn/diag.c                  |  5 +++--
 games/morse/morse.c                |  5 +++--
 games/ppt/ppt.c                    |  5 +++--
 games/rogue/init.c                 |  5 +++--
 games/sail/lo_main.c               |  5 +++--
 games/sail/pl_1.c                  |  5 +++--
 games/sail/pl_7.c                  |  5 +++--
 games/trek/computer.c              |  5 +++--
 games/trek/destruct.c              |  5 +++--
 games/trek/getpar.c                |  5 +++--
 games/trek/setup.c                 |  5 +++--
 games/trek/torped.c                |  5 +++--
 20 files changed, 60 insertions(+), 39 deletions(-)

diffs (truncated from 484 to 300 lines):

diff -r a935541b8cae -r ab29493bcc7b games/adventure/done.c
--- a/games/adventure/done.c    Mon Jul 03 03:56:56 2000 +0000
+++ b/games/adventure/done.c    Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: done.c,v 1.6 1998/09/13 15:21:36 hubertf Exp $ */
+/*     $NetBSD: done.c,v 1.7 2000/07/03 03:57:39 matt Exp $    */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -43,13 +43,14 @@
 #if 0
 static char sccsid[] = "@(#)done.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: done.c,v 1.6 1998/09/13 15:21:36 hubertf Exp $");
+__RCSID("$NetBSD: done.c,v 1.7 2000/07/03 03:57:39 matt Exp $");
 #endif
 #endif /* not lint */
 
 /*      Re-coding of advent in C: termination routines */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include "hdr.h"
 #include "extern.h"
 
diff -r a935541b8cae -r ab29493bcc7b games/adventure/main.c
--- a/games/adventure/main.c    Mon Jul 03 03:56:56 2000 +0000
+++ b/games/adventure/main.c    Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.15 2000/05/08 07:55:59 mycroft Exp $        */
+/*     $NetBSD: main.c,v 1.16 2000/07/03 03:57:39 matt Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -48,7 +48,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.1 (Berkeley) 6/2/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.15 2000/05/08 07:55:59 mycroft Exp $");
+__RCSID("$NetBSD: main.c,v 1.16 2000/07/03 03:57:39 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -58,6 +58,7 @@
 #include <err.h>
 #include <signal.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include "hdr.h"
 #include "extern.h"
diff -r a935541b8cae -r ab29493bcc7b games/adventure/subr.c
--- a/games/adventure/subr.c    Mon Jul 03 03:56:56 2000 +0000
+++ b/games/adventure/subr.c    Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr.c,v 1.8 1998/09/14 09:29:08 hubertf Exp $ */
+/*     $NetBSD: subr.c,v 1.9 2000/07/03 03:57:39 matt Exp $    */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -43,13 +43,14 @@
 #if 0
 static char sccsid[] = "@(#)subr.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: subr.c,v 1.8 1998/09/14 09:29:08 hubertf Exp $");
+__RCSID("$NetBSD: subr.c,v 1.9 2000/07/03 03:57:39 matt Exp $");
 #endif
 #endif                         /* not lint */
 
 /*      Re-coding of advent in C: subroutines from main                 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include "hdr.h"
 #include "extern.h"
 
diff -r a935541b8cae -r ab29493bcc7b games/bcd/bcd.c
--- a/games/bcd/bcd.c   Mon Jul 03 03:56:56 2000 +0000
+++ b/games/bcd/bcd.c   Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcd.c,v 1.10 2000/05/08 07:56:02 mycroft Exp $ */
+/*     $NetBSD: bcd.c,v 1.11 2000/07/03 03:57:40 matt Exp $    */
 
 /*
  * Copyright (c) 1989, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)bcd.c      8.2 (Berkeley) 3/20/94";
 #else
-__RCSID("$NetBSD: bcd.c,v 1.10 2000/05/08 07:56:02 mycroft Exp $");
+__RCSID("$NetBSD: bcd.c,v 1.11 2000/07/03 03:57:40 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -83,6 +83,7 @@
 #include <sys/types.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 #include <unistd.h>
diff -r a935541b8cae -r ab29493bcc7b games/canfield/cfscores/cfscores.c
--- a/games/canfield/cfscores/cfscores.c        Mon Jul 03 03:56:56 2000 +0000
+++ b/games/canfield/cfscores/cfscores.c        Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cfscores.c,v 1.9 2000/05/08 07:56:03 mycroft Exp $     */
+/*     $NetBSD: cfscores.c,v 1.10 2000/07/03 03:57:40 matt Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)cfscores.c 8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: cfscores.c,v 1.9 2000/05/08 07:56:03 mycroft Exp $");
+__RCSID("$NetBSD: cfscores.c,v 1.10 2000/07/03 03:57:40 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -52,6 +52,8 @@
 #include <fcntl.h>
 #include <pwd.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include "pathnames.h"
 
diff -r a935541b8cae -r ab29493bcc7b games/gomoku/stoc.c
--- a/games/gomoku/stoc.c       Mon Jul 03 03:56:56 2000 +0000
+++ b/games/gomoku/stoc.c       Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stoc.c,v 1.5 1999/09/08 21:17:50 jsm Exp $     */
+/*     $NetBSD: stoc.c,v 1.6 2000/07/03 03:57:41 matt Exp $    */
 
 /*
  * Copyright (c) 1994
@@ -41,12 +41,13 @@
 #if 0
 static char sccsid[] = "@(#)stoc.c     8.1 (Berkeley) 7/24/94";
 #else
-__RCSID("$NetBSD: stoc.c,v 1.5 1999/09/08 21:17:50 jsm Exp $");
+__RCSID("$NetBSD: stoc.c,v 1.6 2000/07/03 03:57:41 matt Exp $");
 #endif
 #endif /* not lint */
 
 #include <ctype.h>
 #include <stdlib.h>
+#include <string.h>
 #include "gomoku.h"
 
 const char     *letters        = "<ABCDEFGHJKLMNOPQRST>";
diff -r a935541b8cae -r ab29493bcc7b games/hack/hack.h
--- a/games/hack/hack.h Mon Jul 03 03:56:56 2000 +0000
+++ b/games/hack/hack.h Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.h,v 1.4 1997/10/19 16:58:02 christos Exp $        */
+/*     $NetBSD: hack.h,v 1.5 2000/07/03 03:57:41 matt Exp $    */
 
 /*
  * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -7,6 +7,7 @@
 #define _HACK_H_
 
 #include "config.h"
+#include <stdlib.h>
 #include <string.h>
 
 #ifndef BSD
diff -r a935541b8cae -r ab29493bcc7b games/hunt/huntd/get_names.c
--- a/games/hunt/huntd/get_names.c      Mon Jul 03 03:56:56 2000 +0000
+++ b/games/hunt/huntd/get_names.c      Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $        */
+/*     $NetBSD: get_names.c,v 1.4 2000/07/03 03:57:41 matt Exp $       */
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $");
+__RCSID("$NetBSD: get_names.c,v 1.4 2000/07/03 03:57:41 matt Exp $");
 #endif /* not lint */
 
 #include "bsd.h"
@@ -17,6 +17,7 @@
 # include      <sys/param.h>
 # include      <netdb.h>
 # include      <stdio.h>
+# include      <stdlib.h>
 # include      <string.h>
 # include      <unistd.h>
 # include      "hunt.h"
diff -r a935541b8cae -r ab29493bcc7b games/larn/diag.c
--- a/games/larn/diag.c Mon Jul 03 03:56:56 2000 +0000
+++ b/games/larn/diag.c Mon Jul 03 03:57:39 2000 +0000
@@ -1,15 +1,16 @@
-/*     $NetBSD: diag.c,v 1.8 1997/10/18 20:03:12 christos Exp $        */
+/*     $NetBSD: diag.c,v 1.9 2000/07/03 03:57:42 matt Exp $    */
 
 /* diag.c              Larn is copyrighted 1986 by Noah Morgan. */
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: diag.c,v 1.8 1997/10/18 20:03:12 christos Exp $");
+__RCSID("$NetBSD: diag.c,v 1.9 2000/07/03 03:57:42 matt Exp $");
 #endif                         /* not lint */
 
 #include <sys/types.h>
 #include <sys/times.h>
 #include <sys/stat.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include "header.h"
 #include "extern.h"
diff -r a935541b8cae -r ab29493bcc7b games/morse/morse.c
--- a/games/morse/morse.c       Mon Jul 03 03:56:56 2000 +0000
+++ b/games/morse/morse.c       Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: morse.c,v 1.9 2000/05/08 07:56:04 mycroft Exp $        */
+/*     $NetBSD: morse.c,v 1.10 2000/07/03 03:57:42 matt Exp $  */
 
 /*
  * Copyright (c) 1988, 1993
@@ -43,12 +43,13 @@
 #if 0
 static char sccsid[] = "@(#)morse.c    8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: morse.c,v 1.9 2000/05/08 07:56:04 mycroft Exp $");
+__RCSID("$NetBSD: morse.c,v 1.10 2000/07/03 03:57:42 matt Exp $");
 #endif
 #endif /* not lint */
 
 #include <ctype.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
diff -r a935541b8cae -r ab29493bcc7b games/ppt/ppt.c
--- a/games/ppt/ppt.c   Mon Jul 03 03:56:56 2000 +0000
+++ b/games/ppt/ppt.c   Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ppt.c,v 1.8 2000/05/08 07:56:04 mycroft Exp $  */
+/*     $NetBSD: ppt.c,v 1.9 2000/07/03 03:57:43 matt Exp $     */
 
 /*
  * Copyright (c) 1988, 1993
@@ -43,11 +43,12 @@
 #if 0
 static char sccsid[] = "@(#)ppt.c      8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: ppt.c,v 1.8 2000/05/08 07:56:04 mycroft Exp $");
+__RCSID("$NetBSD: ppt.c,v 1.9 2000/07/03 03:57:43 matt Exp $");
 #endif
 #endif /* not lint */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
        int     main __P((int, char *[]));
diff -r a935541b8cae -r ab29493bcc7b games/rogue/init.c
--- a/games/rogue/init.c        Mon Jul 03 03:56:56 2000 +0000
+++ b/games/rogue/init.c        Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.10 1999/09/12 09:02:23 jsm Exp $    */
+/*     $NetBSD: init.c,v 1.11 2000/07/03 03:57:43 matt Exp $   */
 
 /*
  * Copyright (c) 1988, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)init.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: init.c,v 1.10 1999/09/12 09:02:23 jsm Exp $");
+__RCSID("$NetBSD: init.c,v 1.11 2000/07/03 03:57:43 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -57,6 +57,7 @@
  *
  */
 
+#include <stdlib.h>
 #include <fcntl.h>
 
 #include "rogue.h"
diff -r a935541b8cae -r ab29493bcc7b games/sail/lo_main.c
--- a/games/sail/lo_main.c      Mon Jul 03 03:56:56 2000 +0000
+++ b/games/sail/lo_main.c      Mon Jul 03 03:57:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lo_main.c,v 1.6 1999/09/08 21:17:59 jsm Exp $  */
+/*     $NetBSD: lo_main.c,v 1.7 2000/07/03 03:57:43 matt Exp $ */
 
 /*
  * Copyright (c) 1983, 1993



Home | Main Index | Thread Index | Old Index