diff options
author | imp <imp@FreeBSD.org> | 2002-02-18 05:15:19 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-02-18 05:15:19 +0000 |
commit | 24cd0a3c91f27cb3589ccd980187ccc8c7c51b6d (patch) | |
tree | 275284ba202a3acb4c5d5041be389eba1a666e3b /games/mille | |
parent | d533053fe68906076e15c9a57531ef155a7d4283 (diff) | |
download | FreeBSD-src-24cd0a3c91f27cb3589ccd980187ccc8c7c51b6d.zip FreeBSD-src-24cd0a3c91f27cb3589ccd980187ccc8c7c51b6d.tar.gz |
Remove __P
Remove __STDC__ (which means we now use stdarg rather than vararg)
Remove register
Remove main prototype
Diffstat (limited to 'games/mille')
-rw-r--r-- | games/mille/end.c | 4 | ||||
-rw-r--r-- | games/mille/mille.c | 2 | ||||
-rw-r--r-- | games/mille/mille.h | 60 | ||||
-rw-r--r-- | games/mille/move.c | 8 | ||||
-rw-r--r-- | games/mille/print.c | 4 |
5 files changed, 39 insertions, 39 deletions
diff --git a/games/mille/end.c b/games/mille/end.c index c8d736c..ff35779 100644 --- a/games/mille/end.c +++ b/games/mille/end.c @@ -46,8 +46,8 @@ static const char rcsid[] = */ #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 13d35c1..e2f3255 100644 --- a/games/mille/mille.c +++ b/games/mille/mille.c @@ -56,7 +56,7 @@ static const char rcsid[] = * @(#)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 2f94e41..f99cf45 100644 --- a/games/mille/mille.h +++ b/games/mille/mille.h @@ -232,37 +232,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 b67acfd..9ae7e3d 100644 --- a/games/mille/move.c +++ b/games/mille/move.c @@ -60,10 +60,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 a373168..488fbbb 100644 --- a/games/mille/print.c +++ b/games/mille/print.c @@ -48,8 +48,8 @@ static const char rcsid[] = # 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() { |