From: Eirik Nygaard Date: Wed, 12 Nov 2003 14:53:54 +0000 (+0000) Subject: * __P removal from games/ X-Git-Url: https://gitweb.dragonflybsd.org/~lentferj/dragonfly.git/commitdiff_plain/851dc90dd015f9e35b3bc5e9a5e7d94260d56631 * __P removal from games/ Submitted-by: Craig Dooley --- diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c index 5f2b2899bd..450c0e21c8 100644 --- a/games/arithmetic/arithmetic.c +++ b/games/arithmetic/arithmetic.c @@ -36,7 +36,7 @@ * @(#) Copyright (c) 1989, 1993 The Regents of the University of California. All rights reserved. * @(#)arithmetic.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/arithmetic/arithmetic.c,v 1.10 1999/12/12 06:40:28 billf Exp $ - * $DragonFly: src/games/arithmetic/arithmetic.c,v 1.2 2003/06/17 04:25:22 dillon Exp $ + * $DragonFly: src/games/arithmetic/arithmetic.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ /* @@ -85,13 +85,13 @@ int nright, nwrong; time_t qtime; #define NQUESTS 20 -static void usage __P((void)); -int getrandom __P((int, int, int)); -void intr __P((int)); -int opnum __P((int)); -void penalise __P((int, int, int)); -int problem __P((void)); -void showstats __P((void)); +static void usage (void); +int getrandom (int, int, int); +void intr (int); +int opnum (int); +void penalise (int, int, int); +int problem (void); +void showstats (void); /* * Select keys from +-x/ to be asked addition, subtraction, multiplication, diff --git a/games/backgammon/common_source/fancy.c b/games/backgammon/common_source/fancy.c index 702a65378f..09b3e84970 100644 --- a/games/backgammon/common_source/fancy.c +++ b/games/backgammon/common_source/fancy.c @@ -32,7 +32,7 @@ * * @(#)fancy.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/backgammon/common_source/fancy.c,v 1.7 1999/11/30 03:48:25 billf Exp $ - * $DragonFly: src/games/backgammon/common_source/fancy.c,v 1.2 2003/06/17 04:25:22 dillon Exp $ + * $DragonFly: src/games/backgammon/common_source/fancy.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ #include @@ -81,7 +81,7 @@ int oldw; int realr; int realc; -int addbuf __P((int)); +int addbuf (int); fboard () { int i, j, l; diff --git a/games/battlestar/com1.c b/games/battlestar/com1.c index 8de1cea231..8c7f43a9aa 100644 --- a/games/battlestar/com1.c +++ b/games/battlestar/com1.c @@ -32,12 +32,12 @@ * * @(#)com1.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/battlestar/com1.c,v 1.7.2.1 2001/03/05 11:45:35 kris Exp $ - * $DragonFly: src/games/battlestar/com1.c,v 1.2 2003/06/17 04:25:22 dillon Exp $ + * $DragonFly: src/games/battlestar/com1.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ #include "externs.h" -void convert __P((int)); +void convert (int); int battlestar_move(thataway, token) diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c index 85f24bc9c7..c880d34060 100644 --- a/games/battlestar/com6.c +++ b/games/battlestar/com6.c @@ -32,14 +32,14 @@ * * @(#)com6.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/battlestar/com6.c,v 1.9.2.1 2001/03/05 11:45:35 kris Exp $ - * $DragonFly: src/games/battlestar/com6.c,v 1.2 2003/06/17 04:25:22 dillon Exp $ + * $DragonFly: src/games/battlestar/com6.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ #include #include "externs.h" #include "pathnames.h" -static void post __P((unsigned int ch)); +static void post (unsigned int ch); int launch() diff --git a/games/battlestar/externs.h b/games/battlestar/externs.h index 81fdc05100..cfc27d8951 100644 --- a/games/battlestar/externs.h +++ b/games/battlestar/externs.h @@ -33,7 +33,7 @@ * @(#)externs.h 8.1 (Berkeley) 5/31/93 * * $FreeBSD: src/games/battlestar/externs.h,v 1.9.2.1 2001/03/05 11:45:36 kris Exp $ - * $DragonFly: src/games/battlestar/externs.h,v 1.2 2003/06/17 04:25:22 dillon Exp $ + * $DragonFly: src/games/battlestar/externs.h,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ #include @@ -255,58 +255,58 @@ int wordtype[NWORD]; int wordcount, wordnumber; -int battlestar_move __P((int, int)); -void bury __P((void)); -int card __P((const char *, int)); -void chime __P((void)); -void crash __P((void)); -int cypher __P((void)); -void die __P((int)); -void dig __P((void)); -int draw __P((void)); -void drink __P((void)); -int drive __P((void)); -int drop __P((const char *name)); -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((int)); -int jump __P((void)); -void kiss __P((void)); -int land __P((void)); -int launch __P((void)); -void light __P((void)); -void live __P((void)); -void love __P((void)); -void murder __P((void)); -void news __P((void)); -void newway __P((int)); -void open_score_file __P((void)); -void parse __P((void)); -void printobjs __P((void)); -int put __P((void)); -int puton __P((void)); -void ravage __P((void)); -const char *rate __P((void)); -void restore __P((void)); -int ride __P((void)); -void save __P((void)); -int shoot __P((void)); -int take __P((unsigned int from[])); +int battlestar_move (int, int); +void bury (void); +int card (const char *, int); +void chime (void); +void crash (void); +int cypher (void); +void die (int); +void dig (void); +int draw (void); +void drink (void); +int drive (void); +int drop (const char *name); +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 (int); +int jump (void); +void kiss (void); +int land (void); +int launch (void); +void light (void); +void live (void); +void love (void); +void murder (void); +void news (void); +void newway (int); +void open_score_file (void); +void parse (void); +void printobjs (void); +int put (void); +int puton (void); +void ravage (void); +const char *rate (void); +void restore (void); +int ride (void); +void save (void); +int shoot (void); +int take (unsigned int from[]); int takeoff(void); -int throw __P((const char *name)); -const char *truedirec __P((int, unsigned int)); -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)); +int throw (const char *name); +const char *truedirec (int, unsigned int); +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); /* state of the game */ extern int gclock; diff --git a/games/battlestar/fly.c b/games/battlestar/fly.c index 5e877fb1a9..d90d34e6c2 100644 --- a/games/battlestar/fly.c +++ b/games/battlestar/fly.c @@ -32,7 +32,7 @@ * * @(#)fly.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/battlestar/fly.c,v 1.6.2.1 2001/03/05 11:45:36 kris Exp $ - * $DragonFly: src/games/battlestar/fly.c,v 1.2 2003/06/17 04:25:22 dillon Exp $ + * $DragonFly: src/games/battlestar/fly.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ #include "externs.h" @@ -51,13 +51,13 @@ int gclock = 120; /* gtime for all the flights in the game */ char cross = 0; 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 succumb __P((int)); -static void screen __P((void)); -static void target __P((void)); +static void blast (void); +static void endfly (void); +static void moveenemy (int); +static void notarget (void); +static void succumb (int); +static void screen (void); +static void target (void); void succumb(sig) diff --git a/games/battlestar/init.c b/games/battlestar/init.c index 855697724b..eed3a5502f 100644 --- a/games/battlestar/init.c +++ b/games/battlestar/init.c @@ -32,7 +32,7 @@ * * @(#)init.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/battlestar/init.c,v 1.7.2.1 2001/03/05 11:45:36 kris Exp $ - * $DragonFly: src/games/battlestar/init.c,v 1.2 2003/06/17 04:25:22 dillon Exp $ + * $DragonFly: src/games/battlestar/init.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ #include @@ -40,9 +40,9 @@ #include #include "externs.h" -static int checkout __P((const char *)); -static void getutmp __P((char *)); -static int wizard __P((const char *)); +static int checkout (const char *); +static void getutmp (char *); +static int wizard (const char *); void initialize(startup) diff --git a/games/battlestar/parse.c b/games/battlestar/parse.c index c00248140e..a0967517fc 100644 --- a/games/battlestar/parse.c +++ b/games/battlestar/parse.c @@ -32,14 +32,14 @@ * * @(#)parse.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/battlestar/parse.c,v 1.5.2.1 2001/03/05 11:45:36 kris Exp $ - * $DragonFly: src/games/battlestar/parse.c,v 1.2 2003/06/17 04:25:23 dillon Exp $ + * $DragonFly: src/games/battlestar/parse.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ #include "externs.h" -static int hash __P((const char *)); -static void install __P((struct wlist *)); -struct wlist *lookup __P((const char *)); +static int hash (const char *); +static void install (struct wlist *); +struct wlist *lookup (const char *); void wordinit() diff --git a/games/bs/bs.c b/games/bs/bs.c index 3b05c67aa4..1557efdc96 100644 --- a/games/bs/bs.c +++ b/games/bs/bs.c @@ -7,7 +7,7 @@ * v2.0 featuring strict ANSI/POSIX conformance, November 1993. * * $FreeBSD: src/games/bs/bs.c,v 1.9 2000/02/21 03:07:31 billf Exp $ - * $DragonFly: src/games/bs/bs.c,v 1.3 2003/08/31 21:32:09 drhodus Exp $ + * $DragonFly: src/games/bs/bs.c,v 1.4 2003/11/12 14:53:52 eirikn Exp $ */ #include @@ -142,9 +142,9 @@ static int salvo, blitz, closepack; #define PR (void)addstr -static bool checkplace __P((int, ship_t *, int)); -static int getcoord __P((int)); -int playagain __P((void)); +static bool checkplace (int, ship_t *, int); +static int getcoord (int); +int playagain (void); static void uninitgame(sig) /* end the game, either normally or due to signal */ diff --git a/games/caesar/caesar.c b/games/caesar/caesar.c index 1202a7f84b..582835cd1c 100644 --- a/games/caesar/caesar.c +++ b/games/caesar/caesar.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/games/caesar/caesar.c,v 1.8.2.1 2000/08/17 06:13:06 jhb Exp $ - * $DragonFly: src/games/caesar/caesar.c,v 1.2 2003/06/17 04:25:23 dillon Exp $ + * $DragonFly: src/games/caesar/caesar.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ * * @(#) Copyright (c) 1989, 1993 The Regents of the University of California. All rights reserved. * @(#)caesar.c 8.1 (Berkeley) 5/31/93 @@ -70,7 +70,7 @@ double stdf[26] = { 2.62, 0.81, 1.88, 0.23, 2.07, 0.06, }; -void printit __P((char *)); +void printit (char *); int main(argc, argv) diff --git a/games/canfield/canfield/canfield.c b/games/canfield/canfield/canfield.c index dcdfa4a950..59d068243c 100644 --- a/games/canfield/canfield/canfield.c +++ b/games/canfield/canfield/canfield.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1980, 1993 The Regents of the University of California. All rights reserved. * @(#)canfield.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/canfield/canfield/canfield.c,v 1.11 1999/12/12 07:25:13 billf Exp $ - * $DragonFly: src/games/canfield/canfield/canfield.c,v 1.2 2003/06/17 04:25:23 dillon Exp $ + * $DragonFly: src/games/canfield/canfield/canfield.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ /* @@ -190,52 +190,52 @@ bool startedgame = FALSE, infullgame = FALSE; time_t acctstart; int dbfd = -1; -void askquit __P((int)); -void cleanup __P((int)); -void cleanupboard __P((void)); -void clearabovemovebox __P((void)); -void clearbelowmovebox __P((void)); -void clearmsg __P((void)); -void clearstat __P((void)); -void destinerror __P((void)); -bool diffcolor __P((struct cardtype *, struct cardtype *)); -void dumberror __P((void)); -bool finish __P((void)); -void fndbase __P((struct cardtype **, int, int)); -void getcmd __P((int, int, char *)); -void initall __P((void)); -void initdeck __P((struct cardtype *[])); -void initgame __P((void)); -void instruct __P((void)); -void makeboard __P((void)); -void movebox __P((void)); -void movecard __P((void)); -void movetofound __P((struct cardtype **, int)); -void movetotalon __P((void)); -bool notempty __P((struct cardtype *)); -void printbottombettingbox __P((void)); -void printbottominstructions __P((void)); -void printcard __P((int, int, struct cardtype *)); -void printrank __P((int, int, struct cardtype *, bool)); -void printtopbettingbox __P((void)); -void printtopinstructions __P((void)); -bool rankhigher __P((struct cardtype *, int)); -bool ranklower __P((struct cardtype *, struct cardtype *)); -void removecard __P((int, int)); -bool samesuit __P((struct cardtype *, int)); -void showcards __P((void)); -void showstat __P((void)); -void shuffle __P((struct cardtype *[])); -void simpletableau __P((struct cardtype **, int)); -void startgame __P((void)); -void suspend __P((void)); -bool tabok __P((struct cardtype *, int)); -void tabprint __P((int, int)); -void tabtotab __P((int, int)); -void transit __P((struct cardtype **, struct cardtype **)); -void updatebettinginfo __P((void)); -void usedstock __P((void)); -void usedtalon __P((void)); +void askquit (int); +void cleanup (int); +void cleanupboard (void); +void clearabovemovebox (void); +void clearbelowmovebox (void); +void clearmsg (void); +void clearstat (void); +void destinerror (void); +bool diffcolor (struct cardtype *, struct cardtype *); +void dumberror (void); +bool finish (void); +void fndbase (struct cardtype **, int, int); +void getcmd (int, int, char *); +void initall (void); +void initdeck (struct cardtype *[]); +void initgame (void); +void instruct (void); +void makeboard (void); +void movebox (void); +void movecard (void); +void movetofound (struct cardtype **, int); +void movetotalon (void); +bool notempty (struct cardtype *); +void printbottombettingbox (void); +void printbottominstructions (void); +void printcard (int, int, struct cardtype *); +void printrank (int, int, struct cardtype *, bool); +void printtopbettingbox (void); +void printtopinstructions (void); +bool rankhigher (struct cardtype *, int); +bool ranklower (struct cardtype *, struct cardtype *); +void removecard (int, int); +bool samesuit (struct cardtype *, int); +void showcards (void); +void showstat (void); +void shuffle (struct cardtype *[]); +void simpletableau (struct cardtype **, int); +void startgame (void); +void suspend (void); +bool tabok (struct cardtype *, int); +void tabprint (int, int); +void tabtotab (int, int); +void transit (struct cardtype **, struct cardtype **); +void updatebettinginfo (void); +void usedstock (void); +void usedtalon (void); /* * The following procedures print the board onto the screen using the diff --git a/games/canfield/cfscores/cfscores.c b/games/canfield/cfscores/cfscores.c index 1984aa39a6..e471823a8d 100644 --- a/games/canfield/cfscores/cfscores.c +++ b/games/canfield/cfscores/cfscores.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1983, 1993 The Regents of the University of California. All rights reserved. * @(#)cfscores.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/canfield/cfscores/cfscores.c,v 1.9 1999/12/12 07:25:14 billf Exp $ - * $DragonFly: src/games/canfield/cfscores/cfscores.c,v 1.2 2003/06/17 04:25:23 dillon Exp $ + * $DragonFly: src/games/canfield/cfscores/cfscores.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ #include @@ -56,7 +56,7 @@ struct betinfo { int dbfd; -void printuser __P((struct passwd *, int)); +void printuser (struct passwd *, int); int main(argc, argv) diff --git a/games/cribbage/cribbage.h b/games/cribbage/cribbage.h index dae270c961..e534ce623a 100644 --- a/games/cribbage/cribbage.h +++ b/games/cribbage/cribbage.h @@ -31,6 +31,7 @@ * SUCH DAMAGE. * * @(#)cribbage.h 8.1 (Berkeley) 5/31/93 + * $DragonFly: src/games/cribbage/cribbage.h,v 1.2 2003/11/12 14:53:52 eirikn Exp $ */ extern CARD deck[ CARDS ]; /* a deck */ @@ -59,54 +60,54 @@ extern BOOLEAN playing; /* currently playing game */ extern char expl[]; /* string for explanation */ -void addmsg __P((const char *, ...)); -int adjust __P((CARD [], CARD)); -int anymove __P((CARD [], int, int)); -int anysumto __P((CARD [], int, int, int)); -void bye __P((void)); -int cchose __P((CARD [], int, int)); -void cdiscard __P((BOOLEAN)); -int chkscr __P((int *, int)); -int comphand __P((CARD [], char *)); -void cremove __P((CARD, CARD [], int)); -int cut __P((BOOLEAN, int)); -int deal __P((int)); -void discard __P((BOOLEAN)); -void do_wait __P((void)); -void endmsg __P((void)); -int eq __P((CARD, CARD)); -int fifteens __P((CARD [], int)); -void game __P((void)); -void gamescore __P((void)); -char *getline __P((void)); -int getuchar __P((void)); -int incard __P((CARD *)); -int infrom __P((CARD [], int, char *)); -void instructions __P((void)); -int isone __P((CARD, CARD [], int)); -void makeboard __P((void)); -void makedeck __P((CARD [])); -void makeknown __P((CARD [], int)); -void msg __P((const char *, ...)); -int msgcard __P((CARD, BOOLEAN)); -int msgcrd __P((CARD, BOOLEAN, char *, BOOLEAN)); -int number __P((int, int, char *)); -int numofval __P((CARD [], int, int)); -int pairuns __P((CARD [], int)); -int peg __P((BOOLEAN)); -int pegscore __P((CARD, CARD [], int, int)); -int playhand __P((BOOLEAN)); -int plyrhand __P((CARD [], char *)); -void prcard __P((WINDOW *, int, int, CARD, BOOLEAN)); -void prcrib __P((BOOLEAN, BOOLEAN)); -void prhand __P((CARD [], int, WINDOW *, BOOLEAN)); -void printcard __P((WINDOW *, int, CARD, BOOLEAN)); -void prpeg __P((int, int, BOOLEAN)); -void prtable __P((int)); -int readchar __P((void)); -void rint __P((int)); -int score __P((BOOLEAN)); -int scorehand __P((CARD [], CARD, int, BOOLEAN, BOOLEAN)); -void shuffle __P((CARD [])); -void sorthand __P((CARD [], int)); -void wait_for __P((int)); +void addmsg (const char *, ...); +int adjust (CARD [], CARD); +int anymove (CARD [], int, int); +int anysumto (CARD [], int, int, int); +void bye (void); +int cchose (CARD [], int, int); +void cdiscard (BOOLEAN); +int chkscr (int *, int); +int comphand (CARD [], char *); +void cremove (CARD, CARD [], int); +int cut (BOOLEAN, int); +int deal (int); +void discard (BOOLEAN); +void do_wait (void); +void endmsg (void); +int eq (CARD, CARD); +int fifteens (CARD [], int); +void game (void); +void gamescore (void); +char *getline (void); +int getuchar (void); +int incard (CARD *); +int infrom (CARD [], int, char *); +void instructions (void); +int isone (CARD, CARD [], int); +void makeboard (void); +void makedeck (CARD []); +void makeknown (CARD [], int); +void msg (const char *, ...); +int msgcard (CARD, BOOLEAN); +int msgcrd (CARD, BOOLEAN, char *, BOOLEAN); +int number (int, int, char *); +int numofval (CARD [], int, int); +int pairuns (CARD [], int); +int peg (BOOLEAN); +int pegscore (CARD, CARD [], int, int); +int playhand (BOOLEAN); +int plyrhand (CARD [], char *); +void prcard (WINDOW *, int, int, CARD, BOOLEAN); +void prcrib (BOOLEAN, BOOLEAN); +void prhand (CARD [], int, WINDOW *, BOOLEAN); +void printcard (WINDOW *, int, CARD, BOOLEAN); +void prpeg (int, int, BOOLEAN); +void prtable (int); +int readchar (void); +void rint (int); +int score (BOOLEAN); +int scorehand (CARD [], CARD, int, BOOLEAN, BOOLEAN); +void shuffle (CARD []); +void sorthand (CARD [], int); +void wait_for (int); diff --git a/games/dm/dm.c b/games/dm/dm.c index 94bdd06035..eb07dc9bd7 100644 --- a/games/dm/dm.c +++ b/games/dm/dm.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1987, 1993 The Regents of the University of California. All rights reserved. * @(#)dm.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/dm/dm.c,v 1.8 1999/12/10 02:54:18 billf Exp $ - * $DragonFly: src/games/dm/dm.c,v 1.2 2003/06/17 04:25:23 dillon Exp $ + * $DragonFly: src/games/dm/dm.c,v 1.3 2003/11/12 14:53:52 eirikn Exp $ */ #include @@ -59,15 +59,15 @@ static int priority = 0; /* priority game runs at */ static char *game, /* requested game */ *gametty; /* from tty? */ -void c_day __P((char *, char *, char *)); -void c_tty __P((char *)); -void c_game __P((char *, char *, char *, char *)); -void hour __P((int)); -double load __P((void)); -void nogamefile __P((void)); -void play __P((char **)); -void read_config __P((void)); -int users __P((void)); +void c_day (char *, char *, char *); +void c_tty (char *); +void c_game (char *, char *, char *, char *); +void hour (int); +double load (void); +void nogamefile (void); +void play (char **); +void read_config (void); +int users (void); int main(argc, argv) diff --git a/games/fish/fish.c b/games/fish/fish.c index 0706a943f3..9274f74e43 100644 --- a/games/fish/fish.c +++ b/games/fish/fish.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/games/fish/fish.c,v 1.9 1999/12/10 16:21:50 billf Exp $ - * $DragonFly: src/games/fish/fish.c,v 1.2 2003/06/17 04:25:23 dillon Exp $ + * $DragonFly: src/games/fish/fish.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ * * @(#) Copyright (c) 1990, 1993 The Regents of the University of California. All rights reserved. * @(#)fish.c 8.1 (Berkeley) 5/31/93 @@ -68,21 +68,21 @@ int promode; int asked[RANKS], comphand[RANKS], deck[RANKS]; int userasked[RANKS], userhand[RANKS]; -void chkwinner __P((int player, int *hand)); -int compmove __P((void)); -int countbooks __P((int *hand)); -int countcards __P((int *hand)); -int drawcard __P((int player, int *hand)); -int gofish __P((int askedfor, int player, int *hand)); -void goodmove __P((int player, int move, int *hand, int *opphand)); -void init __P((void)); -void instructions __P((void)); -int nrandom __P((int n)); -void printhand __P((int *hand)); -void printplayer __P((int player)); -int promove __P((void)); -void usage __P((void)); -int usermove __P((void)); +void chkwinner (int player, int *hand); +int compmove (void); +int countbooks (int *hand); +int countcards (int *hand); +int drawcard (int player, int *hand); +int gofish (int askedfor, int player, int *hand); +void goodmove (int player, int move, int *hand, int *opphand); +void init (void); +void instructions (void); +int nrandom (int n); +void printhand (int *hand); +void printplayer (int player); +int promove (void); +void usage (void); +int usermove (void); int main(argc, argv) diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index ef2094c4fc..97d0b55869 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -38,7 +38,7 @@ * $FreeBSD: src/games/fortune/fortune/fortune.c,v 1.18.2.1 2001/07/02 00:35:27 dd Exp $ */ /* $FreeBSD: src/games/fortune/fortune/fortune.c,v 1.18.2.1 2001/07/02 00:35:27 dd Exp $ */ -/* $DragonFly: src/games/fortune/fortune/fortune.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ */ +/* $DragonFly: src/games/fortune/fortune/fortune.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ */ # include # include @@ -119,44 +119,44 @@ FILEDESC *Fortfile; /* Fortune file to use */ STRFILE Noprob_tbl; /* sum of data for all no prob files */ -int add_dir __P((FILEDESC *)); -int add_file __P((int, - char *, char *, FILEDESC **, FILEDESC **, FILEDESC *)); -void all_forts __P((FILEDESC *, char *)); -char *copy __P((char *, u_int)); -void display __P((FILEDESC *)); -void do_free __P((void *)); -void *do_malloc __P((u_int)); -int form_file_list __P((char **, int)); -int fortlen __P((void)); -void get_fort __P((void)); -void get_pos __P((FILEDESC *)); -void get_tbl __P((FILEDESC *)); -void getargs __P((int, char *[])); -void init_prob __P((void)); -int is_dir __P((char *)); -int is_fortfile __P((char *, char **, char **, int)); -int is_off_name __P((char *)); -int max __P((int, int)); +int add_dir (FILEDESC *); +int add_file (int, + char *, char *, FILEDESC **, FILEDESC **, FILEDESC *); +void all_forts (FILEDESC *, char *); +char *copy (char *, u_int); +void display (FILEDESC *); +void do_free (void *); +void *do_malloc (u_int); +int form_file_list (char **, int); +int fortlen (void); +void get_fort (void); +void get_pos (FILEDESC *); +void get_tbl (FILEDESC *); +void getargs (int, char *[]); +void init_prob (void); +int is_dir (char *); +int is_fortfile (char *, char **, char **, int); +int is_off_name (char *); +int max (int, int); FILEDESC * - new_fp __P((void)); -char *off_name __P((char *)); -void open_dat __P((FILEDESC *)); -void open_fp __P((FILEDESC *)); + new_fp (void); +char *off_name (char *); +void open_dat (FILEDESC *); +void open_fp (FILEDESC *); FILEDESC * - pick_child __P((FILEDESC *)); -void print_file_list __P((void)); -void print_list __P((FILEDESC *, int)); -void sum_noprobs __P((FILEDESC *)); -void sum_tbl __P((STRFILE *, STRFILE *)); -void usage __P((void)); -void zero_tbl __P((STRFILE *)); + pick_child (FILEDESC *); +void print_file_list (void); +void print_list (FILEDESC *, int); +void sum_noprobs (FILEDESC *); +void sum_tbl (STRFILE *, STRFILE *); +void usage (void); +void zero_tbl (STRFILE *); #ifndef NO_REGEX -char *conv_pat __P((char *)); -int find_matches __P((void)); -void matches_in_list __P((FILEDESC *)); -int maxlen_in_list __P((FILEDESC *)); +char *conv_pat (char *); +int find_matches (void); +void matches_in_list (FILEDESC *); +int maxlen_in_list (FILEDESC *); #endif #ifndef NO_REGEX diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c index c277f9e067..098cb0522b 100644 --- a/games/fortune/strfile/strfile.c +++ b/games/fortune/strfile/strfile.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/games/fortune/strfile/strfile.c,v 1.15.2.2 2001/03/05 11:52:37 kris Exp $ - * $DragonFly: src/games/fortune/strfile/strfile.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/fortune/strfile/strfile.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ * * @(#) Copyright (c) 1989, 1993 The Regents of the University of California. All rights reserved. * @(#)strfile.c 8.1 (Berkeley) 5/31/93 @@ -121,13 +121,13 @@ STRFILE Tbl; /* statistics table */ STR *Firstch; /* first chars of each string */ -void add_offset __P((FILE *, long)); -int cmp_str __P((const void *, const void *)); -static int collate_range_cmp __P((int, int)); -void do_order __P((void)); -void getargs __P((int, char **)); -void randomize __P((void)); -void usage __P((void)); +void add_offset (FILE *, long); +int cmp_str (const void *, const void *); +static int collate_range_cmp (int, int); +void do_order (void); +void getargs (int, char **); +void randomize (void); +void usage (void); /* * main: diff --git a/games/hangman/hangman.h b/games/hangman/hangman.h index 606a40f916..be5726ee56 100644 --- a/games/hangman/hangman.h +++ b/games/hangman/hangman.h @@ -32,7 +32,7 @@ * * @(#)hangman.h 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/hangman/hangman.h,v 1.3 1999/12/10 03:22:59 billf Exp $ - * $DragonFly: src/games/hangman/hangman.h,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/hangman/hangman.h,v 1.3 2003/11/12 14:53:53 eirikn Exp $ */ # include @@ -81,13 +81,13 @@ extern FILE *Dict; extern off_t Dict_size; -void die __P((int)); -void endgame __P((void)); -void getguess __P((void)); -void getword __P((void)); -void playgame __P((void)); -void prdata __P((void)); -void prman __P((void)); -void prword __P((void)); -char readch __P((void)); -void setup __P((void)); +void die (int); +void endgame (void); +void getguess (void); +void getword (void); +void playgame (void); +void prdata (void); +void prman (void); +void prword (void); +char readch (void); +void setup (void); diff --git a/games/mille/end.c b/games/mille/end.c index 15b0318e98..e8e693e257 100644 --- a/games/mille/end.c +++ b/games/mille/end.c @@ -32,7 +32,7 @@ * * @(#)end.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/mille/end.c,v 1.5 1999/12/12 06:17:24 billf Exp $ - * $DragonFly: src/games/mille/end.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/mille/end.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ */ # include "mille.h" @@ -42,8 +42,8 @@ */ #ifndef EXTRAP -void extrapolate __P((PLAY *)); -void undoex __P((void)); +void extrapolate (PLAY *); +void undoex (void); #endif /* diff --git a/games/mille/mille.c b/games/mille/mille.c index fe3893e542..8fb56774a3 100644 --- a/games/mille/mille.c +++ b/games/mille/mille.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/games/mille/mille.c,v 1.10 1999/12/12 06:17:24 billf Exp $ - * $DragonFly: src/games/mille/mille.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/mille/mille.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ * * @(#) Copyright (c) 1982, 1993 The Regents of the University of California. All rights reserved. * @(#)mille.c 8.1 (Berkeley) 5/31/93 @@ -48,7 +48,7 @@ * @(#)mille.c 1.3 (Berkeley) 5/10/83 */ -static void usage __P((void)); +static void usage (void); int main(ac, av) diff --git a/games/mille/mille.h b/games/mille/mille.h index 76759d7762..8746d26144 100644 --- a/games/mille/mille.h +++ b/games/mille/mille.h @@ -33,7 +33,7 @@ * @(#)mille.h 8.1 (Berkeley) 5/31/93 * * $FreeBSD: src/games/mille/mille.h,v 1.7 1999/12/12 06:17:24 billf Exp $ - * $DragonFly: src/games/mille/mille.h,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/mille/mille.h,v 1.3 2003/11/12 14:53:53 eirikn Exp $ */ # include @@ -233,37 +233,37 @@ extern WINDOW *Board, *Miles, *Score; * functions */ -void account __P((CARD)); -void calcmove __P((void)); -bool canplay __P((PLAY *, PLAY *, CARD)); -bool check_ext __P((bool)); -void check_more __P((void)); -void die __P((int)); -void domove __P((void)); -bool error __P((char *, ...)); +void account (CARD); +void calcmove (void); +bool canplay (PLAY *, PLAY *, CARD); +bool check_ext (bool); +void check_more (void); +void die (int); +void domove (void); +bool error (char *, ...); #ifdef EXTRAP -void extrapolate __P((PLAY *)); +void extrapolate (PLAY *); #endif -void finalscore __P((PLAY *)); -CARD getcard __P((void)); -bool getyn __P((int)); -void init __P((void)); -int isrepair __P((CARD)); -void newboard __P((void)); -void newscore __P((void)); -bool onecard __P((PLAY *)); -void prboard __P((void)); -void prompt __P((int)); -void prscore __P((bool)); -char readch __P((void)); -bool rest_f __P((char *)); -int roll __P((int, int)); -void rub __P((int)); -CARD safety __P((CARD)); -bool save __P((void)); -void shuffle __P((void)); -void sort __P((CARD *)); -void varpush __P((int, int (*)())); +void finalscore (PLAY *); +CARD getcard (void); +bool getyn (int); +void init (void); +int isrepair (CARD); +void newboard (void); +void newscore (void); +bool onecard (PLAY *); +void prboard (void); +void prompt (int); +void prscore (bool); +char readch (void); +bool rest_f (char *); +int roll (int, int); +void rub (int); +CARD safety (CARD); +bool save (void); +void shuffle (void); +void sort (CARD *); +void varpush (int, int (*)()); #ifdef EXTRAP -void undoex __P((void)); +void undoex (void); #endif diff --git a/games/mille/move.c b/games/mille/move.c index a2d8d139aa..a5da44d5d9 100644 --- a/games/mille/move.c +++ b/games/mille/move.c @@ -32,7 +32,7 @@ * * @(#)move.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/mille/move.c,v 1.6 1999/12/12 06:17:24 billf Exp $ - * $DragonFly: src/games/mille/move.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/mille/move.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ */ #include @@ -56,10 +56,10 @@ const char *Movenames[] = { "M_DISCARD", "M_DRAW", "M_PLAY", "M_ORDER" }; -static void check_go __P((void)); -static void getmove __P((void)); -static int haspicked __P((PLAY *)); -static bool playcard __P((PLAY *)); +static void check_go (void); +static void getmove (void); +static int haspicked (PLAY *); +static bool playcard (PLAY *); void domove() diff --git a/games/mille/print.c b/games/mille/print.c index 554306f381..7240d272d7 100644 --- a/games/mille/print.c +++ b/games/mille/print.c @@ -32,7 +32,7 @@ * * @(#)print.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/mille/print.c,v 1.5 1999/12/12 06:17:24 billf Exp $ - * $DragonFly: src/games/mille/print.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/mille/print.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ */ # include "mille.h" @@ -44,8 +44,8 @@ # define COMP_STRT 20 # define CARD_STRT 2 -static void show_card __P((int, int, CARD, CARD *)); -static void show_score __P((int, int, int, int *)); +static void show_card (int, int, CARD, CARD *); +static void show_score (int, int, int, int *); void prboard() { diff --git a/games/number/number.c b/games/number/number.c index fce4b98581..b3a303ba8e 100644 --- a/games/number/number.c +++ b/games/number/number.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1988, 1993, 1994 The Regents of the University of California. All rights reserved. * @(#)number.c 8.3 (Berkeley) 5/4/95 * $FreeBSD: src/games/number/number.c,v 1.12 1999/12/12 03:22:35 billf Exp $ - * $DragonFly: src/games/number/number.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/number/number.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ */ #include @@ -69,12 +69,12 @@ static const char *name1[] = { "novemdecillion", "vigintillion", }; -void convert __P((char *)); -int number __P((char *, int)); -void pfract __P((int)); -void toobig __P((void)); -int unit __P((int, char *)); -void usage __P((void)); +void convert (char *); +int number (char *, int); +void pfract (int); +void toobig (void); +int unit (int, char *); +void usage (void); int lflag; diff --git a/games/phantasia/misc.c b/games/phantasia/misc.c index 6679090166..40605acf1f 100644 --- a/games/phantasia/misc.c +++ b/games/phantasia/misc.c @@ -2,7 +2,7 @@ * misc.c Phantasia miscellaneous support routines * * $FreeBSD: src/games/phantasia/misc.c,v 1.7 1999/11/16 02:57:34 billf Exp $ - * $DragonFly: src/games/phantasia/misc.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/phantasia/misc.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ */ #include @@ -1445,7 +1445,7 @@ readmessage() error(whichfile) char *whichfile; { - int (*funcp) __P((const char *, ...)); + int (*funcp) (const char *, ...); if (Windows) { diff --git a/games/pig/pig.c b/games/pig/pig.c index 865e8519f4..e84c6c1425 100644 --- a/games/pig/pig.c +++ b/games/pig/pig.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1992, 1993 The Regents of the University of California. All rights reserved. * @(#)pig.c 8.2 (Berkeley) 5/4/95 * $FreeBSD: src/games/pig/pig.c,v 1.7 1999/11/30 03:49:08 billf Exp $ - * $DragonFly: src/games/pig/pig.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/pig/pig.c,v 1.3 2003/11/12 14:53:53 eirikn Exp $ */ #include @@ -44,8 +44,8 @@ #include #include -void pigout __P((char *, int)); -void usage __P((void)); +void pigout (char *, int); +void usage (void); int main(argc, argv) diff --git a/games/pom/pom.c b/games/pom/pom.c index 2fba227a01..021348e1da 100644 --- a/games/pom/pom.c +++ b/games/pom/pom.c @@ -35,7 +35,7 @@ * @(#) Copyright (c) 1989, 1993 The Regents of the University of California. All rights reserved. * @(#)pom.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/pom/pom.c,v 1.9 1999/11/30 03:49:09 billf Exp $ - * $DragonFly: src/games/pom/pom.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/pom/pom.c,v 1.3 2003/11/12 14:53:54 eirikn Exp $ */ /* @@ -64,9 +64,9 @@ #define Nzero 55.204723 /* lunar mean long of node at EPOCH */ #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) -static void adj360 __P((double *)); -static double dtor __P((double)); -static double potm __P((double)); +static void adj360 (double *); +static double dtor (double); +static double potm (double); int main() diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c index adeb01369a..b1e5966412 100644 --- a/games/quiz/quiz.c +++ b/games/quiz/quiz.c @@ -37,7 +37,7 @@ * @(#) Copyright (c) 1991, 1993 The Regents of the University of California. All rights reserved. * @(#)quiz.c 8.3 (Berkeley) 5/4/95 * $FreeBSD: src/games/quiz/quiz.c,v 1.12 1999/12/12 02:29:54 billf Exp $ - * $DragonFly: src/games/quiz/quiz.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/quiz/quiz.c,v 1.3 2003/11/12 14:53:54 eirikn Exp $ */ #include @@ -57,16 +57,16 @@ static QE qlist; static int catone, cattwo, tflag; static u_int qsize; -char *appdstr __P((char *, char *, size_t)); -void downcase __P((char *)); -void err __P((const char *, ...)); -void get_cats __P((char *, char *)); -void get_file __P((char *)); -char *next_cat __P((char *)); -void quiz __P((void)); -void score __P((u_int, u_int, u_int)); -void show_index __P((void)); -void usage __P((void)); +char *appdstr (char *, char *, size_t); +void downcase (char *); +void err (const char *, ...); +void get_cats (char *, char *); +void get_file (char *); +char *next_cat (char *); +void quiz (void); +void score (u_int, u_int, u_int); +void show_index (void); +void usage (void); int main(argc, argv) diff --git a/games/quiz/quiz.h b/games/quiz/quiz.h index 8923c8f79e..0638761a12 100644 --- a/games/quiz/quiz.h +++ b/games/quiz/quiz.h @@ -35,6 +35,7 @@ * SUCH DAMAGE. * * @(#)quiz.h 8.1 (Berkeley) 5/31/93 + * $DragonFly: src/games/quiz/quiz.h,v 1.2 2003/11/12 14:53:54 eirikn Exp $ */ #define TRUE 1 @@ -56,6 +57,6 @@ typedef struct qentry { extern char rxperr[]; -int rxp_compile __P((char *)); -char *rxp_expand __P((void)); -int rxp_match __P((char *)); +int rxp_compile (char *); +char *rxp_expand (void); +int rxp_match (char *); diff --git a/games/quiz/rxp.c b/games/quiz/rxp.c index 9f669b6d5b..cb580e0df6 100644 --- a/games/quiz/rxp.c +++ b/games/quiz/rxp.c @@ -36,7 +36,7 @@ * * @(#)rxp.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/quiz/rxp.c,v 1.5 1999/12/12 02:29:54 billf Exp $ - * $DragonFly: src/games/quiz/rxp.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/quiz/rxp.c,v 1.3 2003/11/12 14:53:54 eirikn Exp $ */ /* @@ -78,9 +78,9 @@ typedef short Rxp_t; /* type for regexp tokens */ static Rxp_t rxpbuf[RXP_LINE_SZ]; /* compiled regular expression buffer */ char rxperr[128]; /* parser error message */ -static int rxp__compile __P((char *, int)); -static char *rxp__expand __P((int)); -static int rxp__match __P((char *, int, Rxp_t *, Rxp_t *, char *)); +static int rxp__compile (char *, int); +static char *rxp__expand (int); +static int rxp__match (char *, int, Rxp_t *, Rxp_t *, char *); int rxp_compile(s) diff --git a/games/rain/rain.c b/games/rain/rain.c index 374a6b5f4f..33694dc820 100644 --- a/games/rain/rain.c +++ b/games/rain/rain.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1980, 1993 The Regents of the University of California. All rights reserved. * @(#)rain.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/rain/rain.c,v 1.8.2.1 2001/03/05 11:54:10 kris Exp $ - * $DragonFly: src/games/rain/rain.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ + * $DragonFly: src/games/rain/rain.c,v 1.3 2003/11/12 14:53:54 eirikn Exp $ */ /* @@ -51,7 +51,7 @@ volatile sig_atomic_t sig_caught = 0; -static void onsig __P((int sig)); +static void onsig (int sig); int main(int argc, char **argv) diff --git a/games/worm/worm.c b/games/worm/worm.c index efc7a661b7..d47e934868 100644 --- a/games/worm/worm.c +++ b/games/worm/worm.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1980, 1993 The Regents of the University of California. All rights reserved. * @(#)worm.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/worm/worm.c,v 1.9 1999/12/07 02:01:27 billf Exp $ - * $DragonFly: src/games/worm/worm.c,v 1.2 2003/06/17 04:25:25 dillon Exp $ + * $DragonFly: src/games/worm/worm.c,v 1.3 2003/11/12 14:53:54 eirikn Exp $ */ /* @@ -76,17 +76,17 @@ int start_len = LENGTH; char lastch; char outbuf[BUFSIZ]; -void crash __P((void)); -void display __P((struct body *, char)); -void leave __P((int)); -void life __P((void)); -void newpos __P((struct body *)); -void prize __P((void)); -void process __P((char)); -long rnd __P((int)); -void setup __P((void)); -void suspend __P((int)); -void wake __P((int)); +void crash (void); +void display (struct body *, char); +void leave (int); +void life (void); +void newpos (struct body *); +void prize (void); +void process (char); +long rnd (int); +void setup (void); +void suspend (int); +void wake (int); int main(argc, argv) diff --git a/games/worms/worms.c b/games/worms/worms.c index 5d0f3fa3f4..01d0217826 100644 --- a/games/worms/worms.c +++ b/games/worms/worms.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1980, 1993 The Regents of the University of California. All rights reserved. * @(#)worms.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/worms/worms.c,v 1.8.2.1 2000/12/04 10:36:17 alex Exp $ - * $DragonFly: src/games/worms/worms.c,v 1.2 2003/06/17 04:25:25 dillon Exp $ + * $DragonFly: src/games/worms/worms.c,v 1.3 2003/11/12 14:53:54 eirikn Exp $ */ /* @@ -170,7 +170,7 @@ static struct worm { } *worm; volatile sig_atomic_t sig_caught = 0; -void onsig __P((int)); +void onsig (int); void nomem(void); int diff --git a/games/wump/wump.c b/games/wump/wump.c index 7b81393165..6f1e385c4b 100644 --- a/games/wump/wump.c +++ b/games/wump/wump.c @@ -37,7 +37,7 @@ * @(#) Copyright (c) 1989, 1993 The Regents of the University of California. All rights reserved. * @(#)wump.c 8.1 (Berkeley) 5/31/93 * $FreeBSD: src/games/wump/wump.c,v 1.13.2.1 2000/08/17 06:24:54 jhb Exp $ - * $DragonFly: src/games/wump/wump.c,v 1.2 2003/06/17 04:25:25 dillon Exp $ + * $DragonFly: src/games/wump/wump.c,v 1.3 2003/11/12 14:53:54 eirikn Exp $ */ /* @@ -107,20 +107,20 @@ char answer[20]; /* user input */ int bats_nearby(void); void cave_init(void); void clear_things_in_cave(void); -void display_room_stats __P((void)); -int getans __P((const char *prompt)); +void display_room_stats (void); +int getans (const char *prompt); void initialize_things_in_cave(void); void instructions(void); -int int_compare __P((const void *va, const void *vb)); +int int_compare (const void *va, const void *vb); void jump(int where); void kill_wump(void); -int move_to __P((char *room_number)); +int move_to (char *room_number); void move_wump(void); void no_arrows(void); void pit_kill(void); int pit_nearby(void); void pit_survive(void); -int shoot __P((char *room_list)); +int shoot (char *room_list); void shoot_self(void); int take_action(void); void usage(void);