DragonFly BSD
DragonFly submit List (threaded) for 2003-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

src/games __P removal


From: Craig Dooley <craig@xxxxxxxxxx>
Date: Wed, 12 Nov 2003 12:17:34 -0500

I dont know if this is wanted since theres the freebsd-games port, but this 
removes all __P() uses from src/games

-Craig
-- 
Craig Dooley										craig@xxxxxxxxxx
Index: games/arithmetic/arithmetic.c
===================================================================
RCS file: /home/dcvs/src/games/arithmetic/arithmetic.c,v
retrieving revision 1.2
diff -u -r1.2 arithmetic.c
--- games/arithmetic/arithmetic.c	17 Jun 2003 04:25:22 -0000	1.2
+++ games/arithmetic/arithmetic.c	12 Nov 2003 17:14:55 -0000
@@ -85,13 +85,13 @@
 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,
Index: games/backgammon/common_source/fancy.c
===================================================================
RCS file: /home/dcvs/src/games/backgammon/common_source/fancy.c,v
retrieving revision 1.2
diff -u -r1.2 fancy.c
--- games/backgammon/common_source/fancy.c	17 Jun 2003 04:25:22 -0000	1.2
+++ games/backgammon/common_source/fancy.c	12 Nov 2003 17:14:55 -0000
@@ -81,7 +81,7 @@
 int	realr;
 int	realc;
 
-int	addbuf __P((int));
+int	addbuf (int);
 
 fboard ()  {
 	int	i, j, l;
Index: games/battlestar/com1.c
===================================================================
RCS file: /home/dcvs/src/games/battlestar/com1.c,v
retrieving revision 1.2
diff -u -r1.2 com1.c
--- games/battlestar/com1.c	17 Jun 2003 04:25:22 -0000	1.2
+++ games/battlestar/com1.c	12 Nov 2003 17:14:55 -0000
@@ -37,7 +37,7 @@
 
 #include "externs.h"
 
-void	 convert __P((int));
+void	 convert (int);
 
 int
 battlestar_move(thataway, token)
Index: games/battlestar/com6.c
===================================================================
RCS file: /home/dcvs/src/games/battlestar/com6.c,v
retrieving revision 1.2
diff -u -r1.2 com6.c
--- games/battlestar/com6.c	17 Jun 2003 04:25:22 -0000	1.2
+++ games/battlestar/com6.c	12 Nov 2003 17:14:55 -0000
@@ -39,7 +39,7 @@
 #include "externs.h"
 #include "pathnames.h"
 
-static void post __P((unsigned int ch));
+static void post (unsigned int ch);
 
 int
 launch()
Index: games/battlestar/externs.h
===================================================================
RCS file: /home/dcvs/src/games/battlestar/externs.h,v
retrieving revision 1.2
diff -u -r1.2 externs.h
--- games/battlestar/externs.h	17 Jun 2003 04:25:22 -0000	1.2
+++ games/battlestar/externs.h	12 Nov 2003 17:14:55 -0000
@@ -255,58 +255,58 @@
 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; 
Index: games/battlestar/fly.c
===================================================================
RCS file: /home/dcvs/src/games/battlestar/fly.c,v
retrieving revision 1.2
diff -u -r1.2 fly.c
--- games/battlestar/fly.c	17 Jun 2003 04:25:22 -0000	1.2
+++ games/battlestar/fly.c	12 Nov 2003 17:14:55 -0000
@@ -51,13 +51,13 @@
 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)
Index: games/battlestar/init.c
===================================================================
RCS file: /home/dcvs/src/games/battlestar/init.c,v
retrieving revision 1.2
diff -u -r1.2 init.c
--- games/battlestar/init.c	17 Jun 2003 04:25:22 -0000	1.2
+++ games/battlestar/init.c	12 Nov 2003 17:14:55 -0000
@@ -40,9 +40,9 @@
 #include <string.h>
 #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)
Index: games/battlestar/parse.c
===================================================================
RCS file: /home/dcvs/src/games/battlestar/parse.c,v
retrieving revision 1.2
diff -u -r1.2 parse.c
--- games/battlestar/parse.c	17 Jun 2003 04:25:23 -0000	1.2
+++ games/battlestar/parse.c	12 Nov 2003 17:14:55 -0000
@@ -37,9 +37,9 @@
 
 #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()
Index: games/bs/bs.c
===================================================================
RCS file: /home/dcvs/src/games/bs/bs.c,v
retrieving revision 1.3
diff -u -r1.3 bs.c
--- games/bs/bs.c	31 Aug 2003 21:32:09 -0000	1.3
+++ games/bs/bs.c	12 Nov 2003 17:14:55 -0000
@@ -142,9 +142,9 @@
 
 #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 */
Index: games/caesar/caesar.c
===================================================================
RCS file: /home/dcvs/src/games/caesar/caesar.c,v
retrieving revision 1.2
diff -u -r1.2 caesar.c
--- games/caesar/caesar.c	17 Jun 2003 04:25:23 -0000	1.2
+++ games/caesar/caesar.c	12 Nov 2003 17:14:55 -0000
@@ -70,7 +70,7 @@
 	2.62, 0.81, 1.88, 0.23,  2.07, 0.06,
 };
 
