summaryrefslogtreecommitdiffstats
path: root/robots
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1995-04-22 10:08:46 +0000
committercgd <cgd@NetBSD.org>1995-04-22 10:08:46 +0000
commit55c4a511be47d16c259623bf0f76ddd0df0a42ac (patch)
treee405ad6985c11b21362f88ec5f2238328e3bdb57 /robots
parent5c07a4c2750120f7b7aeab4c4acfb0ff578c9827 (diff)
downloadbsdgames-darwin-55c4a511be47d16c259623bf0f76ddd0df0a42ac.tar.gz
bsdgames-darwin-55c4a511be47d16c259623bf0f76ddd0df0a42ac.tar.zst
bsdgames-darwin-55c4a511be47d16c259623bf0f76ddd0df0a42ac.zip
clean up import
Diffstat (limited to 'robots')
-rw-r--r--robots/Makefile4
-rw-r--r--robots/extern.c13
-rw-r--r--robots/flush_in.c13
-rw-r--r--robots/init_field.c13
-rw-r--r--robots/main.c28
-rw-r--r--robots/make_level.c13
-rw-r--r--robots/move.c18
-rw-r--r--robots/move_robs.c13
-rw-r--r--robots/pathnames.h9
-rw-r--r--robots/play_level.c13
-rw-r--r--robots/query.c13
-rw-r--r--robots/rnd_pos.c13
-rw-r--r--robots/robots.611
-rw-r--r--robots/robots.h20
-rw-r--r--robots/score.c13
15 files changed, 134 insertions, 73 deletions
diff --git a/robots/Makefile b/robots/Makefile
index 42a4a06b..25764c93 100644
--- a/robots/Makefile
+++ b/robots/Makefile
@@ -1,5 +1,5 @@
-# from: @(#)Makefile 5.10 (Berkeley) 5/11/90
-# $Id: Makefile,v 1.4 1994/12/22 09:35:56 cgd Exp $
+# $NetBSD: Makefile,v 1.5 1995/04/22 10:08:46 cgd Exp $
+# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= robots
CFLAGS+=-DMAX_PER_UID=5
diff --git a/robots/extern.c b/robots/extern.c
index 3a12470e..88cbac1a 100644
--- a/robots/extern.c
+++ b/robots/extern.c
@@ -1,6 +1,8 @@
+/* $NetBSD: extern.c,v 1.3 1995/04/22 10:08:49 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,8 +34,11 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)extern.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: extern.c,v 1.2 1993/08/01 18:52:49 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)extern.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: extern.c,v 1.3 1995/04/22 10:08:49 cgd Exp $";
+#endif
#endif /* not lint */
# include "robots.h"
diff --git a/robots/flush_in.c b/robots/flush_in.c
index a9d91b69..efe088d2 100644
--- a/robots/flush_in.c
+++ b/robots/flush_in.c
@@ -1,6 +1,8 @@
+/* $NetBSD: flush_in.c,v 1.3 1995/04/22 10:08:51 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,8 +34,11 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)flush_in.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: flush_in.c,v 1.2 1993/08/01 18:52:48 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)flush_in.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: flush_in.c,v 1.3 1995/04/22 10:08:51 cgd Exp $";
+#endif
#endif /* not lint */
# include <curses.h>
diff --git a/robots/init_field.c b/robots/init_field.c
index 882d25af..33993d98 100644
--- a/robots/init_field.c
+++ b/robots/init_field.c
@@ -1,6 +1,8 @@
+/* $NetBSD: init_field.c,v 1.3 1995/04/22 10:08:52 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,8 +34,11 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)init_field.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: init_field.c,v 1.2 1993/08/01 18:52:47 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)init_field.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: init_field.c,v 1.3 1995/04/22 10:08:52 cgd Exp $";
+#endif
#endif /* not lint */
# include "robots.h"
diff --git a/robots/main.c b/robots/main.c
index 292186fc..47a113a2 100644
--- a/robots/main.c
+++ b/robots/main.c
@@ -1,6 +1,8 @@
+/* $NetBSD: main.c,v 1.5 1995/04/22 10:08:54 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,14 +34,17 @@
*/
#ifndef lint
-char copyright[] =
-"@(#) Copyright (c) 1980 Regents of the University of California.\n\
- All rights reserved.\n";
+static char copyright[] =
+"@(#) Copyright (c) 1980, 1993\n\
+ The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-/*static char sccsid[] = "from: @(#)main.c 5.5 (Berkeley) 2/28/91";*/
-static char rcsid[] = "$Id: main.c,v 1.4 1993/08/10 15:39:40 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: main.c,v 1.5 1995/04/22 10:08:54 cgd Exp $";
+#endif
#endif /* not lint */
# include "robots.h"
@@ -148,6 +153,13 @@ char **av;
quit();
}
+void
+__cputchar(ch)
+ int ch;
+{
+ (void)putchar(ch);
+}
+
/*
* quit:
* Leave the program elegantly.
@@ -155,9 +167,7 @@ char **av;
void
quit()
{
- mvcur(0, X_SIZE - 1, Y_SIZE - 1, 0);
endwin();
- printf("\n");
exit(0);
/* NOTREACHED */
}
diff --git a/robots/make_level.c b/robots/make_level.c
index 460e4c1e..998155db 100644
--- a/robots/make_level.c
+++ b/robots/make_level.c
@@ -1,6 +1,8 @@
+/* $NetBSD: make_level.c,v 1.3 1995/04/22 10:08:56 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,8 +34,11 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)make_level.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: make_level.c,v 1.2 1993/08/01 18:52:45 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)make_level.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: make_level.c,v 1.3 1995/04/22 10:08:56 cgd Exp $";
+#endif
#endif /* not lint */
# include "robots.h"
diff --git a/robots/move.c b/robots/move.c
index bab08c74..1396cd06 100644
--- a/robots/move.c
+++ b/robots/move.c
@@ -1,6 +1,8 @@
+/* $NetBSD: move.c,v 1.4 1995/04/22 10:08:58 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,12 +34,16 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)move.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: move.c,v 1.3 1993/08/01 18:52:44 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: move.c,v 1.4 1995/04/22 10:08:58 cgd Exp $";
+#endif
#endif /* not lint */
-# include "robots.h"
-# include <ctype.h>
+#include <sys/ttydefaults.h>
+#include <ctype.h>
+#include "robots.h"
# define ESC '\033'
diff --git a/robots/move_robs.c b/robots/move_robs.c
index 1103bb87..27bfb354 100644
--- a/robots/move_robs.c
+++ b/robots/move_robs.c
@@ -1,6 +1,8 @@
+/* $NetBSD: move_robs.c,v 1.3 1995/04/22 10:08:59 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,8 +34,11 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)move_robs.c 5.5 (Berkeley) 2/28/91";*/
-static char rcsid[] = "$Id: move_robs.c,v 1.2 1993/08/01 18:52:43 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)move_robs.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: move_robs.c,v 1.3 1995/04/22 10:08:59 cgd Exp $";
+#endif
#endif /* not lint */
# include "robots.h"
diff --git a/robots/pathnames.h b/robots/pathnames.h
index 3e8e247c..258225c6 100644
--- a/robots/pathnames.h
+++ b/robots/pathnames.h
@@ -1,6 +1,8 @@
+/* $NetBSD: pathnames.h,v 1.3 1995/04/22 10:09:01 cgd Exp $ */
+
/*-
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1990, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -30,8 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * from: @(#)pathnames.h 5.1 (Berkeley) 5/2/90
- * $Id: pathnames.h,v 1.2 1993/08/01 18:52:50 mycroft Exp $
+ * @(#)pathnames.h 8.1 (Berkeley) 5/31/93
*/
#define _PATH_SCORE "/var/games/robots_roll"
diff --git a/robots/play_level.c b/robots/play_level.c
index 485c9cc0..8f5e1d40 100644
--- a/robots/play_level.c
+++ b/robots/play_level.c
@@ -1,6 +1,8 @@
+/* $NetBSD: play_level.c,v 1.3 1995/04/22 10:09:03 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,8 +34,11 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)play_level.c 5.5 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: play_level.c,v 1.2 1993/08/01 18:52:42 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)play_level.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: play_level.c,v 1.3 1995/04/22 10:09:03 cgd Exp $";
+#endif
#endif /* not lint */
# include "robots.h"
diff --git a/robots/query.c b/robots/query.c
index 2a496c83..b33ed63c 100644
--- a/robots/query.c
+++ b/robots/query.c
@@ -1,6 +1,8 @@
+/* $NetBSD: query.c,v 1.3 1995/04/22 10:09:05 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,8 +34,11 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)query.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: query.c,v 1.2 1993/08/01 18:52:41 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)query.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: query.c,v 1.3 1995/04/22 10:09:05 cgd Exp $";
+#endif
#endif /* not lint */
# include "robots.h"
diff --git a/robots/rnd_pos.c b/robots/rnd_pos.c
index d40d0a83..a08171bb 100644
--- a/robots/rnd_pos.c
+++ b/robots/rnd_pos.c
@@ -1,6 +1,8 @@
+/* $NetBSD: rnd_pos.c,v 1.3 1995/04/22 10:09:07 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,8 +34,11 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)rnd_pos.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: rnd_pos.c,v 1.2 1993/08/01 18:52:40 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)rnd_pos.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: rnd_pos.c,v 1.3 1995/04/22 10:09:07 cgd Exp $";
+#endif
#endif /* not lint */
# include "robots.h"
diff --git a/robots/robots.6 b/robots/robots.6
index 291065cb..e3864d49 100644
--- a/robots/robots.6
+++ b/robots/robots.6
@@ -1,5 +1,7 @@
-.\" Copyright (c) 1991 The Regents of the University of California.
-.\" All rights reserved.
+.\" $NetBSD: robots.6,v 1.4 1995/04/22 10:09:09 cgd Exp $
+.\"
+.\" Copyright (c) 1991, 1993
+.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
@@ -29,10 +31,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)robots.6 6.2 (Berkeley) 4/8/91
-.\" $Id: robots.6,v 1.3 1993/08/05 02:29:28 jtc Exp $
+.\" @(#)robots.6 8.1 (Berkeley) 5/31/93
.\"
-.Dd April 8, 1991
+.Dd May 31, 1993
.Dt ROBOTS 6
.Os
.Sh NAME
diff --git a/robots/robots.h b/robots/robots.h
index 96e9313f..63bf7cd6 100644
--- a/robots/robots.h
+++ b/robots/robots.h
@@ -1,6 +1,8 @@
+/* $NetBSD: robots.h,v 1.4 1995/04/22 10:09:11 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -30,8 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * from: @(#)robots.h 5.6 (Berkeley) 2/28/91
- * $Id: robots.h,v 1.3 1993/08/01 18:52:51 mycroft Exp $
+ * @(#)robots.h 8.1 (Berkeley) 5/31/93
*/
# include <curses.h>
@@ -66,13 +67,6 @@
# define PLAYER '@'
/*
- * pseudo functions
- */
-
-# undef CTRL
-# define CTRL(X) ((X) - 'A' + 1)
-
-/*
* type definitions
*/
@@ -109,3 +103,7 @@ int cmp_sc();
void move_robots();
COORD *rnd_pos();
+
+
+
+
diff --git a/robots/score.c b/robots/score.c
index e4c413f6..d96c8dff 100644
--- a/robots/score.c
+++ b/robots/score.c
@@ -1,6 +1,8 @@
+/* $NetBSD: score.c,v 1.3 1995/04/22 10:09:12 cgd Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,8 +34,11 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)score.c 5.6 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: score.c,v 1.2 1993/08/01 18:52:38 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: score.c,v 1.3 1995/04/22 10:09:12 cgd Exp $";
+#endif
#endif /* not lint */
# include "robots.h"