summaryrefslogtreecommitdiffstats
path: root/battlestar
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2004-01-27 20:30:28 +0000
committerjsm <jsm@NetBSD.org>2004-01-27 20:30:28 +0000
commita43fb158d0c5c90291b792d683aa0221403f1893 (patch)
treeabc8b57813f81300bc2b7a4ad80223e666d05d7d /battlestar
parent5572d7c395d19f949cb8a29c96791307e744681c (diff)
downloadbsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.tar.gz
bsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.tar.zst
bsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.zip
Remove uses of __P.
Diffstat (limited to 'battlestar')
-rw-r--r--battlestar/battlestar.c6
-rw-r--r--battlestar/extern.h116
-rw-r--r--battlestar/fly.c18
-rw-r--r--battlestar/init.c10
-rw-r--r--battlestar/parse.c10
5 files changed, 80 insertions, 80 deletions
diff --git a/battlestar/battlestar.c b/battlestar/battlestar.c
index ae60f4c0..e88349c6 100644
--- a/battlestar/battlestar.c
+++ b/battlestar/battlestar.c
@@ -1,4 +1,4 @@
-/* $NetBSD: battlestar.c,v 1.13 2003/08/07 09:37:00 agc Exp $ */
+/* $NetBSD: battlestar.c,v 1.14 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
#if 0
static char sccsid[] = "@(#)battlestar.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: battlestar.c,v 1.13 2003/08/07 09:37:00 agc Exp $");
+__RCSID("$NetBSD: battlestar.c,v 1.14 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -52,7 +52,7 @@ __RCSID("$NetBSD: battlestar.c,v 1.13 2003/08/07 09:37:00 agc Exp $");
#include "extern.h"
-int main __P((int, char *[]));
+int main(int, char *[]);
int
main(argc, argv)
diff --git a/battlestar/extern.h b/battlestar/extern.h
index fd6d9629..3c9c9c40 100644
--- a/battlestar/extern.h
+++ b/battlestar/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.29 2003/08/07 09:37:02 agc Exp $ */
+/* $NetBSD: extern.h,v 1.30 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -328,60 +328,60 @@ extern const struct objs nightobjs[];
#define DEFAULT_SAVE_FILE ".Bstar"
-void bury __P((void));
-int card __P((const char *, int));
-void chime __P((void));
-void convert __P((int));
-void crash __P((void));
-int cypher __P((void));
-void die __P((void)) __attribute__((__noreturn__));
-void diesig __P((int)) __attribute__((__noreturn__));
-void dig __P((void));
-void dooropen __P((void));
-int draw __P((void));
-void drink __P((void));
-int drive __P((void));
-int drop __P((const char *));
-int eat __P((void));
-int fight __P((int, int));
-int follow __P((void));
-char *getcom __P((char *, int, const char *, const char *));
-char *getword __P((char *, char *, int));
-int give __P((void));
-void initialize __P((const char *));
-int jump __P((void));
-void kiss __P((void));
-int land __P((void));
-int launch __P((void));
-void light __P((void));
-void live __P((void)) __attribute__((__noreturn__));
-void love __P((void));
-int moveplayer __P((int, int));
-void murder __P((void));
-void news __P((void));
-void newway __P((int));
-void open_score_file __P((void));
-void parse __P((void));
-void post __P((char));
-void printobjs __P((void));
-int put __P((void));
-int puton __P((void));
-const char *rate __P((void));
-void ravage __P((void));
-void restore __P((const char *));
-int ride __P((void));
-void save __P((const char *));
-char *save_file_name __P((const char *, size_t));
-int shoot __P((void));
-int take __P((unsigned int[]));
-int takeoff __P((void));
-int throw __P((const char *));
-const char *truedirec __P((int, char));
-int ucard __P((const unsigned int *));
-int use __P((void));
-int visual __P((void));
-int wearit __P((void));
-void whichway __P((struct room));
-void wordinit __P((void));
-void writedes __P((void));
-int zzz __P((void));
+void bury(void);
+int card(const char *, int);
+void chime(void);
+void convert(int);
+void crash(void);
+int cypher(void);
+void die(void) __attribute__((__noreturn__));
+void diesig(int) __attribute__((__noreturn__));
+void dig(void);
+void dooropen(void);
+int draw(void);
+void drink(void);
+int drive(void);
+int drop(const char *);
+int eat(void);
+int fight(int, int);
+int follow(void);
+char *getcom(char *, int, const char *, const char *);
+char *getword(char *, char *, int);
+int give(void);
+void initialize(const char *);
+int jump(void);
+void kiss(void);
+int land(void);
+int launch(void);
+void light(void);
+void live(void) __attribute__((__noreturn__));
+void love(void);
+int moveplayer(int, int);
+void murder(void);
+void news(void);
+void newway(int);
+void open_score_file(void);
+void parse(void);
+void post(char);
+void printobjs(void);
+int put(void);
+int puton(void);
+const char *rate(void);
+void ravage(void);
+void restore(const char *);
+int ride(void);
+void save(const char *);
+char *save_file_name(const char *, size_t);
+int shoot(void);
+int take(unsigned int[]);
+int takeoff(void);
+int throw(const char *);
+const char *truedirec(int, char);
+int ucard(const unsigned int *);
+int use(void);
+int visual(void);
+int wearit(void);
+void whichway(struct room);
+void wordinit(void);
+void writedes(void);
+int zzz(void);
diff --git a/battlestar/fly.c b/battlestar/fly.c
index 1652aa07..d0353a31 100644
--- a/battlestar/fly.c
+++ b/battlestar/fly.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fly.c,v 1.11 2003/08/07 09:37:02 agc Exp $ */
+/* $NetBSD: fly.c,v 1.12 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: fly.c,v 1.11 2003/08/07 09:37:02 agc Exp $");
+__RCSID("$NetBSD: fly.c,v 1.12 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -52,13 +52,13 @@ int ourclock = 120; /* time for all the flights in the game */
static char cross = 0;
static sig_t oldsig;
-static void blast __P((void));
-static void endfly __P((void));
-static void moveenemy __P((int));
-static void notarget __P((void));
-static void screen __P((void));
-static void succumb __P((int));
-static void target __P((void));
+static void blast(void);
+static void endfly(void);
+static void moveenemy(int);
+static void notarget(void);
+static void screen(void);
+static void succumb(int);
+static void target(void);
static void
succumb(dummy)
diff --git a/battlestar/init.c b/battlestar/init.c
index a9450429..e904aad1 100644
--- a/battlestar/init.c
+++ b/battlestar/init.c
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.13 2003/08/07 09:37:02 agc Exp $ */
+/* $NetBSD: init.c,v 1.14 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,15 +34,15 @@
#if 0
static char sccsid[] = "@(#)init.c 8.4 (Berkeley) 4/30/95";
#else
-__RCSID("$NetBSD: init.c,v 1.13 2003/08/07 09:37:02 agc Exp $");
+__RCSID("$NetBSD: init.c,v 1.14 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
#include "extern.h"
-static int checkout __P((const char *));
-static const char *getutmp __P((void));
-static int wizard __P((const char *));
+static int checkout(const char *);
+static const char *getutmp(void);
+static int wizard(const char *);
void
initialize(filename)
diff --git a/battlestar/parse.c b/battlestar/parse.c
index 3c38fd75..c1505a3a 100644
--- a/battlestar/parse.c
+++ b/battlestar/parse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.13 2003/08/07 09:37:03 agc Exp $ */
+/* $NetBSD: parse.c,v 1.14 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)parse.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: parse.c,v 1.13 2003/08/07 09:37:03 agc Exp $");
+__RCSID("$NetBSD: parse.c,v 1.14 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -44,9 +44,9 @@ __RCSID("$NetBSD: parse.c,v 1.13 2003/08/07 09:37:03 agc Exp $");
#define HASHMUL 81
#define HASHMASK (HASHSIZE - 1)
-static int hash __P((const char *));
-static void install __P((struct wlist *));
-static struct wlist *lookup __P((const char *));
+static int hash(const char *);
+static void install(struct wlist *);
+static struct wlist *lookup(const char *);
static struct wlist *hashtab[HASHSIZE];