-void printit __P((char *));
+void printit (char *);
 
 int
 main(argc, argv)
Index: games/canfield/canfield/canfield.c
===================================================================
RCS file: /home/dcvs/src/games/canfield/canfield/canfield.c,v
retrieving revision 1.2
diff -u -r1.2 canfield.c
--- games/canfield/canfield/canfield.c	17 Jun 2003 04:25:23 -0000	1.2
+++ games/canfield/canfield/canfield.c	12 Nov 2003 17:14:55 -0000
@@ -190,52 +190,52 @@
 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
Index: games/canfield/cfscores/cfscores.c
===================================================================
RCS file: /home/dcvs/src/games/canfield/cfscores/cfscores.c,v
retrieving revision 1.2
diff -u -r1.2 cfscores.c
--- games/canfield/cfscores/cfscores.c	17 Jun 2003 04:25:23 -0000	1.2
+++ games/canfield/cfscores/cfscores.c	12 Nov 2003 17:14:55 -0000
@@ -56,7 +56,7 @@
 
 int dbfd;
 
-void printuser __P((struct passwd *, int));
+void printuser (struct passwd *, int);
 
 int
 main(argc, argv)
Index: games/cribbage/cribbage.h
===================================================================
RCS file: /home/dcvs/src/games/cribbage/cribbage.h,v
retrieving revision 1.1
diff -u -r1.1 cribbage.h
--- games/cribbage/cribbage.h	17 Jun 2003 02:49:22 -0000	1.1
+++ games/cribbage/cribbage.h	12 Nov 2003 17:14:55 -0000
@@ -59,54 +59,54 @@
 
 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);
Index: games/dm/dm.c
===================================================================
RCS file: /home/dcvs/src/games/dm/dm.c,v
retrieving revision 1.2
diff -u -r1.2 dm.c
--- games/dm/dm.c	17 Jun 2003 04:25:23 -0000	1.2
+++ games/dm/dm.c	12 Nov 2003 17:14:55 -0000
@@ -59,15 +59,15 @@
 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)
Index: games/fish/fish.c
===================================================================
RCS file: /home/dcvs/src/games/fish/fish.c,v
retrieving revision 1.2
diff -u -r1.2 fish.c
--- games/fish/fish.c	17 Jun 2003 04:25:23 -0000	1.2
+++ games/fish/fish.c	12 Nov 2003 17:14:55 -0000
@@ -68,21 +68,21 @@
 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)
Index: games/fortune/fortune/fortune.c
===================================================================
RCS file: /home/dcvs/src/games/fortune/fortune/fortune.c,v
retrieving revision 1.2
diff -u -r1.2 fortune.c
--- games/fortune/fortune/fortune.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/fortune/fortune/fortune.c	12 Nov 2003 17:15:47 -0000
@@ -119,44 +119,44 @@
 
 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
Index: games/fortune/strfile/strfile.c
===================================================================
RCS file: /home/dcvs/src/games/fortune/strfile/strfile.c,v
retrieving revision 1.2
diff -u -r1.2 strfile.c
--- games/fortune/strfile/strfile.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/fortune/strfile/strfile.c	12 Nov 2003 17:14:55 -0000
@@ -121,13 +121,13 @@
 
 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:
Index: games/hangman/hangman.h
===================================================================
RCS file: /home/dcvs/src/games/hangman/hangman.h,v
retrieving revision 1.2
diff -u -r1.2 hangman.h
--- games/hangman/hangman.h	17 Jun 2003 04:25:24 -0000	1.2
+++ games/hangman/hangman.h	12 Nov 2003 17:14:56 -0000
@@ -81,13 +81,13 @@
 
 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);
Index: games/mille/end.c
===================================================================
RCS file: /home/dcvs/src/games/mille/end.c,v
retrieving revision 1.2
diff -u -r1.2 end.c
--- games/mille/end.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/mille/end.c	12 Nov 2003 17:14:56 -0000
@@ -42,8 +42,8 @@
  */
 
 #ifndef EXTRAP
