summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-03-24 01:09:35 +0000
committerimp <imp@FreeBSD.org>2002-03-24 01:09:35 +0000
commit4398e87add0484e0415b9fbac83960d466fabd2c (patch)
treea65f23a5bca8e8e27636afadc13b5d1e3b630860 /games
parent4f1d815552cec1ff1b73eb3567d69553cb3c6403 (diff)
downloadFreeBSD-src-4398e87add0484e0415b9fbac83960d466fabd2c.zip
FreeBSD-src-4398e87add0484e0415b9fbac83960d466fabd2c.tar.gz
o remove __P
Diffstat (limited to 'games')
-rw-r--r--games/backgammon/common_source/fancy.c2
-rw-r--r--games/canfield/canfield/canfield.c92
-rw-r--r--games/canfield/cfscores/cfscores.c2
-rw-r--r--games/fortune/fortune/fortune.c64
-rw-r--r--games/fortune/strfile/strfile.c14
5 files changed, 87 insertions, 87 deletions
diff --git a/games/backgammon/common_source/fancy.c b/games/backgammon/common_source/fancy.c
index 7663a75..e4aad24 100644
--- a/games/backgammon/common_source/fancy.c
+++ b/games/backgammon/common_source/fancy.c
@@ -85,7 +85,7 @@ int oldw;
int realr;
int realc;
-int addbuf __P((int));
+int addbuf(int);
fboard () {
int i, j, l;
diff --git a/games/canfield/canfield/canfield.c b/games/canfield/canfield/canfield.c
index 1c64965..4b27028 100644
--- a/games/canfield/canfield/canfield.c
+++ b/games/canfield/canfield/canfield.c
@@ -199,52 +199,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 8fd93b2..de07283 100644
--- a/games/canfield/cfscores/cfscores.c
+++ b/games/canfield/cfscores/cfscores.c
@@ -65,7 +65,7 @@ struct betinfo {
int dbfd;
-void printuser __P((struct passwd *, int));
+void printuser(struct passwd *, int);
int
main(argc, argv)
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index 2cd7de7..ad95e53 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -128,44 +128,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_dir(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));
+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 7dfd9cf..5c62c0a 100644
--- a/games/fortune/strfile/strfile.c
+++ b/games/fortune/strfile/strfile.c
@@ -130,13 +130,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:
OpenPOWER on IntegriCloud