Source-Changes-HG archive

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

[src/trunk]: src/games/sail remove redundant decls.



details:   https://anonhg.NetBSD.org/src/rev/82ec12e8c605
branches:  trunk
changeset: 503365:82ec12e8c605
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 05 01:10:08 2001 +0000

description:
remove redundant decls.

diffstat:

 games/sail/assorted.c |   6 ++----
 games/sail/dr_1.c     |   9 ++-------
 games/sail/dr_2.c     |   8 ++------
 games/sail/dr_3.c     |   9 ++-------
 games/sail/dr_4.c     |   7 ++-----
 games/sail/dr_5.c     |   7 ++-----
 games/sail/dr_main.c  |   6 ++----
 games/sail/game.c     |   7 ++-----
 games/sail/lo_main.c  |   6 ++----
 games/sail/misc.c     |  10 ++--------
 games/sail/parties.c  |   8 ++------
 games/sail/pl_1.c     |   8 ++------
 games/sail/pl_2.c     |   6 ++----
 games/sail/pl_3.c     |   8 ++------
 games/sail/pl_4.c     |  10 ++--------
 games/sail/pl_5.c     |   6 ++----
 games/sail/pl_6.c     |   6 ++----
 games/sail/pl_7.c     |  25 ++-----------------------
 games/sail/pl_main.c  |   5 ++---
 games/sail/sync.c     |  15 ++-------------
 20 files changed, 40 insertions(+), 132 deletions(-)

diffs (truncated from 598 to 300 lines):

diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/assorted.c
--- a/games/sail/assorted.c     Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/assorted.c     Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: assorted.c,v 1.13 2001/01/04 06:16:51 jwise Exp $      */
+/*     $NetBSD: assorted.c,v 1.14 2001/02/05 01:10:08 christos Exp $   */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)assorted.c 8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: assorted.c,v 1.13 2001/01/04 06:16:51 jwise Exp $");
+__RCSID("$NetBSD: assorted.c,v 1.14 2001/02/05 01:10:08 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -46,8 +46,6 @@
 #include <err.h>
 #include "extern.h"
 
-void   table(struct ship *, struct ship *, int, int, int, int);
-void   Cleansnag(struct ship *, struct ship *, int, int);
 static void    strike (struct ship *, struct ship *);
 
 void
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/dr_1.c
--- a/games/sail/dr_1.c Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/dr_1.c Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dr_1.c,v 1.17 2001/01/04 06:16:51 jwise Exp $  */
+/*     $NetBSD: dr_1.c,v 1.18 2001/02/05 01:10:08 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)dr_1.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: dr_1.c,v 1.17 2001/01/04 06:16:51 jwise Exp $");
+__RCSID("$NetBSD: dr_1.c,v 1.18 2001/02/05 01:10:08 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -49,12 +49,7 @@
 #include "extern.h"
 #include "driver.h"
 
-void   unfoul(void);
-void   boardcomp(void);
 static int     fightitout(struct ship *, struct ship *, int);
-void   resolve(void);
-void   compcombat(void);
-int    next(void);
 
 void
 unfoul(void)
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/dr_2.c
--- a/games/sail/dr_2.c Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/dr_2.c Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dr_2.c,v 1.17 2001/01/04 06:16:51 jwise Exp $  */
+/*     $NetBSD: dr_2.c,v 1.18 2001/02/05 01:10:08 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)dr_2.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: dr_2.c,v 1.17 2001/01/04 06:16:51 jwise Exp $");
+__RCSID("$NetBSD: dr_2.c,v 1.18 2001/02/05 01:10:08 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -50,11 +50,7 @@
 
 #define couldwin(f,t) (f->specs->crew2 > t->specs->crew2 * 1.5)
 
-void   thinkofgrapples(void);
-void   checkup(void);
-void   prizecheck(void);
 static int     str_end(const char *);
-void   closeon(struct ship *, struct ship *, char *, int, int, int);
 static int     score(struct ship *, struct ship *, char *, int);
 static void    move_ship(struct ship *, const char *, unsigned char *, short *, short *, char *);
 static void    try(struct ship *, struct ship *, char *, char *, int, int, int, int, int, int *, int);
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/dr_3.c
--- a/games/sail/dr_3.c Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/dr_3.c Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dr_3.c,v 1.13 2001/01/04 06:16:51 jwise Exp $  */
+/*     $NetBSD: dr_3.c,v 1.14 2001/02/05 01:10:09 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)dr_3.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: dr_3.c,v 1.13 2001/01/04 06:16:51 jwise Exp $");
+__RCSID("$NetBSD: dr_3.c,v 1.14 2001/02/05 01:10:09 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -47,15 +47,10 @@
 #include "extern.h"
 #include "driver.h"
 
-void   moveall(void);
 static int     stillmoving(int);
 static int     is_isolated(struct ship *);
 static int     push(struct ship *, struct ship *);
 static void    step(struct ship *, int,  char *);
-void   sendbp(struct ship *, struct ship *, int, int);
-int    is_toughmelee(struct ship *, struct ship *, int, int);
-void   reload(void);
-void   checksails(void);
 
 /* move all comp ships */
 void
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/dr_4.c
--- a/games/sail/dr_4.c Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/dr_4.c Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dr_4.c,v 1.11 2001/01/04 03:21:17 jwise Exp $  */
+/*     $NetBSD: dr_4.c,v 1.12 2001/02/05 01:10:09 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,16 +38,13 @@
 #if 0
 static char sccsid[] = "@(#)dr_4.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: dr_4.c,v 1.11 2001/01/04 03:21:17 jwise Exp $");
+__RCSID("$NetBSD: dr_4.c,v 1.12 2001/02/05 01:10:09 christos Exp $");
 #endif
 #endif /* not lint */
 
 #include <stdlib.h>
 #include "extern.h"
 
-void   ungrap(struct ship *, struct ship *);
-void   grap(struct ship *, struct ship *);
-
 void
 ungrap(struct ship *from, struct ship *to)
 {
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/dr_5.c
--- a/games/sail/dr_5.c Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/dr_5.c Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dr_5.c,v 1.10 2001/01/04 06:16:51 jwise Exp $  */
+/*     $NetBSD: dr_5.c,v 1.11 2001/02/05 01:10:09 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,16 +38,13 @@
 #if 0
 static char sccsid[] = "@(#)dr_5.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: dr_5.c,v 1.10 2001/01/04 06:16:51 jwise Exp $");
+__RCSID("$NetBSD: dr_5.c,v 1.11 2001/02/05 01:10:09 christos Exp $");
 #endif
 #endif /* not lint */
 
 #include <sys/types.h>
 #include "extern.h"
 
-void   subtract(struct ship *, struct ship *, int, int *, int);
-int    mensent(struct ship *, struct ship *, int *, struct ship **, int *, int);
-
 void
 subtract(struct ship *from, struct ship *fromcap, int totalfrom, int *crewfrom, int pcfrom)
 {
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/dr_main.c
--- a/games/sail/dr_main.c      Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/dr_main.c      Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dr_main.c,v 1.10 2001/01/04 03:51:24 jwise Exp $       */
+/*     $NetBSD: dr_main.c,v 1.11 2001/02/05 01:10:09 christos Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)dr_main.c  8.2 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: dr_main.c,v 1.10 2001/01/04 03:51:24 jwise Exp $");
+__RCSID("$NetBSD: dr_main.c,v 1.11 2001/02/05 01:10:09 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -49,8 +49,6 @@
 #include "extern.h"
 #include "driver.h"
 
-int    dr_main(void);
-
 int
 dr_main(void)
 {
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/game.c
--- a/games/sail/game.c Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/game.c Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: game.c,v 1.9 2001/01/04 03:51:24 jwise Exp $   */
+/*     $NetBSD: game.c,v 1.10 2001/02/05 01:10:09 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,16 +38,13 @@
 #if 0
 static char sccsid[] = "@(#)game.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: game.c,v 1.9 2001/01/04 03:51:24 jwise Exp $");
+__RCSID("$NetBSD: game.c,v 1.10 2001/02/05 01:10:09 christos Exp $");
 #endif
 #endif /* not lint */
 
 #include <sys/types.h>
 #include "extern.h"
 
-int    maxturns(struct ship *, char *);
-int    maxmove(struct ship *, int, int);
-
 int
 maxturns(struct ship *ship, char *af)
 {
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/lo_main.c
--- a/games/sail/lo_main.c      Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/lo_main.c      Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lo_main.c,v 1.10 2001/01/16 02:44:43 cgd Exp $ */
+/*     $NetBSD: lo_main.c,v 1.11 2001/02/05 01:10:10 christos Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)lo_main.c  8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: lo_main.c,v 1.10 2001/01/16 02:44:43 cgd Exp $");
+__RCSID("$NetBSD: lo_main.c,v 1.11 2001/02/05 01:10:10 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -54,8 +54,6 @@
 #include "extern.h"
 #include "pathnames.h"
 
-int    lo_main(void);
-
 const char *const title[] = {
        "Admiral", "Commodore", "Captain", "Captain",
        "Captain", "Captain", "Captain", "Commander",
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/misc.c
--- a/games/sail/misc.c Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/misc.c Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: misc.c,v 1.11 2001/01/04 06:33:18 itojun Exp $ */
+/*     $NetBSD: misc.c,v 1.12 2001/02/05 01:10:10 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)misc.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: misc.c,v 1.11 2001/01/04 06:33:18 itojun Exp $");
+__RCSID("$NetBSD: misc.c,v 1.12 2001/02/05 01:10:10 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -51,13 +51,7 @@
 
 #define distance(x,y) (abs(x) >= abs(y) ? abs(x) + abs(y)/2 : abs(y) + abs(x)/2)
 
-int    range(struct ship *, struct ship *);
-struct ship    *closestenemy(struct ship *, int, int);
 static int     angle(int, int);
-int    gunsbear(struct ship *, struct ship *);
-int    portside(struct ship *, struct ship *, int);
-int    colours(struct ship *);
-void   logger(struct ship *);
 
 /* XXX */
 int
diff -r 54dcc5643008 -r 82ec12e8c605 games/sail/parties.c
--- a/games/sail/parties.c      Mon Feb 05 01:04:25 2001 +0000
+++ b/games/sail/parties.c      Mon Feb 05 01:10:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parties.c,v 1.9 2001/01/04 03:51:24 jwise Exp $        */
+/*     $NetBSD: parties.c,v 1.10 2001/02/05 01:10:10 christos Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,17 +38,13 @@
 #if 0



Home | Main Index | Thread Index | Old Index