-void extrapolate __P((PLAY *));
-void undoex __P((void));
+void extrapolate (PLAY *);
+void undoex (void);
 #endif
 
 /*
Index: games/mille/mille.c
===================================================================
RCS file: /home/dcvs/src/games/mille/mille.c,v
retrieving revision 1.2
diff -u -r1.2 mille.c
--- games/mille/mille.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/mille/mille.c	12 Nov 2003 17:14:56 -0000
@@ -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)
Index: games/mille/mille.h
===================================================================
RCS file: /home/dcvs/src/games/mille/mille.h,v
retrieving revision 1.2
diff -u -r1.2 mille.h
--- games/mille/mille.h	17 Jun 2003 04:25:24 -0000	1.2
+++ games/mille/mille.h	12 Nov 2003 17:14:56 -0000
@@ -233,37 +233,37 @@
  * 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
Index: games/mille/move.c
===================================================================
RCS file: /home/dcvs/src/games/mille/move.c,v
retrieving revision 1.2
diff -u -r1.2 move.c
--- games/mille/move.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/mille/move.c	12 Nov 2003 17:14:56 -0000
@@ -56,10 +56,10 @@
 		"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()
Index: games/mille/print.c
===================================================================
RCS file: /home/dcvs/src/games/mille/print.c,v
retrieving revision 1.2
diff -u -r1.2 print.c
--- games/mille/print.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/mille/print.c	12 Nov 2003 17:14:56 -0000
@@ -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() {
Index: games/number/number.c
===================================================================
RCS file: /home/dcvs/src/games/number/number.c,v
retrieving revision 1.2
diff -u -r1.2 number.c
--- games/number/number.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/number/number.c	12 Nov 2003 17:14:56 -0000
@@ -69,12 +69,12 @@
 	"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;
 
Index: games/phantasia/misc.c
===================================================================
RCS file: /home/dcvs/src/games/phantasia/misc.c,v
retrieving revision 1.2
diff -u -r1.2 misc.c
--- games/phantasia/misc.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/phantasia/misc.c	12 Nov 2003 17:14:56 -0000
@@ -1445,7 +1445,7 @@
 error(whichfile)
 	char	*whichfile;
 {
-	int	(*funcp) __P((const char *, ...));
+	int	(*funcp) (const char *, ...);
 
     if (Windows)
 	{
Index: games/pig/pig.c
RCS file: /home/dcvs/src/games/pig/pig.c,v
retrieving revision 1.2
diff -u -r1.2 pig.c
--- games/pig/pig.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/pig/pig.c	12 Nov 2003 17:14:56 -0000
@@ -44,8 +44,8 @@
 #include <string.h>
 #include <unistd.h>
 
-void pigout __P((char *, int));
-void usage __P((void));
+void pigout (char *, int);
+void usage (void);
 
 int
 main(argc, argv)
Index: games/pom/pom.c
===================================================================
RCS file: /home/dcvs/src/games/pom/pom.c,v
retrieving revision 1.2
diff -u -r1.2 pom.c
--- games/pom/pom.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/pom/pom.c	12 Nov 2003 17:14:56 -0000
@@ -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()
Index: games/quiz/quiz.c
===================================================================
RCS file: /home/dcvs/src/games/quiz/quiz.c,v
retrieving revision 1.2
diff -u -r1.2 quiz.c
--- games/quiz/quiz.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/quiz/quiz.c	12 Nov 2003 17:14:56 -0000
@@ -57,16 +57,16 @@
 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)
Index: games/quiz/quiz.h
===================================================================
RCS file: /home/dcvs/src/games/quiz/quiz.h,v
retrieving revision 1.1
diff -u -r1.1 quiz.h
--- games/quiz/quiz.h	17 Jun 2003 02:49:30 -0000	1.1
+++ games/quiz/quiz.h	12 Nov 2003 17:14:56 -0000
@@ -56,6 +56,6 @@
 
 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 *);
Index: games/quiz/rxp.c
===================================================================
RCS file: /home/dcvs/src/games/quiz/rxp.c,v
retrieving revision 1.2
diff -u -r1.2 rxp.c
--- games/quiz/rxp.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/quiz/rxp.c	12 Nov 2003 17:14:56 -0000
@@ -78,9 +78,9 @@
 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)
Index: games/rain/rain.c
===================================================================
RCS file: /home/dcvs/src/games/rain/rain.c,v
retrieving revision 1.2
diff -u -r1.2 rain.c
--- games/rain/rain.c	17 Jun 2003 04:25:24 -0000	1.2
+++ games/rain/rain.c	12 Nov 2003 17:14:56 -0000
@@ -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)
Index: games/worm/worm.c
===================================================================
RCS file: /home/dcvs/src/games/worm/worm.c,v
retrieving revision 1.2
diff -u -r1.2 worm.c
--- games/worm/worm.c	17 Jun 2003 04:25:25 -0000	1.2
+++ games/worm/worm.c	12 Nov 2003 17:14:57 -0000
@@ -76,17 +76,17 @@
 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)
Index: games/worms/worms.c
===================================================================
RCS file: /home/dcvs/src/games/worms/worms.c,v
retrieving revision 1.2
diff -u -r1.2 worms.c
--- games/worms/worms.c	17 Jun 2003 04:25:25 -0000	1.2
+++ games/worms/worms.c	12 Nov 2003 17:14:57 -0000
@@ -170,7 +170,7 @@
 } *worm;
 
 volatile sig_atomic_t sig_caught = 0;
-void	 onsig __P((int));
+void	 onsig (int);
 void	nomem(void);
 
 int
Index: games/wump/wump.c
===================================================================
RCS file: /home/dcvs/src/games/wump/wump.c,v
retrieving revision 1.2
diff -u -r1.2 wump.c
--- games/wump/wump.c	17 Jun 2003 04:25:25 -0000	1.2
+++ games/wump/wump.c	12 Nov 2003 17:14:57 -0000
@@ -107,20 +107,20 @@
 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);


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