diff options
114 files changed, 2349 insertions, 2349 deletions
diff --git a/adventure/extern.h b/adventure/extern.h index 85058814..b9950b59 100644 --- a/adventure/extern.h +++ b/adventure/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.9 1998/09/13 15:21:37 hubertf Exp $ */ +/* $NetBSD: extern.h,v 1.10 2004/01/27 20:30:28 jsm Exp $ */ /* * Copyright (c) 1997 Christos Zoulas. All rights reserved. @@ -32,99 +32,99 @@ #include <string.h> /* crc.c */ -void crc_start __P((void)); -unsigned long crc __P((const char *, int)); +void crc_start(void); +unsigned long crc(const char *, int); /* done.c */ -int score __P((void)); -void done __P((int)) __attribute__((__noreturn__)); -void die __P((int)); +int score(void); +void done(int) __attribute__((__noreturn__)); +void die(int); /* init.c */ -void init __P((void)); -char *decr __P((int, int, int, int, int)); -void linkdata __P((void)); -void trapdel __P((int)); -void startup __P((void)); +void init(void); +char *decr(int, int, int, int, int); +void linkdata(void); +void trapdel(int); +void startup(void); /* io.c */ -void getin __P((char **, char **)); -int yes __P((int, int, int)); -int yesm __P((int, int, int)); -int next __P((void)); -void rdata __P((void)); -int rnum __P((void)); -void rdesc __P((int)); -void rtrav __P((void)); +void getin(char **, char **); +int yes(int, int, int); +int yesm(int, int, int); +int next(void); +void rdata(void); +int rnum(void); +void rdesc(int); +void rtrav(void); #ifdef DEBUG -void twrite __P((int)); +void twrite(int); #endif -void rvoc __P((void)); -void rlocs __P((void)); -void rdflt __P((void)); -void rliq __P((void)); -void rhints __P((void)); -void rspeak __P((int)); -void mspeak __P((int)); +void rvoc(void); +void rlocs(void); +void rdflt(void); +void rliq(void); +void rhints(void); +void rspeak(int); +void mspeak(int); struct text; -void speak __P((const struct text *)); -void pspeak __P((int, int)); +void speak(const struct text *); +void pspeak(int, int); /* save.c */ -int save __P((const char *)); -int restore __P((const char *)); +int save(const char *); +int restore(const char *); /* subr.c */ -int toting __P((int)); -int here __P((int)); -int at __P((int)); -int liq2 __P((int)); -int liq __P((void)); -int liqloc __P((int)); -int bitset __P((int, int)); -int forced __P((int)); -int dark __P((void)); -int pct __P((int)); -int fdwarf __P((void)); -int march __P((void)); -int mback __P((void)); -int specials __P((void)); -int trbridge __P((void)); -void badmove __P((void)); -void bug __P((int)) __attribute__((__noreturn__)); -void checkhints __P((void)); -int trsay __P((void)); -int trtake __P((void)); -int dropper __P((void)); -int trdrop __P((void)); -int tropen __P((void)); -int trkill __P((void)); -int trtoss __P((void)); -int trfeed __P((void)); -int trfill __P((void)); -void closing __P((void)); -void caveclose __P((void)); +int toting(int); +int here(int); +int at(int); +int liq2(int); +int liq(void); +int liqloc(int); +int bitset(int, int); +int forced(int); +int dark(void); +int pct(int); +int fdwarf(void); +int march(void); +int mback(void); +int specials(void); +int trbridge(void); +void badmove(void); +void bug(int) __attribute__((__noreturn__)); +void checkhints(void); +int trsay(void); +int trtake(void); +int dropper(void); +int trdrop(void); +int tropen(void); +int trkill(void); +int trtoss(void); +int trfeed(void); +int trfill(void); +void closing(void); +void caveclose(void); /* vocab.c */ -void dstroy __P((int)); -void juggle __P((int)); -void move __P((int, int)); -int put __P((int, int, int)); -void carry __P((int, int)); -void drop __P((int, int)); -int vocab __P((const char *, int, int)); +void dstroy(int); +void juggle(int); +void move(int, int); +int put(int, int, int); +void carry(int, int); +void drop(int, int); +int vocab(const char *, int, int); /* These three used to be functions in vocab.c */ #define copystr(src, dest) strcpy((dest), (src)) #define weq(str1, str2) (!strncmp((str1), (str2), 5)) #define length(str) (strlen((str)) + 1) -void prht __P((void)); +void prht(void); /* wizard.c */ -void datime __P((int *, int *)); -void poof __P((void)); -int Start __P((void)); -int wizard __P((void)); -void ciao __P((void)); -int ran __P((int)); +void datime(int *, int *); +void poof(void); +int Start(void); +int wizard(void); +void ciao(void); +int ran(int); diff --git a/adventure/main.c b/adventure/main.c index 9970a9df..613a2c77 100644 --- a/adventure/main.c +++ b/adventure/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.17 2003/08/07 09:36:51 agc Exp $ */ +/* $NetBSD: main.c,v 1.18 2004/01/27 20:30:28 jsm Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/2/93"; #else -__RCSID("$NetBSD: main.c,v 1.17 2003/08/07 09:36:51 agc Exp $"); +__RCSID("$NetBSD: main.c,v 1.18 2004/01/27 20:30:28 jsm Exp $"); #endif #endif /* not lint */ @@ -59,7 +59,7 @@ __RCSID("$NetBSD: main.c,v 1.17 2003/08/07 09:36:51 agc Exp $"); #include "hdr.h" #include "extern.h" -int main __P((int, char **)); +int main(int, char **); int main(argc, argv) diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c index bac866df..29094c9d 100644 --- a/arithmetic/arithmetic.c +++ b/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.19 2003/08/07 09:36:52 agc Exp $ */ +/* $NetBSD: arithmetic.c,v 1.20 2004/01/27 20:30:28 jsm Exp $ */ /* * Copyright (c) 1989, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: arithmetic.c,v 1.19 2003/08/07 09:36:52 agc Exp $"); +__RCSID("$NetBSD: arithmetic.c,v 1.20 2004/01/27 20:30:28 jsm Exp $"); #endif #endif /* not lint */ @@ -84,14 +84,14 @@ __RCSID("$NetBSD: arithmetic.c,v 1.19 2003/08/07 09:36:52 agc Exp $"); #include <time.h> #include <unistd.h> -int getrandom __P((int, int, int)); -void intr __P((int)) __attribute__((__noreturn__)); -int main __P((int, char *[])); -int opnum __P((int)); -void penalise __P((int, int, int)); -int problem __P((void)); -void showstats __P((int)); -void usage __P((void)) __attribute__((__noreturn__)); +int getrandom(int, int, int); +void intr(int) __attribute__((__noreturn__)); +int main(int, char *[]); +int opnum(int); +void penalise(int, int, int); +int problem(void); +void showstats(int); +void usage(void) __attribute__((__noreturn__)); const char keylist[] = "+-x/"; const char defaultkeys[] = "+-"; diff --git a/atc/extern.h b/atc/extern.h index 1b0fa414..c2706d2c 100644 --- a/atc/extern.h +++ b/atc/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.10 2003/08/07 09:36:53 agc Exp $ */ +/* $NetBSD: extern.h,v 1.11 2004/01/27 20:30:28 jsm Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -58,81 +58,81 @@ extern struct termios tty_start, tty_new; extern DISPLACEMENT displacement[MAXDIR]; -int addplane __P((void)); -void append __P((LIST *, PLANE *)); -void check_adir __P((int, int, int)); -void check_edge __P((int, int)); -void check_edir __P((int, int, int)); -void check_line __P((int, int, int, int)); -void check_linepoint __P((int, int)); -void check_point __P((int, int)); -int checkdefs __P((void)); -int compar __P((const void *, const void *)); -void delete __P((LIST *, PLANE *)); -int dir_deg __P((int)); -int dir_no __P((char)); -void done_screen __P((void)); -void draw_all __P((void)); -void draw_line __P((WINDOW *, int, int, int, int, const char *)); -void erase_all __P((void)); -int getAChar __P((void)); -int getcommand __P((void)); -int gettoken __P((void)); -void init_gr __P((void)); -void ioaddstr __P((int, const char *)); -void ioclrtobot __P((void)); -void ioclrtoeol __P((int)); -void ioerror __P((int, int, const char *)); -void iomove __P((int)); -int list_games __P((void)); -int log_score __P((int)); -void log_score_quit __P((int)) __attribute__((__noreturn__)); -void loser __P((const PLANE *, const char *)) __attribute__((__noreturn__)); -int main __P((int, char *[])); -char name __P((const PLANE *)); -int next_plane __P((void)); -void noise __P((void)); -int number __P((char)); -void open_score_file __P((void)); -void planewin __P((void)); -int pop __P((void)); -void push __P((int, int)); -void quit __P((int)); -int read_file __P((const char *)); -void redraw __P((void)); -void rezero __P((void)); -void setup_screen __P((const C_SCREEN *)); -int too_close __P((const PLANE *p1, const PLANE *p2, int)); -void update __P((int)); -int yyerror __P((const char *)); -int yylex __P((void)); +int addplane(void); +void append(LIST *, PLANE *); +void check_adir(int, int, int); +void check_edge(int, int); +void check_edir(int, int, int); +void check_line(int, int, int, int); +void check_linepoint(int, int); +void check_point(int, int); +int checkdefs(void); +int compar(const void *, const void *); +void delete(LIST *, PLANE *); +int dir_deg(int); +int dir_no(char); +void done_screen(void); +void draw_all(void); +void draw_line(WINDOW *, int, int, int, int, const char *); +void erase_all(void); +int getAChar(void); +int getcommand(void); +int gettoken(void); +void init_gr(void); +void ioaddstr(int, const char *); +void ioclrtobot(void); +void ioclrtoeol(int); +void ioerror(int, int, const char *); +void iomove(int); +int list_games(void); +int log_score(int); +void log_score_quit(int) __attribute__((__noreturn__)); +void loser(const PLANE *, const char *) __attribute__((__noreturn__)); +int main(int, char *[]); +char name(const PLANE *); +int next_plane(void); +void noise(void); +int number(char); +void open_score_file(void); +void planewin(void); +int pop(void); +void push(int, int); +void quit(int); +int read_file(const char *); +void redraw(void); +void rezero(void); +void setup_screen(const C_SCREEN *); +int too_close(const PLANE *p1, const PLANE *p2, int); +void update(int); +int yyerror(const char *); +int yylex(void); #ifndef YYEMPTY -int yyparse __P((void)); +int yyparse(void); #endif -const char *Left __P((char)); -const char *Right __P((char)); -const char *airport __P((char)); -const char *beacon __P((char)); -const char *benum __P((char)); -const char *circle __P((char)); -const char *climb __P((char)); -const char *command __P((const PLANE *)); -const char *default_game __P((void)); -const char *delayb __P((char)); -const char *descend __P((char)); -const char *ex_it __P((char)); -PLANE *findplane __P((int)); -const char *ignore __P((char)); -const char *left __P((char)); -const char *mark __P((char)); -PLANE *newplane __P((void)); -const char *okay_game __P((const char *)); -const char *rel_dir __P((char)); -const char *right __P((char)); -const char *setalt __P((char)); -const char *setplane __P((char)); -const char *setrelalt __P((char)); -const char *timestr __P((int)); -const char *to_dir __P((char)); -const char *turn __P((char)); -const char *unmark __P((char)); +const char *Left(char); +const char *Right(char); +const char *airport(char); +const char *beacon(char); +const char *benum(char); +const char *circle(char); +const char *climb(char); +const char *command(const PLANE *); +const char *default_game(void); +const char *delayb(char); +const char *descend(char); +const char *ex_it(char); +PLANE *findplane(int); +const char *ignore(char); +const char *left(char); +const char *mark(char); +PLANE *newplane(void); +const char *okay_game(const char *); +const char *rel_dir(char); +const char *right(char); +const char *setalt(char); +const char *setplane(char); +const char *setrelalt(char); +const char *timestr(int); +const char *to_dir(char); +const char *turn(char); +const char *unmark(char); diff --git a/atc/input.c b/atc/input.c index 232e81f6..d628553f 100644 --- a/atc/input.c +++ b/atc/input.c @@ -1,4 +1,4 @@ -/* $NetBSD: input.c,v 1.15 2003/08/07 09:36:54 agc Exp $ */ +/* $NetBSD: input.c,v 1.16 2004/01/27 20:30:28 jsm Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,7 +46,7 @@ #if 0 static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: input.c,v 1.15 2003/08/07 09:36:54 agc Exp $"); +__RCSID("$NetBSD: input.c,v 1.16 2004/01/27 20:30:28 jsm Exp $"); #endif #endif /* not lint */ @@ -67,7 +67,7 @@ typedef struct { int token; int to_state; const char *str; - const char *(*func) __P((char)); + const char *(*func)(char); } RULE; typedef struct { @@ -229,7 +229,7 @@ int getcommand() { int c, i, done; - const char *s, *(*func) __P((char)); + const char *s, *(*func)(char); PLANE *pp; rezero(); diff --git a/backgammon/backgammon/backlocal.h b/backgammon/backgammon/backlocal.h index 792d796d..f3b49a28 100644 --- a/backgammon/backgammon/backlocal.h +++ b/backgammon/backgammon/backlocal.h @@ -1,4 +1,4 @@ -/* $NetBSD: backlocal.h,v 1.1 1997/10/10 08:59:35 lukem Exp $ */ +/* $NetBSD: backlocal.h,v 1.2 2004/01/27 20:30:28 jsm Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -36,13 +36,13 @@ * POSSIBILITY OF SUCH DAMAGE. */ -void dble __P((void)); -int dblgood __P((void)); -int eval __P((void)); -int freemen __P((int)); -void movcmp __P((void)); -void move __P((int)); -int movegood __P((void)); -void pickmove __P((void)); -int trapped __P((int, int)); -void trymove __P((int, int)); +void dble(void); +int dblgood(void); +int eval(void); +int freemen(int); +void movcmp(void); +void move(int); +int movegood(void); +void pickmove(void); +int trapped(int, int); +void trymove(int, int); diff --git a/backgammon/backgammon/move.c b/backgammon/backgammon/move.c index 47b49f37..81cc6450 100644 --- a/backgammon/backgammon/move.c +++ b/backgammon/backgammon/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.7 2003/08/07 09:36:56 agc Exp $ */ +/* $NetBSD: move.c,v 1.8 2004/01/27 20:30:28 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: move.c,v 1.7 2003/08/07 09:36:56 agc Exp $"); +__RCSID("$NetBSD: move.c,v 1.8 2004/01/27 20:30:28 jsm Exp $"); #endif #endif /* not lint */ @@ -83,13 +83,13 @@ static int cg[5]; /* candidate finish position */ static int race; /* game reduced to a race */ -static int bcomp __P((struct BOARD *, struct BOARD *)); -static struct BOARD *bsave __P((void)); -static void binsert __P((struct BOARD *)); -static void boardcopy __P((struct BOARD *)); -static void makefree __P((struct BOARD *)); -static void mvcheck __P((struct BOARD *, struct BOARD *)); -static struct BOARD *nextfree __P((void)); +static int bcomp(struct BOARD *, struct BOARD *); +static struct BOARD *bsave(void); +static void binsert(struct BOARD *); +static void boardcopy(struct BOARD *); +static void makefree(struct BOARD *); +static void mvcheck(struct BOARD *, struct BOARD *); +static struct BOARD *nextfree(void); void diff --git a/backgammon/common_source/back.h b/backgammon/common_source/back.h index d974d7e6..468d0e0b 100644 --- a/backgammon/common_source/back.h +++ b/backgammon/common_source/back.h @@ -1,4 +1,4 @@ -/* $NetBSD: back.h,v 1.13 2003/08/07 09:36:56 agc Exp $ */ +/* $NetBSD: back.h,v 1.14 2004/01/27 20:30:28 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -129,57 +129,57 @@ extern int curc; /* column position of cursor */ extern int begscr; /* 'beginning' of screen (not including board) */ -int addbuf __P((int)); -void backone __P((int)); -void bsect __P((int, int, int, int)); -void buflush __P((void)); -int canhit __P((int, int)); -int checkd __P((int)); -int checkmove __P((int)); -void clear __P((void)); -void clend __P((void)); -void cline __P((void)); -int count __P((void)); -void curmove __P((int, int)); -int dotable __P((char, int)); -void errexit __P((const char *)) __attribute__((__noreturn__)); -void fancyc __P((int)); -void fboard __P((void)); -void fixcol __P((int, int, int, int, int)); -void fixpos __P((int, int, int, int, int)); -void fixtty __P((struct termios *)); -void getarg __P((char ***)); -int getcaps __P((const char *)); -void getmove __P((void)); -void getout __P((int)) __attribute__((__noreturn__)); -void gwrite __P((void)); -void init __P((void)); -int last __P((void)); -int main __P((int, char *[])); -int makmove __P((int)); -int movallow __P((void)); -void movback __P((int)); -void moverr __P((int)); -int movokay __P((int)); -void newline __P((void)); -void newpos __P((void)); -void nexturn __P((void)); -void norec __P((const char *)) __attribute__((__noreturn__)); -void odds __P((int, int, int)); -void proll __P((void)); -int quit __P((void)); -int readc __P((void)); -void recover __P((const char *)); -void refresh __P((void)); -void roll __P((void)); -int rsetbrd __P((void)); -void save __P((int)); -int text __P((const char *const *)); -void wrboard __P((void)); -void wrbsub __P((void)); -void wrhit __P((int)); -void wrint __P((int)); -void writec __P((char)); -void writel __P((const char *)); -void wrscore __P((void)); -int yorn __P((char)); +int addbuf(int); +void backone(int); +void bsect(int, int, int, int); +void buflush(void); +int canhit(int, int); +int checkd(int); +int checkmove(int); +void clear(void); +void clend(void); +void cline(void); +int count(void); +void curmove(int, int); +int dotable(char, int); +void errexit(const char *) __attribute__((__noreturn__)); +void fancyc(int); +void fboard(void); +void fixcol(int, int, int, int, int); +void fixpos(int, int, int, int, int); +void fixtty(struct termios *); +void getarg(char ***); +int getcaps(const char *); +void getmove(void); +void getout(int) __attribute__((__noreturn__)); +void gwrite(void); +void init(void); +int last(void); +int main(int, char *[]); +int makmove(int); +int movallow(void); +void movback(int); +void moverr(int); +int movokay(int); +void newline(void); +void newpos(void); +void nexturn(void); +void norec(const char *) __attribute__((__noreturn__)); +void odds(int, int, int); +void proll(void); +int quit(void); +int readc(void); +void recover(const char *); +void refresh(void); +void roll(void); +int rsetbrd(void); +void save(int); +int text(const char *const *); +void wrboard(void); +void wrbsub(void); +void wrhit(int); +void wrint(int); +void writec(char); +void writel(const char *); +void wrscore(void); +int yorn(char); diff --git a/backgammon/teachgammon/tutor.h b/backgammon/teachgammon/tutor.h index d0544bf4..6fcceffd 100644 --- a/backgammon/teachgammon/tutor.h +++ b/backgammon/teachgammon/tutor.h @@ -1,4 +1,4 @@ -/* $NetBSD: tutor.h,v 1.7 2003/08/07 09:36:59 agc Exp $ */ +/* $NetBSD: tutor.h,v 1.8 2004/01/27 20:30:28 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -62,7 +62,7 @@ extern const char *const stragy[]; extern const struct situatn test[]; -int brdeq __P((const int *, const int *)); -void clrest __P((void)); -void leave __P((void)) __attribute__((__noreturn__)); -void tutor __P((void)) __attribute__((__noreturn__)); +int brdeq(const int *, const int *); +void clrest(void); +void leave(void) __attribute__((__noreturn__)); +void tutor(void) __attribute__((__noreturn__)); diff --git a/banner/banner.c b/banner/banner.c index 7729e4a2..31638235 100644 --- a/banner/banner.c +++ b/banner/banner.c @@ -1,4 +1,4 @@ -/* $NetBSD: banner.c,v 1.11 2003/08/07 09:36:59 agc Exp $ */ +/* $NetBSD: banner.c,v 1.12 2004/01/27 20:30:28 jsm Exp $ */ /* * Copyright (c) 1980, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)banner.c 8.4 (Berkeley) 4/29/95"; #else -__RCSID("$NetBSD: banner.c,v 1.11 2003/08/07 09:36:59 agc Exp $"); +__RCSID("$NetBSD: banner.c,v 1.12 2004/01/27 20:30:28 jsm Exp $"); #endif #endif /* not lint */ @@ -1026,7 +1026,7 @@ int debug, i, j, linen, max, nchars, pc, term, trace, x, y; int width = DWIDTH; /* -w option: scrunch letters to 80 columns */ -int main __P((int, char *[])); +int main(int, char *[]); int main(argc, argv) 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]; @@ -1,4 +1,4 @@ -/* $NetBSD: bcd.c,v 1.12 2003/08/07 09:37:04 agc Exp $ */ +/* $NetBSD: bcd.c,v 1.13 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1989, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)bcd.c 8.2 (Berkeley) 3/20/94"; #else -__RCSID("$NetBSD: bcd.c,v 1.12 2003/08/07 09:37:04 agc Exp $"); +__RCSID("$NetBSD: bcd.c,v 1.13 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -124,8 +124,8 @@ const u_short holes[256] = { */ #define bit(w,i) ((w)&(1<<(i))) -int main __P((int, char *[])); -void printcard __P((char *)); +int main(int, char *[]); +void printcard(char *); int main(argc, argv) diff --git a/boggle/boggle/bog.c b/boggle/boggle/bog.c index d1231a64..f0012ca8 100644 --- a/boggle/boggle/bog.c +++ b/boggle/boggle/bog.c @@ -1,4 +1,4 @@ -/* $NetBSD: bog.c,v 1.17 2003/08/07 09:37:05 agc Exp $ */ +/* $NetBSD: bog.c,v 1.18 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\n\ #if 0 static char sccsid[] = "@(#)bog.c 8.2 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: bog.c,v 1.17 2003/08/07 09:37:05 agc Exp $"); +__RCSID("$NetBSD: bog.c,v 1.18 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -57,8 +57,8 @@ __RCSID("$NetBSD: bog.c,v 1.17 2003/08/07 09:37:05 agc Exp $"); #include "bog.h" #include "extern.h" -static int compar __P((const void *, const void *)); - int main __P((int, char *[])); +static int compar(const void *, const void *); + int main(int, char *[]); struct dictindex dictindex[26]; diff --git a/boggle/boggle/extern.h b/boggle/boggle/extern.h index fa2a0ab9..ba365615 100644 --- a/boggle/boggle/extern.h +++ b/boggle/boggle/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.7 2003/08/07 09:37:05 agc Exp $ */ +/* $NetBSD: extern.h,v 1.8 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1993 @@ -33,39 +33,39 @@ #include <time.h> -void addword __P((const char *)); -void badword __P((void)); -char *batchword __P((FILE *)); -void checkdict __P((void)); -int checkword __P((const char *, int, int *)); -void cleanup __P((void)); -void delay __P((int)); -long dictseek __P((FILE *, long, int)); -void findword __P((void)); -void flushin __P((FILE *)); -char *getline __P((char *)); -void getword __P((char *)); -int help __P((void)); -int inputch __P((void)); -int loaddict __P((FILE *)); -int loadindex __P((const char *)); -void newgame __P((const char *)); -char *nextword __P((FILE *)); -FILE *opendict __P((const char *)); -void playgame __P((void)); -void prompt __P((const char *)); -void prtable __P((const char *const [], - int, int, int, void (*)(const char *const [], int), int (*)(const char *const [], int))); -void putstr __P((const char *)); -void redraw __P((void)); -void results __P((void)); -int setup __P((int, time_t)); -void showboard __P((const char *)); -void showstr __P((const char *, int)); -void showword __P((int)); -void starttime __P((void)); -void startwords __P((void)); -void stoptime __P((void)); -int timerch __P((void)); -void usage __P((void)) __attribute__((__noreturn__)); -int validword __P((const char *)); +void addword(const char *); +void badword(void); +char *batchword(FILE *); +void checkdict(void); +int checkword(const char *, int, int *); +void cleanup(void); +void delay(int); +long dictseek(FILE *, long, int); +void findword(void); +void flushin(FILE *); +char *getline(char *); +void getword(char *); +int help(void); +int inputch(void); +int loaddict(FILE *); +int loadindex(const char *); +void newgame(const char *); +char *nextword(FILE *); +FILE *opendict(const char *); +void playgame(void); +void prompt(const char *); +void prtable(const char *const [], + int, int, int, void (*)(const char *const [], int), int (*)(const char *const [], int)); +void putstr(const char *); +void redraw(void); +void results(void); +int setup(int, time_t); +void showboard(const char *); +void showstr(const char *, int); +void showword(int); +void starttime(void); +void startwords(void); +void stoptime(void); +int timerch(void); +void usage(void) __attribute__((__noreturn__)); +int validword(const char *); diff --git a/boggle/boggle/mach.c b/boggle/boggle/mach.c index e6202dd6..b6b76401 100644 --- a/boggle/boggle/mach.c +++ b/boggle/boggle/mach.c @@ -1,4 +1,4 @@ -/* $NetBSD: mach.c,v 1.12 2003/08/07 09:37:05 agc Exp $ */ +/* $NetBSD: mach.c,v 1.13 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)mach.c 8.1 (Berkeley) 6/11/93"; #else -__RCSID("$NetBSD: mach.c,v 1.12 2003/08/07 09:37:05 agc Exp $"); +__RCSID("$NetBSD: mach.c,v 1.13 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -73,14 +73,14 @@ extern int usedbits, wordpath[]; extern time_t start_t; extern int debug; -static void cont_catcher __P((int)); -static int prwidth __P((const char *const [], int)); -static void prword __P((const char *const [], int)); -static void stop_catcher __P((int)); -static void tty_cleanup __P((void)); -static int tty_setup __P((void)); -static void tty_showboard __P((const char *)); -static void winch_catcher __P((int)); +static void cont_catcher(int); +static int prwidth(const char *const [], int); +static void prword(const char *const [], int); +static void stop_catcher(int); +static void tty_cleanup(void); +static int tty_setup(void); +static void tty_showboard(const char *); +static void winch_catcher(int); /* * Do system dependent initialization diff --git a/boggle/boggle/prtable.c b/boggle/boggle/prtable.c index 6c3d507a..2326f875 100644 --- a/boggle/boggle/prtable.c +++ b/boggle/boggle/prtable.c @@ -1,4 +1,4 @@ -/* $NetBSD: prtable.c,v 1.7 2003/08/07 09:37:05 agc Exp $ */ +/* $NetBSD: prtable.c,v 1.8 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1993 @@ -36,7 +36,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: prtable.c,v 1.7 2003/08/07 09:37:05 agc Exp $"); +__RCSID("$NetBSD: prtable.c,v 1.8 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ #include <curses.h> @@ -45,7 +45,7 @@ __RCSID("$NetBSD: prtable.c,v 1.7 2003/08/07 09:37:05 agc Exp $"); #define NCOLS 5 -static int get_maxlen __P((const char *const [], int, int (*)(const char *const *, int))); +static int get_maxlen(const char *const [], int, int (*)(const char *const *, int)); /* * Routine to print a table @@ -66,8 +66,8 @@ void prtable(base, num, d_cols, width, prentry, length) const char *const base[]; int num, d_cols, width; - void (*prentry) __P((const char *const [], int)); - int (*length) __P((const char *const [], int)); + void (*prentry)(const char *const [], int); + int (*length)(const char *const [], int); { int c, j; int a, b, cols, loc, maxlen, nrows, z; @@ -117,7 +117,7 @@ static int get_maxlen(base, num, length) const char *const base[]; int num; - int (*length) __P((const char *const *, int)); + int (*length)(const char *const *, int); { int i, len, max; diff --git a/boggle/boggle/timer.c b/boggle/boggle/timer.c index 0d015fac..569d9aee 100644 --- a/boggle/boggle/timer.c +++ b/boggle/boggle/timer.c @@ -1,4 +1,4 @@ -/* $NetBSD: timer.c,v 1.8 2003/08/07 09:37:06 agc Exp $ */ +/* $NetBSD: timer.c,v 1.9 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)timer.c 8.2 (Berkeley) 2/22/94"; #else -__RCSID("$NetBSD: timer.c,v 1.8 2003/08/07 09:37:06 agc Exp $"); +__RCSID("$NetBSD: timer.c,v 1.9 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -54,7 +54,7 @@ __RCSID("$NetBSD: timer.c,v 1.8 2003/08/07 09:37:06 agc Exp $"); #include "bog.h" #include "extern.h" -static int waitch __P((int)); +static int waitch(int); extern int tlimit; extern time_t start_t; diff --git a/caesar/caesar.c b/caesar/caesar.c index e87271e7..b1b3ad98 100644 --- a/caesar/caesar.c +++ b/caesar/caesar.c @@ -1,4 +1,4 @@ -/* $NetBSD: caesar.c,v 1.13 2004/01/01 16:00:34 jsm Exp $ */ +/* $NetBSD: caesar.c,v 1.14 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1989, 1993 @@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: caesar.c,v 1.13 2004/01/01 16:00:34 jsm Exp $"); +__RCSID("$NetBSD: caesar.c,v 1.14 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -76,8 +76,8 @@ double stdf[26] = { }; -int main __P((int, char *[])); -void printit __P((const char *)) __attribute__((__noreturn__)); +int main(int, char *[]); +void printit(const char *) __attribute__((__noreturn__)); int main(argc, argv) diff --git a/canfield/canfield/canfield.c b/canfield/canfield/canfield.c index 2c1eb98a..5b838be5 100644 --- a/canfield/canfield/canfield.c +++ b/canfield/canfield/canfield.c @@ -1,4 +1,4 @@ -/* $NetBSD: canfield.c,v 1.18 2003/08/07 09:37:07 agc Exp $ */ +/* $NetBSD: canfield.c,v 1.19 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)canfield.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: canfield.c,v 1.18 2003/08/07 09:37:07 agc Exp $"); +__RCSID("$NetBSD: canfield.c,v 1.19 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -198,53 +198,53 @@ bool startedgame = FALSE, infullgame = FALSE; time_t acctstart; int dbfd = -1; -void askquit __P((int)); -void cleanup __P((int)) __attribute__((__noreturn__)); -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((const struct cardtype *, const struct cardtype *)); -void dumberror __P((void)); -bool finish __P((void)); -void fndbase __P((struct cardtype **, int, int)); -void getcmd __P((int, int, const char *)); -void initall __P((void)); -void initdeck __P((struct cardtype *[])); -void initgame __P((void)); -void instruct __P((void)); -int main __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((const struct cardtype *)); -void printbottombettingbox __P((void)); -void printbottominstructions __P((void)); -void printcard __P((int, int, const struct cardtype *)); -void printrank __P((int, int, const struct cardtype *, bool)); -void printtopbettingbox __P((void)); -void printtopinstructions __P((void)); -bool rankhigher __P((const struct cardtype *, int)); -bool ranklower __P((const struct cardtype *, const struct cardtype *)); -void removecard __P((int, int)); -int samesuit __P((const 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((const 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) __attribute__((__noreturn__)); +void cleanupboard(void); +void clearabovemovebox(void); +void clearbelowmovebox(void); +void clearmsg(void); +void clearstat(void); +void destinerror(void); +bool diffcolor(const struct cardtype *, const struct cardtype *); +void dumberror(void); +bool finish(void); +void fndbase(struct cardtype **, int, int); +void getcmd(int, int, const char *); +void initall(void); +void initdeck(struct cardtype *[]); +void initgame(void); +void instruct(void); +int main(void); +void makeboard(void); +void movebox(void); +void movecard(void); +void movetofound(struct cardtype **, int); +void movetotalon(void); +bool notempty(const struct cardtype *); +void printbottombettingbox(void); +void printbottominstructions(void); +void printcard(int, int, const struct cardtype *); +void printrank(int, int, const struct cardtype *, bool); +void printtopbettingbox(void); +void printtopinstructions(void); +bool rankhigher(const struct cardtype *, int); +bool ranklower(const struct cardtype *, const struct cardtype *); +void removecard(int, int); +int samesuit(const 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(const 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/canfield/cfscores/cfscores.c b/canfield/cfscores/cfscores.c index 3feda151..aa9afa0b 100644 --- a/canfield/cfscores/cfscores.c +++ b/canfield/cfscores/cfscores.c @@ -1,4 +1,4 @@ -/* $NetBSD: cfscores.c,v 1.11 2003/08/07 09:37:08 agc Exp $ */ +/* $NetBSD: cfscores.c,v 1.12 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[] = "@(#)cfscores.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: cfscores.c,v 1.11 2003/08/07 09:37:08 agc Exp $"); +__RCSID("$NetBSD: cfscores.c,v 1.12 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -66,8 +66,8 @@ struct betinfo { int dbfd; -int main __P((int, char *[])); -void printuser __P((const struct passwd *, int)); +int main(int, char *[]); +void printuser(const struct passwd *, int); int main(argc, argv) diff --git a/cribbage/crib.c b/cribbage/crib.c index 0581c018..ffbca60d 100644 --- a/cribbage/crib.c +++ b/cribbage/crib.c @@ -1,4 +1,4 @@ -/* $NetBSD: crib.c,v 1.18 2004/01/26 09:58:35 jsm Exp $ */ +/* $NetBSD: crib.c,v 1.19 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)crib.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: crib.c,v 1.18 2004/01/26 09:58:35 jsm Exp $"); +__RCSID("$NetBSD: crib.c,v 1.19 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -56,7 +56,7 @@ __RCSID("$NetBSD: crib.c,v 1.18 2004/01/26 09:58:35 jsm Exp $"); #include "cribcur.h" #include "pathnames.h" -int main __P((int, char *[])); +int main(int, char *[]); int main(argc, argv) diff --git a/cribbage/cribbage.h b/cribbage/cribbage.h index 978ae135..4509ef32 100644 --- a/cribbage/cribbage.h +++ b/cribbage/cribbage.h @@ -1,4 +1,4 @@ -/* $NetBSD: cribbage.h,v 1.10 2004/01/26 09:58:35 jsm Exp $ */ +/* $NetBSD: cribbage.h,v 1.11 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -57,54 +57,54 @@ extern BOOLEAN playing; /* currently playing game */ extern char explan[]; /* string for explanation */ -void addmsg __P((const char *, ...)); -int adjust __P((const CARD [], CARD)); -int anymove __P((const CARD [], int, int)); -int anysumto __P((const CARD [], int, int, int)); -void bye __P((void)); -int cchose __P((const CARD [], int, int)); -void cdiscard __P((BOOLEAN)); -int chkscr __P((int *, int)); -int comphand __P((const CARD [], const 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((const 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((const CARD [], int, const char *)); -void instructions __P((void)); -int is_one __P((CARD, const CARD [], int)); -void makeboard __P((void)); -void makedeck __P((CARD [])); -void makeknown __P((const CARD [], int)); -void msg __P((const char *, ...)); -int msgcard __P((CARD, BOOLEAN)); -int msgcrd __P((CARD, BOOLEAN, const char *, BOOLEAN)); -int number __P((int, int, const char *)); -int numofval __P((const CARD [], int, int)); -int pairuns __P((const CARD [], int)); -int peg __P((BOOLEAN)); -int pegscore __P((CARD, const CARD [], int, int)); -int playhand __P((BOOLEAN)); -int plyrhand __P((const CARD [], const char *)); -void prcard __P((WINDOW *, int, int, CARD, BOOLEAN)); -void prcrib __P((BOOLEAN, BOOLEAN)); -void prhand __P((const 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 receive_intr __P((int)) __attribute__((__noreturn__)); -int score __P((BOOLEAN)); -int scorehand __P((const 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(const CARD [], CARD); +int anymove(const CARD [], int, int); +int anysumto(const CARD [], int, int, int); +void bye(void); +int cchose(const CARD [], int, int); +void cdiscard(BOOLEAN); +int chkscr(int *, int); +int comphand(const CARD [], const 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(const CARD [], int); +void game(void); +void gamescore(void); +char *getline(void); +int getuchar(void); +int incard(CARD *); +int infrom(const CARD [], int, const char *); +void instructions(void); +int is_one(CARD, const CARD [], int); +void makeboard(void); +void makedeck(CARD []); +void makeknown(const CARD [], int); +void msg(const char *, ...); +int msgcard(CARD, BOOLEAN); +int msgcrd(CARD, BOOLEAN, const char *, BOOLEAN); +int number(int, int, const char *); +int numofval(const CARD [], int, int); +int pairuns(const CARD [], int); +int peg(BOOLEAN); +int pegscore(CARD, const CARD [], int, int); +int playhand(BOOLEAN); +int plyrhand(const CARD [], const char *); +void prcard(WINDOW *, int, int, CARD, BOOLEAN); +void prcrib(BOOLEAN, BOOLEAN); +void prhand(const CARD [], int, WINDOW *, BOOLEAN); +void printcard(WINDOW *, int, CARD, BOOLEAN); +void prpeg(int, int, BOOLEAN); +void prtable(int); +int readchar(void); +void receive_intr(int) __attribute__((__noreturn__)); +int score(BOOLEAN); +int scorehand(const CARD [], CARD, int, BOOLEAN, BOOLEAN); +void shuffle(CARD []); +void sorthand(CARD [], int); +void wait_for(int); @@ -1,4 +1,4 @@ -/* $NetBSD: dm.c,v 1.18 2003/08/07 09:37:11 agc Exp $ */ +/* $NetBSD: dm.c,v 1.19 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1987, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\ #if 0 static char sccsid[] = "@(#)dm.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: dm.c,v 1.18 2003/08/07 09:37:11 agc Exp $"); +__RCSID("$NetBSD: dm.c,v 1.19 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -66,16 +66,16 @@ static int priority = 0; /* priority game runs at */ static char *game, /* requested game */ *gametty; /* from tty? */ -void c_day __P((const char *, const char *, const char *)); -void c_game __P((const char *, const char *, const char *, const char *)); -void c_tty __P((const char *)); -const char *hour __P((int)); -double load __P((void)); -int main __P((int, char *[])); -void nogamefile __P((void)); -void play __P((char **)) __attribute__((__noreturn__)); -void read_config __P((void)); -int users __P((void)); +void c_day(const char *, const char *, const char *); +void c_game(const char *, const char *, const char *, const char *); +void c_tty(const char *); +const char *hour(int); +double load(void); +int main(int, char *[]); +void nogamefile(void); +void play(char **) __attribute__((__noreturn__)); +void read_config(void); +int users(void); int main(argc, argv) diff --git a/fish/fish.c b/fish/fish.c index c83f957d..3ce0668e 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1,4 +1,4 @@ -/* $NetBSD: fish.c,v 1.14 2003/08/07 09:37:13 agc Exp $ */ +/* $NetBSD: fish.c,v 1.15 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\n\ #if 0 static char sccsid[] = "@(#)fish.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: fish.c,v 1.14 2003/08/07 09:37:13 agc Exp $"); +__RCSID("$NetBSD: fish.c,v 1.15 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -78,22 +78,22 @@ int asked[RANKS], comphand[RANKS], deck[TOTCARDS]; int userasked[RANKS], userhand[RANKS]; int curcard = TOTCARDS; -void chkwinner __P((int, const int *)); -int compmove __P((void)); -int countbooks __P((const int *)); -int countcards __P((const int *)); -int drawcard __P((int, int *)); -int gofish __P((int, int, int *)); -void goodmove __P((int, int, int *, int *)); -void init __P((void)); -void instructions __P((void)); -int main __P((int, char *[])); -int nrandom __P((int)); -void printhand __P((const int *)); -void printplayer __P((int)); -int promove __P((void)); -void usage __P((void)) __attribute__((__noreturn__)); -int usermove __P((void)); +void chkwinner(int, const int *); +int compmove(void); +int countbooks(const int *); +int countcards(const int *); +int drawcard(int, int *); +int gofish(int, int, int *); +void goodmove(int, int, int *, int *); +void init(void); +void instructions(void); +int main(int, char *[]); +int nrandom(int); +void printhand(const int *); +void printplayer(int); +int promove(void); +void usage(void) __attribute__((__noreturn__)); +int usermove(void); int main(argc, argv) diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c index 498330f0..4a8ee817 100644 --- a/fortune/fortune/fortune.c +++ b/fortune/fortune/fortune.c @@ -1,4 +1,4 @@ -/* $NetBSD: fortune.c,v 1.42 2004/01/27 20:24:32 jsm Exp $ */ +/* $NetBSD: fortune.c,v 1.43 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1986, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\ #if 0 static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: fortune.c,v 1.42 2004/01/27 20:24:32 jsm Exp $"); +__RCSID("$NetBSD: fortune.c,v 1.43 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -126,46 +126,46 @@ 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, - const char *, const char *, FILEDESC **, FILEDESC **, FILEDESC *)); -void all_forts __P((FILEDESC *, const char *)); -char *copy __P((const char *, u_int)); -void rot13 __P((char *line, int len)); -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((const char *)); -int is_fortfile __P((const char *, char **, char **, int)); -int is_off_name __P((const char *)); -int main __P((int, char *[])); -int max __P((int, int)); +int add_dir(FILEDESC *); +int add_file(int, + const char *, const char *, FILEDESC **, FILEDESC **, FILEDESC *); +void all_forts(FILEDESC *, const char *); +char *copy(const char *, u_int); +void rot13(char *line, int len); +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(const char *); +int is_fortfile(const char *, char **, char **, int); +int is_off_name(const char *); +int main(int, char *[]); +int max(int, int); FILEDESC * - new_fp __P((void)); -char *off_name __P((const char *)); -void open_dat __P((FILEDESC *)); -void open_fp __P((FILEDESC *)); + new_fp(void); +char *off_name(const 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)) __attribute__((__noreturn__)); -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) __attribute__((__noreturn__)); +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/fortune/unstr/unstr.c b/fortune/unstr/unstr.c index 8f1b2f8c..969af904 100644 --- a/fortune/unstr/unstr.c +++ b/fortune/unstr/unstr.c @@ -1,4 +1,4 @@ -/* $NetBSD: unstr.c,v 1.9 2004/01/27 20:25:07 jsm Exp $ */ +/* $NetBSD: unstr.c,v 1.10 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\ #if 0 static char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: unstr.c,v 1.9 2004/01/27 20:25:07 jsm Exp $"); +__RCSID("$NetBSD: unstr.c,v 1.10 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -79,9 +79,9 @@ char *Infile, /* name of input file */ FILE *Inf, *Dataf; -void getargs __P((char *[])); -int main __P((int, char *[])); -void order_unstr __P((STRFILE *)); +void getargs(char *[]); +int main(int, char *[]); +void order_unstr(STRFILE *); /* ARGSUSED */ int diff --git a/gomoku/gomoku.h b/gomoku/gomoku.h index 0a26b091..0d9ff6e5 100644 --- a/gomoku/gomoku.h +++ b/gomoku/gomoku.h @@ -1,4 +1,4 @@ -/* $NetBSD: gomoku.h,v 1.9 2004/01/27 20:25:48 jsm Exp $ */ +/* $NetBSD: gomoku.h,v 1.10 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1994 @@ -261,42 +261,42 @@ extern int debug; #define ASSERT(x) -void bdinit __P((struct spotstr *)); -void init_overlap __P((void)); -int getline __P((char *, int)); -void ask __P((const char *)); -void dislog __P((const char *)); -void bdump __P((FILE *)); -void bdisp __P((void)); -void bdisp_init __P((void)); -void cursfini __P((void)); -void cursinit __P((void)); -void bdwho __P((int)); -void panic __P((const char *)) __attribute__((__noreturn__)); -void glog __P((const char *)); -void dlog __P((const char *)); -void quit __P((void)) __attribute__((__noreturn__)); -void quitsig __P((int)) __attribute__((__noreturn__)); -void whatsup __P((int)); -int readinput __P((FILE *)); -const char *stoc __P((int)); -int lton __P((int)); -int ctos __P((const char *)); -void update_overlap __P((struct spotstr *)); -int makemove __P((int, int)); -int list_eq __P((struct combostr **, struct combostr **, int)); -void clearcombo __P((struct combostr *, int)); -void makeempty __P((struct combostr *)); -void appendcombo __P((struct combostr *, int)); -void updatecombo __P((struct combostr *, int)); -void markcombo __P((struct combostr *)); -void printcombo __P((struct combostr *, char *)); -void makecombo __P((struct combostr *, struct spotstr *, int, int)); -void makecombo2 __P((struct combostr *, struct spotstr *, int, int)); -int sortcombo __P((struct combostr **, struct combostr **, struct combostr *)); -int checkframes __P((struct combostr *, struct combostr *, struct spotstr *, -int, struct ovlp_info *)); -void addframes __P((int)); -void scanframes __P((int)); -int better __P((const struct spotstr *, const struct spotstr *, int)); -int pickmove __P((int)); +void bdinit(struct spotstr *); +void init_overlap(void); +int getline(char *, int); +void ask(const char *); +void dislog(const char *); +void bdump(FILE *); +void bdisp(void); +void bdisp_init(void); +void cursfini(void); +void cursinit(void); +void bdwho(int); +void panic(const char *) __attribute__((__noreturn__)); +void glog(const char *); +void dlog(const char *); +void quit(void) __attribute__((__noreturn__)); +void quitsig(int) __attribute__((__noreturn__)); +void whatsup(int); +int readinput(FILE *); +const char *stoc(int); +int lton(int); +int ctos(const char *); +void update_overlap(struct spotstr *); +int makemove(int, int); +int list_eq(struct combostr **, struct combostr **, int); +void clearcombo(struct combostr *, int); +void makeempty(struct combostr *); +void appendcombo(struct combostr *, int); +void updatecombo(struct combostr *, int); +void markcombo(struct combostr *); +void printcombo(struct combostr *, char *); +void makecombo(struct combostr *, struct spotstr *, int, int); +void makecombo2(struct combostr *, struct spotstr *, int, int); +int sortcombo(struct combostr **, struct combostr **, struct combostr *); +int checkframes(struct combostr *, struct combostr *, struct spotstr *, + int, struct ovlp_info *); +void addframes(int); +void scanframes(int); +int better(const struct spotstr *, const struct spotstr *, int); +int pickmove(int); diff --git a/gomoku/main.c b/gomoku/main.c index 0e23335d..6f01ed03 100644 --- a/gomoku/main.c +++ b/gomoku/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.11 2003/08/07 09:37:17 agc Exp $ */ +/* $NetBSD: main.c,v 1.12 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1994 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\n\ #if 0 static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: main.c,v 1.11 2003/08/07 09:37:17 agc Exp $"); +__RCSID("$NetBSD: main.c,v 1.12 2004/01/27 20:30:29 jsm Exp $"); #endif #endif /* not lint */ @@ -79,7 +79,7 @@ int movelog[BSZ * BSZ]; /* log of all the moves */ int movenum; /* current move number */ const char *plyr[2]; /* who's who */ -int main __P((int, char *[])); +int main(int, char *[]); int main(argc, argv) diff --git a/hack/def.func_tab.h b/hack/def.func_tab.h index 062bda81..78957e07 100644 --- a/hack/def.func_tab.h +++ b/hack/def.func_tab.h @@ -1,4 +1,4 @@ -/* $NetBSD: def.func_tab.h,v 1.6 2003/04/02 18:36:34 jsm Exp $ */ +/* $NetBSD: def.func_tab.h,v 1.7 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -65,14 +65,14 @@ #define _DEF_FUNC_TAB_H_ struct func_tab { char f_char; - int (*f_funct) __P((void)); + int (*f_funct)(void); }; extern const struct func_tab cmdlist[]; struct ext_func_tab { const char *ef_txt; - int (*ef_funct) __P((void)); + int (*ef_funct)(void); }; extern const struct ext_func_tab extcmdlist[]; diff --git a/hack/extern.h b/hack/extern.h index 804498cc..e2ef242e 100644 --- a/hack/extern.h +++ b/hack/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.5 2002/05/26 00:12:12 wiz Exp $ */ +/* $NetBSD: extern.h,v 1.6 2004/01/27 20:30:29 jsm Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -41,628 +41,628 @@ #include <stdio.h> /* alloc.c */ -long *alloc __P((unsigned)); -long *enlarge __P((char *, unsigned)); +long *alloc(unsigned); +long *enlarge(char *, unsigned); /* hack.apply.c */ -int doapply __P((void)); -int holetime __P((void)); -void dighole __P((void)); +int doapply(void); +int holetime(void); +void dighole(void); /* hack.bones.c */ -void savebones __P((void)); -int getbones __P((void)); +void savebones(void); +int getbones(void); /* hack.c */ -void unsee __P((void)); -void seeoff __P((int)); -void domove __P((void)); -void movobj __P((struct obj *, int, int)); -int dopickup __P((void)); -void pickup __P((int)); -void lookaround __P((void)); -int monster_nearby __P((void)); -int rroom __P((int, int)); -int cansee __P((xchar, xchar)); -int sgn __P((int)); -void setsee __P((void)); -void nomul __P((int)); -int abon __P((void)); -int dbon __P((void)); -void losestr __P((int)); -void losehp __P((int, const char *)); -void losehp_m __P((int, struct monst *)); -void losexp __P((void)); -int inv_weight __P((void)); -int inv_cnt __P((void)); -long newuexp __P((void)); +void unsee(void); +void seeoff(int); +void domove(void); +void movobj(struct obj *, int, int); +int dopickup(void); +void pickup(int); +void lookaround(void); +int monster_nearby(void); +int rroom(int, int); +int cansee(xchar, xchar); +int sgn(int); +void setsee(void); +void nomul(int); +int abon(void); +int dbon(void); +void losestr(int); +void losehp(int, const char *); +void losehp_m(int, struct monst *); +void losexp(void); +int inv_weight(void); +int inv_cnt(void); +long newuexp(void); /* hack.cmd.c */ -void rhack __P((const char *)); -int doextcmd __P((void)); -char lowc __P((int)); -char unctrl __P((int)); -int movecmd __P((int)); -int getdir __P((boolean)); -void confdir __P((void)); -int finddir __P((void)); -int isroom __P((int, int)); -int isok __P((int, int)); +void rhack(const char *); +int doextcmd(void); +char lowc(int); +char unctrl(int); +int movecmd(int); +int getdir(boolean); +void confdir(void); +int finddir(void); +int isroom(int, int); +int isok(int, int); /* hack.do.c */ -int dodrop __P((void)); -void dropx __P((struct obj *)); -void dropy __P((struct obj *)); -int doddrop __P((void)); -int dodown __P((void)); -int doup __P((void)); -void goto_level __P((int, boolean)); -int donull __P((void)); -int dopray __P((void)); -int dothrow __P((void)); -struct obj *splitobj __P((struct obj *, int)); -void more_experienced __P((int, int)); -void set_wounded_legs __P((long, int)); -void heal_legs __P((void)); +int dodrop(void); +void dropx(struct obj *); +void dropy(struct obj *); +int doddrop(void); +int dodown(void); +int doup(void); +void goto_level(int, boolean); +int donull(void); +int dopray(void); +int dothrow(void); +struct obj *splitobj(struct obj *, int); +void more_experienced(int, int); +void set_wounded_legs(long, int); +void heal_legs(void); /* hack.do_name.c */ -coord getpos __P((int, const char *)); -int do_mname __P((void)); -void do_oname __P((struct obj *)); -int ddocall __P((void)); -void docall __P((struct obj *)); -char *xmonnam __P((struct monst *, int)); -char *lmonnam __P((struct monst *)); -char *monnam __P((struct monst *)); -char *Monnam __P((struct monst *)); -char *amonnam __P((struct monst *, const char *)); -char *Amonnam __P((struct monst *, const char *)); -char *Xmonnam __P((struct monst *)); -char *visctrl __P((int)); +coord getpos(int, const char *); +int do_mname(void); +void do_oname(struct obj *); +int ddocall(void); +void docall(struct obj *); +char *xmonnam(struct monst *, int); +char *lmonnam(struct monst *); +char *monnam(struct monst *); +char *Monnam(struct monst *); +char *amonnam(struct monst *, const char *); +char *Amonnam(struct monst *, const char *); +char *Xmonnam(struct monst *); +char *visctrl(int); /* hack.do_wear.c */ -void off_msg __P((struct obj *)); -int doremarm __P((void)); -int doremring __P((void)); -int dorr __P((struct obj *)); -int cursed __P((struct obj *)); -int armoroff __P((struct obj *)); -int doweararm __P((void)); -int dowearring __P((void)); -void ringoff __P((struct obj *)); -void find_ac __P((void)); -void glibr __P((void)); -struct obj *some_armor __P((void)); -void corrode_armor __P((void)); +void off_msg(struct obj *); +int doremarm(void); +int doremring(void); +int dorr(struct obj *); +int cursed(struct obj *); +int armoroff(struct obj *); +int doweararm(void); +int dowearring(void); +void ringoff(struct obj *); +void find_ac(void); +void glibr(void); +struct obj *some_armor(void); +void corrode_armor(void); /* hack.dog.c */ -void makedog __P((void)); -void initedog __P((struct monst *)); -void losedogs __P((void)); -void keepdogs __P((void)); -void fall_down __P((struct monst *)); -int dogfood __P((struct obj *)); -int dog_move __P((struct monst *, int)); -int inroom __P((xchar, xchar)); -int tamedog __P((struct monst *, struct obj *)); +void makedog(void); +void initedog(struct monst *); +void losedogs(void); +void keepdogs(void); +void fall_down(struct monst *); +int dogfood(struct obj *); +int dog_move(struct monst *, int); +int inroom(xchar, xchar); +int tamedog(struct monst *, struct obj *); /* hack.eat.c */ -void init_uhunger __P((void)); -int opentin __P((void)); -int Meatdone __P((void)); -int doeat __P((void)); -void gethungry __P((void)); -void morehungry __P((int)); -void lesshungry __P((int)); -int unfaint __P((void)); -void newuhs __P((boolean)); -int poisonous __P((struct obj *)); -int eatcorpse __P((struct obj *)); +void init_uhunger(void); +int opentin(void); +int Meatdone(void); +int doeat(void); +void gethungry(void); +void morehungry(int); +void lesshungry(int); +int unfaint(void); +void newuhs(boolean); +int poisonous(struct obj *); +int eatcorpse(struct obj *); /* hack.end.c */ -int dodone __P((void)); -void done1 __P((int)); -void done_intr __P((int)); -void done_hangup __P((int)); -void done_in_by __P((struct monst *)); -void done __P((const char *)); -void topten __P((void)); -void outheader __P((void)); +int dodone(void); +void done1(int); +void done_intr(int); +void done_hangup(int); +void done_in_by(struct monst *); +void done(const char *); +void topten(void); +void outheader(void); struct toptenentry; -int outentry __P((int, struct toptenentry *, int)); -char *itoa __P((int)); -const char *ordin __P((int)); -void clearlocks __P((void)); -void hangup __P((int)) __attribute__((__noreturn__)); -char *eos __P((char *)); -void charcat __P((char *, int)); -void prscore __P((int, char **)); +int outentry(int, struct toptenentry *, int); +char *itoa(int); +const char *ordin(int); +void clearlocks(void); +void hangup(int) __attribute__((__noreturn__)); +char *eos(char *); +void charcat(char *, int); +void prscore(int, char **); /* hack.engrave.c */ -struct engr *engr_at __P((xchar, xchar)); -int sengr_at __P((const char *, xchar, xchar)); -void u_wipe_engr __P((int)); -void wipe_engr_at __P((xchar, xchar, xchar)); -void read_engr_at __P((int, int)); -void make_engr_at __P((int, int, const char *)); -int doengrave __P((void)); -void save_engravings __P((int)); -void rest_engravings __P((int)); -void del_engr __P((struct engr *)); +struct engr *engr_at(xchar, xchar); +int sengr_at(const char *, xchar, xchar); +void u_wipe_engr(int); +void wipe_engr_at(xchar, xchar, xchar); +void read_engr_at(int, int); +void make_engr_at(int, int, const char *); +int doengrave(void); +void save_engravings(int); +void rest_engravings(int); +void del_engr(struct engr *); /* hack.fight.c */ -int hitmm __P((struct monst *, struct monst *)); -void mondied __P((struct monst *)); -void monstone __P((struct monst *)); -int fightm __P((struct monst *)); -int thitu __P((int, int, const char *)); -boolean hmon __P((struct monst *, struct obj *, int)); -int attack __P((struct monst *)); +int hitmm(struct monst *, struct monst *); +void mondied(struct monst *); +void monstone(struct monst *); +int fightm(struct monst *); +int thitu(int, int, const char *); +boolean hmon(struct monst *, struct obj *, int); +int attack(struct monst *); /* hack.invent.c */ -struct obj *addinv __P((struct obj *)); -void useup __P((struct obj *)); -void freeinv __P((struct obj *)); -void delobj __P((struct obj *)); -void freeobj __P((struct obj *)); -void freegold __P((struct gold *)); -void deltrap __P((struct trap *)); -struct monst *m_at __P((int, int)); -struct obj *o_at __P((int, int)); -struct obj *sobj_at __P((int, int, int)); -int carried __P((struct obj *)); -int carrying __P((int)); -struct obj *o_on __P((unsigned int, struct obj *)); -struct trap *t_at __P((int, int)); -struct gold *g_at __P((int, int)); -struct obj *mkgoldobj __P((long)); -struct obj *getobj __P((const char *, const char *)); -int ckunpaid __P((struct obj *)); -int ggetobj __P((const char *, int (*fn)(struct obj *), int)); -int askchain __P((struct obj *, char *, int, int (*)(struct obj *), - int (*)(struct obj *), int)); -char obj_to_let __P((struct obj *)); -void prinv __P((struct obj *)); -int ddoinv __P((void)); -void doinv __P((char *)); -int dotypeinv __P((void)); -int dolook __P((void)); -void stackobj __P((struct obj *)); -int merged __P((struct obj *, struct obj *, int)); -int countgold __P((void)); -int doprgold __P((void)); -int doprwep __P((void)); -int doprarm __P((void)); -int doprring __P((void)); -int digit __P((int)); +struct obj *addinv(struct obj *); +void useup(struct obj *); +void freeinv(struct obj *); +void delobj(struct obj *); +void freeobj(struct obj *); +void freegold(struct gold *); +void deltrap(struct trap *); +struct monst *m_at(int, int); +struct obj *o_at(int, int); +struct obj *sobj_at(int, int, int); +int carried(struct obj *); +int carrying(int); +struct obj *o_on(unsigned int, struct obj *); +struct trap *t_at(int, int); +struct gold *g_at(int, int); +struct obj *mkgoldobj(long); +struct obj *getobj(const char *, const char *); +int ckunpaid(struct obj *); +int ggetobj(const char *, int (*fn)(struct obj *), int); +int askchain(struct obj *, char *, int, int (*)(struct obj *), + int (*)(struct obj *), int); +char obj_to_let(struct obj *); +void prinv(struct obj *); +int ddoinv(void); +void doinv(char *); +int dotypeinv(void); +int dolook(void); +void stackobj(struct obj *); +int merged(struct obj *, struct obj *, int); +int countgold(void); +int doprgold(void); +int doprwep(void); +int doprarm(void); +int doprring(void); +int digit(int); /* hack.ioctl.c */ -void getioctls __P((void)); -void setioctls __P((void)); -int dosuspend __P((void)); +void getioctls(void); +void setioctls(void); +int dosuspend(void); /* hack.lev.c */ -void savelev __P((int, xchar)); -void bwrite __P((int, const void *, unsigned)); -void saveobjchn __P((int, struct obj *)); -void savemonchn __P((int, struct monst *)); -void savegoldchn __P((int, struct gold *)); -void savetrapchn __P((int, struct trap *)); -void getlev __P((int, int, xchar)); -void mread __P((int, char *, unsigned)); -void mklev __P((void)); +void savelev(int, xchar); +void bwrite(int, const void *, unsigned); +void saveobjchn(int, struct obj *); +void savemonchn(int, struct monst *); +void savegoldchn(int, struct gold *); +void savetrapchn(int, struct trap *); +void getlev(int, int, xchar); +void mread(int, char *, unsigned); +void mklev(void); /* hack.main.c */ -void glo __P((int)); -void askname __P((void)); -void impossible __P((const char *, ...)) +void glo(int); +void askname(void); +void impossible(const char *, ...) __attribute__((__format__(__printf__, 1, 2))); -void stop_occupation __P((void)); +void stop_occupation(void); /* hack.makemon.c */ -struct monst *makemon __P((const struct permonst *, int, int)); -coord enexto __P((xchar, xchar)); -int goodpos __P((int, int)); -void rloc __P((struct monst *)); -struct monst *mkmon_at __P((int, int, int)); +struct monst *makemon(const struct permonst *, int, int); +coord enexto(xchar, xchar); +int goodpos(int, int); +void rloc(struct monst *); +struct monst *mkmon_at(int, int, int); /* hack.mhitu.c */ -int mhitu __P((struct monst *)); -int hitu __P((struct monst *, int)); +int mhitu(struct monst *); +int hitu(struct monst *, int); /* hack.mklev.c */ -void makelevel __P((void)); -int makerooms __P((void)); -void addrs __P((int, int, int, int)); -void addrsx __P((int, int, int, int, boolean)); +void makelevel(void); +int makerooms(void); +void addrs(int, int, int, int); +void addrsx(int, int, int, int, boolean); struct mkroom; -int comp __P((const void *, const void *)); -coord finddpos __P((int, int, int, int)); -int okdoor __P((int, int)); -void dodoor __P((int, int, struct mkroom *)); -void dosdoor __P((int, int, struct mkroom *, int)); -int maker __P((schar, schar, schar, schar)); -void makecorridors __P((void)); -void join __P((int, int)); -void make_niches __P((void)); -void makevtele __P((void)); -void makeniche __P((boolean)); -void mktrap __P((int, int, struct mkroom *)); +int comp(const void *, const void *); +coord finddpos(int, int, int, int); +int okdoor(int, int); +void dodoor(int, int, struct mkroom *); +void dosdoor(int, int, struct mkroom *, int); +int maker(schar, schar, schar, schar); +void makecorridors(void); +void join(int, int); +void make_niches(void); +void makevtele(void); +void makeniche(boolean); +void mktrap(int, int, struct mkroom *); /* hack.mkmaze.c */ -void makemaz __P((void)); -void walkfrom __P((int, int)); -void move __P((int *, int *, int)); -int okay __P((int, int, int)); -coord mazexy __P((void)); +void makemaz(void); +void walkfrom(int, int); +void move(int *, int *, int); +int okay(int, int, int); +coord mazexy(void); /* hack.mkobj.c */ -struct obj *mkobj_at __P((int, int, int)); -void mksobj_at __P((int, int, int)); -struct obj *mkobj __P((int)); -struct obj *mksobj __P((int)); -int letter __P((int)); -int weight __P((struct obj *)); -void mkgold __P((long, int, int)); +struct obj *mkobj_at(int, int, int); +void mksobj_at(int, int, int); +struct obj *mkobj(int); +struct obj *mksobj(int); +int letter(int); +int weight(struct obj *); +void mkgold(long, int, int); /* hack.mkshop.c */ -void mkshop __P((void)); -void mkzoo __P((int)); -const struct permonst *morguemon __P((void)); -void mkswamp __P((void)); -int nexttodoor __P((int, int)); -int has_dnstairs __P((struct mkroom *)); -int has_upstairs __P((struct mkroom *)); -int isbig __P((struct mkroom *)); -int dist2 __P((int, int, int, int)); -int sq __P((int)); +void mkshop(void); +void mkzoo(int); +const struct permonst *morguemon(void); +void mkswamp(void); +int nexttodoor(int, int); +int has_dnstairs(struct mkroom *); +int has_upstairs(struct mkroom *); +int isbig(struct mkroom *); +int dist2(int, int, int, int); +int sq(int); /* hack.mon.c */ -void movemon __P((void)); -void justswld __P((struct monst *, const char *)); -void youswld __P((struct monst *, int, int, const char *)); -int dochugw __P((struct monst *)); -int dochug __P((struct monst *)); -int m_move __P((struct monst *, int)); -void mpickgold __P((struct monst *)); -void mpickgems __P((struct monst *)); -int mfndpos __P((struct monst *, coord[9 ], int[9 ], int)); -int dist __P((int, int)); -void poisoned __P((const char *, const char *)); -void mondead __P((struct monst *)); -void replmon __P((struct monst *, struct monst *)); -void relmon __P((struct monst *)); -void monfree __P((struct monst *)); -void dmonsfree __P((void)); -void unstuck __P((struct monst *)); -void killed __P((struct monst *)); -void kludge __P((const char *, const char *)); -void rescham __P((void)); -int newcham __P((struct monst *, const struct permonst *)); -void mnexto __P((struct monst *)); -int ishuman __P((struct monst *)); -void setmangry __P((struct monst *)); -int canseemon __P((struct monst *)); +void movemon(void); +void justswld(struct monst *, const char *); +void youswld(struct monst *, int, int, const char *); +int dochugw(struct monst *); +int dochug(struct monst *); +int m_move(struct monst *, int); +void mpickgold(struct monst *); +void mpickgems(struct monst *); +int mfndpos(struct monst *, coord[9 ], int[9 ], int); +int dist(int, int); +void poisoned(const char *, const char *); +void mondead(struct monst *); +void replmon(struct monst *, struct monst *); +void relmon(struct monst *); +void monfree(struct monst *); +void dmonsfree(void); +void unstuck(struct monst *); +void killed(struct monst *); +void kludge(const char *, const char *); +void rescham(void); +int newcham(struct monst *, const struct permonst *); +void mnexto(struct monst *); +int ishuman(struct monst *); +void setmangry(struct monst *); +int canseemon(struct monst *); /* hack.monst.c */ /* hack.o_init.c */ -int letindex __P((int)); -void init_objects __P((void)); -int probtype __P((int)); -void setgemprobs __P((void)); -void oinit __P((void)); -void savenames __P((int)); -void restnames __P((int)); -int dodiscovered __P((void)); -int interesting_to_discover __P((int)); +int letindex(int); +void init_objects(void); +int probtype(int); +void setgemprobs(void); +void oinit(void); +void savenames(int); +void restnames(int); +int dodiscovered(void); +int interesting_to_discover(int); /* hack.objnam.c */ -char *strprepend __P((char *, char *)); -char *sitoa __P((int)); -char *typename __P((int)); -char *xname __P((struct obj *)); -char *doname __P((struct obj *)); -void setan __P((const char *, char *)); -char *aobjnam __P((struct obj *, const char *)); -char *Doname __P((struct obj *)); -struct obj *readobjnam __P((char *)); +char *strprepend(char *, char *); +char *sitoa(int); +char *typename(int); +char *xname(struct obj *); +char *doname(struct obj *); +void setan(const char *, char *); +char *aobjnam(struct obj *, const char *); +char *Doname(struct obj *); +struct obj *readobjnam(char *); /* hack.options.c */ -void initoptions __P((void)); -void parseoptions __P((char *, boolean)); -int doset __P((void)); +void initoptions(void); +void parseoptions(char *, boolean); +int doset(void); /* hack.pager.c */ -int dowhatis __P((void)); -void intruph __P((int)); -void page_more __P((FILE *, int)); -void set_whole_screen __P((void)); -int readnews __P((void)); -void set_pager __P((int)); -int page_line __P((const char *)); -void cornline __P((int, const char *)); -int dohelp __P((void)); -int page_file __P((const char *, boolean)); -int dosh __P((void)); -int child __P((int)); +int dowhatis(void); +void intruph(int); +void page_more(FILE *, int); +void set_whole_screen(void); +int readnews(void); +void set_pager(int); +int page_line(const char *); +void cornline(int, const char *); +int dohelp(void); +int page_file(const char *, boolean); +int dosh(void); +int child(int); /* hack.potion.c */ -int dodrink __P((void)); -void pluslvl __P((void)); -void strange_feeling __P((struct obj *, const char *)); -void potionhit __P((struct monst *, struct obj *)); -void potionbreathe __P((struct obj *)); -int dodip __P((void)); -void ghost_from_bottle __P((void)); +int dodrink(void); +void pluslvl(void); +void strange_feeling(struct obj *, const char *); +void potionhit(struct monst *, struct obj *); +void potionbreathe(struct obj *); +int dodip(void); +void ghost_from_bottle(void); /* hack.pri.c */ -void swallowed __P((void)); -void panic __P((const char *, ...)) +void swallowed(void); +void panic(const char *, ...) __attribute__((__format__(__printf__, 1, 2))); -void atl __P((int, int, int)); -void on_scr __P((int, int)); -void tmp_at __P((schar, schar)); -void Tmp_at __P((schar, schar)); -void setclipped __P((void)) __attribute__((__noreturn__)); -void at __P((xchar, xchar, int)); -void prme __P((void)); -int doredraw __P((void)); -void docrt __P((void)); -void docorner __P((int, int)); -void curs_on_u __P((void)); -void pru __P((void)); -void prl __P((int, int)); -char news0 __P((xchar, xchar)); -void newsym __P((int, int)); -void mnewsym __P((int, int)); -void nosee __P((int, int)); -void prl1 __P((int, int)); -void nose1 __P((int, int)); -int vism_at __P((int, int)); -void pobj __P((struct obj *)); -void unpobj __P((struct obj *)); -void seeobjs __P((void)); -void seemons __P((void)); -void pmon __P((struct monst *)); -void unpmon __P((struct monst *)); -void nscr __P((void)); -void cornbot __P((int)); -void bot __P((void)); -void mstatusline __P((struct monst *)); -void cls __P((void)); +void atl(int, int, int); +void on_scr(int, int); +void tmp_at(schar, schar); +void Tmp_at(schar, schar); +void setclipped(void) __attribute__((__noreturn__)); +void at(xchar, xchar, int); +void prme(void); +int doredraw(void); +void docrt(void); +void docorner(int, int); +void curs_on_u(void); +void pru(void); +void prl(int, int); +char news0(xchar, xchar); +void newsym(int, int); +void mnewsym(int, int); +void nosee(int, int); +void prl1(int, int); +void nose1(int, int); +int vism_at(int, int); +void pobj(struct obj *); +void unpobj(struct obj *); +void seeobjs(void); +void seemons(void); +void pmon(struct monst *); +void unpmon(struct monst *); +void nscr(void); +void cornbot(int); +void bot(void); +void mstatusline(struct monst *); +void cls(void); /* hack.read.c */ -int doread __P((void)); -int identify __P((struct obj *)); -void litroom __P((boolean)); -int monstersym __P((int)); +int doread(void); +int identify(struct obj *); +void litroom(boolean); +int monstersym(int); /* hack.rip.c */ -void outrip __P((void)); -void center __P((int, char *)); +void outrip(void); +void center(int, char *); /* hack.rumors.c */ -void init_rumors __P((FILE *)); -int skipline __P((FILE *)); -void outline __P((FILE *)); -void outrumor __P((void)); -int used __P((int)); +void init_rumors(FILE *); +int skipline(FILE *); +void outline(FILE *); +void outrumor(void); +int used(int); /* hack.save.c */ -int dosave __P((void)); -int dosave0 __P((int)); -int dorecover __P((int)); -struct obj *restobjchn __P((int)); -struct monst *restmonchn __P((int)); +int dosave(void); +int dosave0(int); +int dorecover(int); +struct obj *restobjchn(int); +struct monst *restmonchn(int); /* hack.search.c */ -int findit __P((void)); -int dosearch __P((void)); -int doidtrap __P((void)); -void wakeup __P((struct monst *)); -void seemimic __P((struct monst *)); +int findit(void); +int dosearch(void); +int doidtrap(void); +void wakeup(struct monst *); +void seemimic(struct monst *); /* hack.shk.c */ -void obfree __P((struct obj *, struct obj *)); -void paybill __P((void)); -char *shkname __P((struct monst *)); -void shkdead __P((struct monst *)); -void replshk __P((struct monst *, struct monst *)); -int inshop __P((void)); -int dopay __P((void)); +void obfree(struct obj *, struct obj *); +void paybill(void); +char *shkname(struct monst *); +void shkdead(struct monst *); +void replshk(struct monst *, struct monst *); +int inshop(void); +int dopay(void); struct bill_x; -struct obj *bp_to_obj __P((struct bill_x *)); -void addtobill __P((struct obj *)); -void splitbill __P((struct obj *, struct obj *)); -void subfrombill __P((struct obj *)); -int doinvbill __P((int)); -int shkcatch __P((struct obj *)); -int shk_move __P((struct monst *)); -void shopdig __P((int)); -int online __P((int, int)); -int follower __P((struct monst *)); +struct obj *bp_to_obj(struct bill_x *); +void addtobill(struct obj *); +void splitbill(struct obj *, struct obj *); +void subfrombill(struct obj *); +int doinvbill(int); +int shkcatch(struct obj *); +int shk_move(struct monst *); +void shopdig(int); +int online(int, int); +int follower(struct monst *); /* hack.shknam.c */ -void findname __P((char *, int)); +void findname(char *, int); /* hack.steal.c */ -long somegold __P((void)); -void stealgold __P((struct monst *)); -int stealarm __P((void)); -int steal __P((struct monst *)); -void mpickobj __P((struct monst *, struct obj *)); -int stealamulet __P((struct monst *)); -void relobj __P((struct monst *, int)); +long somegold(void); +void stealgold(struct monst *); +int stealarm(void); +int steal(struct monst *); +void mpickobj(struct monst *, struct obj *); +int stealamulet(struct monst *); +void relobj(struct monst *, int); /* hack.termcap.c */ -void startup __P((void)); -void start_screen __P((void)); -void end_screen __P((void)); -void curs __P((int, int)); -void nocmov __P((int, int)); -void cmov __P((int, int)); -int xputc __P((int)); -void xputs __P((char *)); -void cl_end __P((void)); -void clear_screen __P((void)); -void home __P((void)); -void standoutbeg __P((void)); -void standoutend __P((void)); -void backsp __P((void)); -void bell __P((void)); -void delay_output __P((void)); -void cl_eos __P((void)); +void startup(void); +void start_screen(void); +void end_screen(void); +void curs(int, int); +void nocmov(int, int); +void cmov(int, int); +int xputc(int); +void xputs(char *); +void cl_end(void); +void clear_screen(void); +void home(void); +void standoutbeg(void); +void standoutend(void); +void backsp(void); +void bell(void); +void delay_output(void); +void cl_eos(void); /* hack.timeout.c */ -void timeout __P((void)); -void stoned_dialogue __P((void)); +void timeout(void); +void stoned_dialogue(void); /* hack.topl.c */ -int doredotopl __P((void)); -void redotoplin __P((void)); -void remember_topl __P((void)); -void addtopl __P((const char *)); -void xmore __P((const char *)); -void more __P((void)); -void cmore __P((const char *)); -void clrlin __P((void)); -void pline __P((const char *, ...)) +int doredotopl(void); +void redotoplin(void); +void remember_topl(void); +void addtopl(const char *); +void xmore(const char *); +void more(void); +void cmore(const char *); +void clrlin(void); +void pline(const char *, ...) __attribute__((__format__(__printf__, 1, 2))); -void vpline __P((const char *, va_list)) +void vpline(const char *, va_list) __attribute__((__format__(__printf__, 1, 0))); -void putsym __P((int)); -void putstr __P((const char *)); +void putsym(int); +void putstr(const char *); /* hack.track.c */ -void initrack __P((void)); -void settrack __P((void)); -coord *gettrack __P((int, int)); +void initrack(void); +void settrack(void); +coord *gettrack(int, int); /* hack.trap.c */ -struct trap *maketrap __P((int, int, int)); -void dotrap __P((struct trap *)); -int mintrap __P((struct monst *)); -void selftouch __P((const char *)); -void float_up __P((void)); -void float_down __P((void)); -void vtele __P((void)); -void tele __P((void)); -void teleds __P((int, int)); -int teleok __P((int, int)); -int dotele __P((void)); -void placebc __P((int)); -void unplacebc __P((void)); -void level_tele __P((void)); -void drown __P((void)); +struct trap *maketrap(int, int, int); +void dotrap(struct trap *); +int mintrap(struct monst *); +void selftouch(const char *); +void float_up(void); +void float_down(void); +void vtele(void); +void tele(void); +void teleds(int, int); +int teleok(int, int); +int dotele(void); +void placebc(int); +void unplacebc(void); +void level_tele(void); +void drown(void); /* hack.tty.c */ -void gettty __P((void)); -void settty __P((const char *)); -void setctty __P((void)); -void setftty __P((void)); -void error __P((const char *, ...)) +void gettty(void); +void settty(const char *); +void setctty(void); +void setftty(void); +void error(const char *, ...) __attribute__((__format__(__printf__, 1, 2),__noreturn__)); -void getlin __P((char *)); -void getret __P((void)); -void cgetret __P((const char *)); -void xwaitforspace __P((const char *)); -char *parse __P((void)); -char readchar __P((void)); -void end_of_input __P((void)) __attribute__((__noreturn__)); +void getlin(char *); +void getret(void); +void cgetret(const char *); +void xwaitforspace(const char *); +char *parse(void); +char readchar(void); +void end_of_input(void) __attribute__((__noreturn__)); /* hack.u_init.c */ -void u_init __P((void)); +void u_init(void); struct trobj; -void ini_inv __P((struct trobj *)); -void wiz_inv __P((void)); -void plnamesuffix __P((void)); -int role_index __P((int)); +void ini_inv(struct trobj *); +void wiz_inv(void); +void plnamesuffix(void); +int role_index(int); /* hack.unix.c */ -void setrandom __P((void)); -struct tm *getlt __P((void)); -int getyear __P((void)); -char *getdate __P((void)); -int phase_of_the_moon __P((void)); -int night __P((void)); -int midnight __P((void)); -void gethdate __P((char *)); -int uptodate __P((int)); -int veryold __P((int)); -void getlock __P((void)); -void getmailstatus __P((void)); -void ckmailstatus __P((void)); -void newmail __P((void)); -void mdrush __P((struct monst *, boolean)); -void readmail __P((void)); -void regularize __P((char *)); +void setrandom(void); +struct tm *getlt(void); +int getyear(void); +char *getdate(void); +int phase_of_the_moon(void); +int night(void); +int midnight(void); +void gethdate(char *); +int uptodate(int); +int veryold(int); +void getlock(void); +void getmailstatus(void); +void ckmailstatus(void); +void newmail(void); +void mdrush(struct monst *, boolean); +void readmail(void); +void regularize(char *); /* hack.vault.c */ -void setgd __P((void)); -int gd_move __P((void)); -void gddead __P((void)); -void replgd __P((struct monst *, struct monst *)); -void invault __P((void)); +void setgd(void); +int gd_move(void); +void gddead(void); +void replgd(struct monst *, struct monst *); +void invault(void); /* hack.version.c */ -int doversion __P((void)); +int doversion(void); /* hack.wield.c */ -void setuwep __P((struct obj *)); -int dowield __P((void)); -void corrode_weapon __P((void)); -int chwepon __P((struct obj *, int)); +void setuwep(struct obj *); +int dowield(void); +void corrode_weapon(void); +int chwepon(struct obj *, int); /* hack.wizard.c */ -void amulet __P((void)); -int wiz_hit __P((struct monst *)); -void inrange __P((struct monst *)); -void aggravate __P((void)); -void clonewiz __P((struct monst *)); +void amulet(void); +int wiz_hit(struct monst *); +void inrange(struct monst *); +void aggravate(void); +void clonewiz(struct monst *); /* hack.worm.c */ #ifndef NOWORM -int getwn __P((struct monst *)); -void initworm __P((struct monst *)); -void worm_move __P((struct monst *)); -void worm_nomove __P((struct monst *)); -void wormdead __P((struct monst *)); -void wormhit __P((struct monst *)); -void wormsee __P((unsigned)); +int getwn(struct monst *); +void initworm(struct monst *); +void worm_move(struct monst *); +void worm_nomove(struct monst *); +void wormdead(struct monst *); +void wormhit(struct monst *); +void wormsee(unsigned); struct wseg; -void pwseg __P((struct wseg *)); -void cutworm __P((struct monst *, xchar, xchar, uchar)); -void remseg __P((struct wseg *)); +void pwseg(struct wseg *); +void cutworm(struct monst *, xchar, xchar, uchar); +void remseg(struct wseg *); #endif /* hack.worn.c */ -void setworn __P((struct obj *, long)); -void setnotworn __P((struct obj *)); +void setworn(struct obj *, long); +void setnotworn(struct obj *); /* hack.zap.c */ -void bhitm __P((struct monst *, struct obj *)); -int bhito __P((struct obj *, struct obj *)); -int dozap __P((void)); -const char *exclam __P((int)); -void hit __P((const char *, struct monst *, const char *)); -void miss __P((const char *, struct monst *)); -struct monst *bhit __P((int, int, int, int, +void bhitm(struct monst *, struct obj *); +int bhito(struct obj *, struct obj *); +int dozap(void); +const char *exclam(int); +void hit(const char *, struct monst *, const char *); +void miss(const char *, struct monst *); +struct monst *bhit(int, int, int, int, void (*)(struct monst *, struct obj *), int (*)(struct obj *, struct obj *), - struct obj *)); -struct monst *boomhit __P((int, int)); -char dirlet __P((int, int)); -void buzz __P((int, xchar, xchar, int, int)); -int zhit __P((struct monst *, int)); -int revive __P((struct obj *)); -void rloco __P((struct obj *)); -void fracture_rock __P((struct obj *)); -void burn_scrolls __P((void)); + struct obj *); +struct monst *boomhit(int, int); +char dirlet(int, int); +void buzz(int, xchar, xchar, int, int); +int zhit(struct monst *, int); +int revive(struct obj *); +void rloco(struct obj *); +void fracture_rock(struct obj *); +void burn_scrolls(void); /* rnd.c */ -int rn1 __P((int, int)); -int rn2 __P((int)); -int rnd __P((int)); -int d __P((int, int)); +int rn1(int, int); +int rn2(int); +int rnd(int); +int d(int, int); #endif /* _EXTERN_H_ */ diff --git a/hack/hack.apply.c b/hack/hack.apply.c index 91a222be..391cbf41 100644 --- a/hack/hack.apply.c +++ b/hack/hack.apply.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.apply.c,v 1.7 2003/04/02 18:36:35 jsm Exp $ */ +/* $NetBSD: hack.apply.c,v 1.8 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.apply.c,v 1.7 2003/04/02 18:36:35 jsm Exp $"); +__RCSID("$NetBSD: hack.apply.c,v 1.8 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ #include "hack.h" @@ -71,16 +71,16 @@ __RCSID("$NetBSD: hack.apply.c,v 1.7 2003/04/02 18:36:35 jsm Exp $"); #include "def.edog.h" #include "def.mkroom.h" -static void use_camera __P((struct obj *)); -static int in_ice_box __P((struct obj *)); -static int ck_ice_box __P((struct obj *)); -static int out_ice_box __P((struct obj *)); -static void use_ice_box __P((struct obj *)); -static struct monst *bchit __P((int, int , int , int)); -static void use_whistle __P((struct obj *)); -static void use_magic_whistle __P((struct obj *)); -static int dig __P((void)); -static int use_pick_axe __P((struct obj *)); +static void use_camera(struct obj *); +static int in_ice_box(struct obj *); +static int ck_ice_box(struct obj *); +static int out_ice_box(struct obj *); +static void use_ice_box(struct obj *); +static struct monst *bchit(int, int , int , int); +static void use_whistle(struct obj *); +static void use_magic_whistle(struct obj *); +static int dig(void); +static int use_pick_axe(struct obj *); int doapply() diff --git a/hack/hack.do.c b/hack/hack.do.c index c02be1d3..b606edad 100644 --- a/hack/hack.do.c +++ b/hack/hack.do.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.do.c,v 1.6 2003/04/02 18:36:35 jsm Exp $ */ +/* $NetBSD: hack.do.c,v 1.7 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.do.c,v 1.6 2003/04/02 18:36:35 jsm Exp $"); +__RCSID("$NetBSD: hack.do.c,v 1.7 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ /* Contains code for 'd', 'D' (drop), '>', '<' (up, down) and 't' (throw) */ @@ -75,7 +75,7 @@ __RCSID("$NetBSD: hack.do.c,v 1.6 2003/04/02 18:36:35 jsm Exp $"); #include <stdlib.h> -static int drop __P((struct obj *)); +static int drop(struct obj *); int dodrop() @@ -406,8 +406,8 @@ dothrow() mon = bhit(u.dx, u.dy, (obj->otyp == ICE_BOX) ? 1 : (!Punished || obj != uball) ? 8 : !u.ustuck ? 5 : 1, obj->olet, - (void (*) __P((struct monst *, struct obj *))) 0, - (int (*) __P((struct obj *, struct obj *))) 0, obj); + (void (*)(struct monst *, struct obj *)) 0, + (int (*)(struct obj *, struct obj *)) 0, obj); } if (mon) { /* awake monster if sleeping */ diff --git a/hack/hack.h b/hack/hack.h index b088690f..9ca5d821 100644 --- a/hack/hack.h +++ b/hack/hack.h @@ -1,4 +1,4 @@ -/* $NetBSD: hack.h,v 1.9 2003/04/02 18:36:37 jsm Exp $ */ +/* $NetBSD: hack.h,v 1.10 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -110,7 +110,7 @@ struct prop { #define RIGHT_SIDE RIGHT_RING #define BOTH_SIDES (LEFT_SIDE | RIGHT_SIDE) long p_flgs; - void (*p_tofn) __P((void)); /* called after timeout */ + void (*p_tofn)(void); /* called after timeout */ }; struct you { @@ -212,8 +212,8 @@ extern char sdir[]; /* defined in hack.c */ extern const char shtypes[]; /* = "=/)%?!["; 8 types: 7 specialized, 1 mixed */ extern const char vowels[]; extern coord bhitpos; /* place where thrown weapon falls to the ground */ -extern int (*afternmv) __P((void)); -extern int (*occupation) __P((void)); +extern int (*afternmv)(void); +extern int (*occupation)(void); extern int CO, LI; /* usually COLNO and ROWNO+2 */ extern int bases[]; extern int doorindex; diff --git a/hack/hack.invent.c b/hack/hack.invent.c index d4a7d2e6..c33d502b 100644 --- a/hack/hack.invent.c +++ b/hack/hack.invent.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.invent.c,v 1.8 2003/04/02 18:36:37 jsm Exp $ */ +/* $NetBSD: hack.invent.c,v 1.9 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.invent.c,v 1.8 2003/04/02 18:36:37 jsm Exp $"); +__RCSID("$NetBSD: hack.invent.c,v 1.9 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ #include <stdlib.h> @@ -78,8 +78,8 @@ __RCSID("$NetBSD: hack.invent.c,v 1.8 2003/04/02 18:36:37 jsm Exp $"); static int lastinvnr = 51; /* 0 ... 51 */ -static void assigninvlet __P((struct obj *)); -static char *xprname __P((struct obj *, char)); +static void assigninvlet(struct obj *); +static char *xprname(struct obj *, char); static void assigninvlet(otmp) @@ -566,7 +566,7 @@ ckunpaid(otmp) int ggetobj(word, fn, max) const char *word; - int (*fn) __P((struct obj *)); + int (*fn)(struct obj *); int max; { char buf[BUFSZ]; @@ -575,8 +575,8 @@ ggetobj(word, fn, max) int oletct = 0, iletct = 0; boolean allflag = FALSE; char olets[20], ilets[20]; - int (*ckfn) __P((struct obj *)) = - (int (*) __P((struct obj *))) 0; + int (*ckfn)(struct obj *) = + (int (*)(struct obj *)) 0; xchar allowgold = (u.ugold && !strcmp(word, "drop")) ? 1 : 0; /* BAH */ if (!invent && !allowgold) { pline("You have nothing to %s.", word); @@ -652,8 +652,8 @@ askchain(objchn, olets, allflag, fn, ckfn, max) struct obj *objchn; char *olets; int allflag; - int (*fn) __P((struct obj *)); - int (*ckfn) __P((struct obj *)); + int (*fn)(struct obj *); + int (*ckfn)(struct obj *); int max; { struct obj *otmp, *otmp2; diff --git a/hack/hack.main.c b/hack/hack.main.c index 7e399193..930de44d 100644 --- a/hack/hack.main.c +++ b/hack/hack.main.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.main.c,v 1.8 2003/04/02 18:36:37 jsm Exp $ */ +/* $NetBSD: hack.main.c,v 1.9 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.main.c,v 1.8 2003/04/02 18:36:37 jsm Exp $"); +__RCSID("$NetBSD: hack.main.c,v 1.9 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ #include <signal.h> @@ -79,8 +79,8 @@ __RCSID("$NetBSD: hack.main.c,v 1.8 2003/04/02 18:36:37 jsm Exp $"); #define gamename "hack" #endif -int (*afternmv) __P((void)); -int (*occupation) __P((void)); +int (*afternmv)(void); +int (*occupation)(void); const char *occtxt; /* defined when occupation != NULL */ int hackpid; /* current pid */ @@ -92,8 +92,8 @@ char SAVEF[PL_NSIZ + 11] = "save/"; /* save/99999player */ char *hname; /* name of the game (argv[0] of call) */ char obuf[BUFSIZ]; /* BUFSIZ is defined in stdio.h */ -int main __P((int, char *[])); -static void chdirx __P((const char *, boolean)); +int main(int, char *[]); +static void chdirx(const char *, boolean); int main(argc, argv) diff --git a/hack/hack.shk.c b/hack/hack.shk.c index 2e826bd7..ee066530 100644 --- a/hack/hack.shk.c +++ b/hack/hack.shk.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.shk.c,v 1.6 2003/04/02 18:36:40 jsm Exp $ */ +/* $NetBSD: hack.shk.c,v 1.7 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.shk.c,v 1.6 2003/04/02 18:36:40 jsm Exp $"); +__RCSID("$NetBSD: hack.shk.c,v 1.7 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ #include <stdlib.h> @@ -71,14 +71,14 @@ __RCSID("$NetBSD: hack.shk.c,v 1.6 2003/04/02 18:36:40 jsm Exp $"); #include "extern.h" #ifndef QUEST -static void setpaid __P((void)); -static void addupbill __P((void)); -static void findshk __P((int)); -static struct bill_x *onbill __P((struct obj *)); -static void pay __P((long, struct monst *)); -static int dopayobj __P((struct bill_x *)); -static int getprice __P((struct obj *)); -static int realhunger __P((void)); +static void setpaid(void); +static void addupbill(void); +static void findshk(int); +static struct bill_x *onbill(struct obj *); +static void pay(long, struct monst *); +static int dopayobj(struct bill_x *); +static int getprice(struct obj *); +static int realhunger(void); #endif #ifdef QUEST diff --git a/hack/hack.vault.c b/hack/hack.vault.c index d2fdb60b..f312bf10 100644 --- a/hack/hack.vault.c +++ b/hack/hack.vault.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.vault.c,v 1.6 2003/04/02 18:36:41 jsm Exp $ */ +/* $NetBSD: hack.vault.c,v 1.7 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.vault.c,v 1.6 2003/04/02 18:36:41 jsm Exp $"); +__RCSID("$NetBSD: hack.vault.c,v 1.7 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ #include "hack.h" @@ -114,8 +114,8 @@ static struct monst *guard; static int gdlevel; #define EGD ((struct egd *)(&(guard->mextra[0]))) -static void restfakecorr __P((void)); -static int goldincorridor __P((void)); +static void restfakecorr(void); +static int goldincorridor(void); static void restfakecorr() diff --git a/hack/hack.zap.c b/hack/hack.zap.c index afddab14..e974d2b1 100644 --- a/hack/hack.zap.c +++ b/hack/hack.zap.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.zap.c,v 1.6 2003/04/02 18:36:42 jsm Exp $ */ +/* $NetBSD: hack.zap.c,v 1.7 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.zap.c,v 1.6 2003/04/02 18:36:42 jsm Exp $"); +__RCSID("$NetBSD: hack.zap.c,v 1.7 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ #include "hack.h" @@ -386,8 +386,8 @@ bhit(ddx, ddy, range, sym, fhitm, fhito, obj) int ddx, ddy, range; /* direction and range */ char sym; /* symbol displayed on path */ /* fns called when mon/obj hit */ - void (*fhitm) __P((struct monst *, struct obj *)); - int (*fhito) __P((struct obj *, struct obj *)); + void (*fhitm)(struct monst *, struct obj *); + int (*fhito)(struct obj *, struct obj *); struct obj *obj; /* 2nd arg to fhitm/fhito */ { struct monst *mtmp; diff --git a/hangman/hangman.h b/hangman/hangman.h index 3389f2d8..ba7d8d0f 100644 --- a/hangman/hangman.h +++ b/hangman/hangman.h @@ -1,4 +1,4 @@ -/* $NetBSD: hangman.h,v 1.12 2003/08/07 09:37:21 agc Exp $ */ +/* $NetBSD: hangman.h,v 1.13 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -81,14 +81,14 @@ extern FILE *Dict; extern off_t Dict_size; -void die __P((int)) __attribute__((__noreturn__)); -void endgame __P((void)); -int main __P((int, char *[])); -void getguess __P((void)); -void getword __P((void)); -void playgame __P((void)); -void prdata __P((void)); -void prman __P((void)); -void prword __P((void)); -int readch __P((void)); -void setup __P((void)); +void die(int) __attribute__((__noreturn__)); +void endgame(void); +int main(int, char *[]); +void getguess(void); +void getword(void); +void playgame(void); +void prdata(void); +void prman(void); +void prword(void); +int readch(void); +void setup(void); diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c index 14864732..15b348dd 100644 --- a/hunt/hunt/hunt.c +++ b/hunt/hunt/hunt.c @@ -1,4 +1,4 @@ -/* $NetBSD: hunt.c,v 1.20 2003/06/11 12:04:06 wiz Exp $ */ +/* $NetBSD: hunt.c,v 1.21 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hunt.c,v 1.20 2003/06/11 12:04:06 wiz Exp $"); +__RCSID("$NetBSD: hunt.c,v 1.21 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ # include <sys/param.h> @@ -108,15 +108,15 @@ static int in_visual; extern int cur_row, cur_col; -void dump_scores __P((SOCKET)); -long env_init __P((long)); -void fill_in_blanks __P((void)); -void leave __P((int, char *)) __attribute__((__noreturn__)); -void leavex __P((int, char *)) __attribute__((__noreturn__)); -void fincurs __P((void)); -int main __P((int, char *[])); +void dump_scores(SOCKET); +long env_init(long); +void fill_in_blanks(void); +void leave(int, char *) __attribute__((__noreturn__)); +void leavex(int, char *) __attribute__((__noreturn__)); +void fincurs(void); +int main(int, char *[]); # ifdef INTERNET -SOCKET *list_drivers __P((void)); +SOCKET *list_drivers(void); # endif extern int Otto_mode; diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c index baa1cfc8..bd6fefb2 100644 --- a/hunt/hunt/otto.c +++ b/hunt/hunt/otto.c @@ -1,4 +1,4 @@ -/* $NetBSD: otto.c,v 1.5 2003/06/11 12:00:21 wiz Exp $ */ +/* $NetBSD: otto.c,v 1.6 2004/01/27 20:30:29 jsm Exp $ */ # ifdef OTTO /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -45,7 +45,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: otto.c,v 1.5 2003/06/11 12:00:21 wiz Exp $"); +__RCSID("$NetBSD: otto.c,v 1.6 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ # include <sys/time.h> @@ -142,15 +142,15 @@ STATIC int num_turns; /* for wandering */ STATIC char been_there[HEIGHT][WIDTH2]; STATIC struct itimerval pause_time = { { 0, 0 }, { 0, 55000 }}; -STATIC void attack __P((int, struct item *)); -STATIC void duck __P((int)); -STATIC void face_and_move_direction __P((int, int)); -STATIC int go_for_ammo __P((char)); -STATIC void ottolook __P((int, struct item *)); -STATIC void look_around __P((void)); -STATIC SIGNAL_TYPE nothing __P((int)); -STATIC int stop_look __P((struct item *, char, int, int)); -STATIC void wander __P((void)); +STATIC void attack(int, struct item *); +STATIC void duck(int); +STATIC void face_and_move_direction(int, int); +STATIC int go_for_ammo(char); +STATIC void ottolook(int, struct item *); +STATIC void look_around(void); +STATIC SIGNAL_TYPE nothing(int); +STATIC int stop_look(struct item *, char, int, int); +STATIC void wander(void); extern int Otto_count; diff --git a/hunt/hunt/playit.c b/hunt/hunt/playit.c index 76f2982b..56e1765f 100644 --- a/hunt/hunt/playit.c +++ b/hunt/hunt/playit.c @@ -1,4 +1,4 @@ -/* $NetBSD: playit.c,v 1.7 2003/06/11 12:00:21 wiz Exp $ */ +/* $NetBSD: playit.c,v 1.8 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: playit.c,v 1.7 2003/06/11 12:00:21 wiz Exp $"); +__RCSID("$NetBSD: playit.c,v 1.8 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ # include <sys/file.h> @@ -94,8 +94,8 @@ static unsigned char ibuf[256], *iptr = ibuf; extern int _putchar(); #endif -static unsigned char getchr __P((void)); -static void send_stuff __P((void)); +static unsigned char getchr(void); +static void send_stuff(void); /* * playit: diff --git a/hunt/huntd/driver.c b/hunt/huntd/driver.c index 7563c464..1ca803e8 100644 --- a/hunt/huntd/driver.c +++ b/hunt/huntd/driver.c @@ -1,4 +1,4 @@ -/* $NetBSD: driver.c,v 1.9 2003/06/11 12:00:22 wiz Exp $ */ +/* $NetBSD: driver.c,v 1.10 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: driver.c,v 1.9 2003/06/11 12:00:22 wiz Exp $"); +__RCSID("$NetBSD: driver.c,v 1.10 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ # include <sys/ioctl.h> @@ -68,13 +68,13 @@ u_short stat_port; /* port # of statistics tcp socket */ # define DAEMON_SIZE (sizeof Daemon - 1) # endif -static void clear_scores __P((void)); -static int havechar __P((PLAYER *, int)); -static void init __P((void)); - int main __P((int, char *[], char *[])); -static void makeboots __P((void)); -static void send_stats __P((void)); -static void zap __P((PLAYER *, FLAG, int)); +static void clear_scores(void); +static int havechar(PLAYER *, int); +static void init(void); + int main(int, char *[], char *[]); +static void makeboots(void); +static void send_stats(void); +static void zap(PLAYER *, FLAG, int); /* diff --git a/hunt/huntd/execute.c b/hunt/huntd/execute.c index 52db4737..36ee8b4f 100644 --- a/hunt/huntd/execute.c +++ b/hunt/huntd/execute.c @@ -1,4 +1,4 @@ -/* $NetBSD: execute.c,v 1.3 2003/06/11 12:00:22 wiz Exp $ */ +/* $NetBSD: execute.c,v 1.4 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,19 +32,19 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: execute.c,v 1.3 2003/06/11 12:00:22 wiz Exp $"); +__RCSID("$NetBSD: execute.c,v 1.4 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ # include <stdlib.h> # include "hunt.h" -static void cloak __P((PLAYER *)); -static void face __P((PLAYER *, int)); -static void fire __P((PLAYER *, int)); -static void fire_slime __P((PLAYER *, int)); -static void move_player __P((PLAYER *, int)); -static void pickup __P((PLAYER *, int, int, int, int)); -static void scan __P((PLAYER *)); +static void cloak(PLAYER *); +static void face(PLAYER *, int); +static void fire(PLAYER *, int); +static void fire_slime(PLAYER *, int); +static void move_player(PLAYER *, int); +static void pickup(PLAYER *, int, int, int, int); +static void scan(PLAYER *); # ifdef MONITOR diff --git a/hunt/huntd/expl.c b/hunt/huntd/expl.c index 0d97b4c1..82c91cb3 100644 --- a/hunt/huntd/expl.c +++ b/hunt/huntd/expl.c @@ -1,4 +1,4 @@ -/* $NetBSD: expl.c,v 1.3 2003/06/11 12:00:22 wiz Exp $ */ +/* $NetBSD: expl.c,v 1.4 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,13 +32,13 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: expl.c,v 1.3 2003/06/11 12:00:22 wiz Exp $"); +__RCSID("$NetBSD: expl.c,v 1.4 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ # include <stdlib.h> # include "hunt.h" -static void remove_wall __P((int, int)); +static void remove_wall(int, int); /* diff --git a/hunt/huntd/faketalk.c b/hunt/huntd/faketalk.c index c8d64a54..c9237b5a 100644 --- a/hunt/huntd/faketalk.c +++ b/hunt/huntd/faketalk.c @@ -1,4 +1,4 @@ -/* $NetBSD: faketalk.c,v 1.8 2003/06/11 12:00:22 wiz Exp $ */ +/* $NetBSD: faketalk.c,v 1.9 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: faketalk.c,v 1.8 2003/06/11 12:00:22 wiz Exp $"); +__RCSID("$NetBSD: faketalk.c,v 1.9 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ #include "bsd.h" @@ -66,8 +66,8 @@ extern char *my_machine_name; extern char *First_arg, *Last_arg; extern char **environ; -static void do_announce __P((char *)); -SIGNAL_TYPE exorcise __P((int)); +static void do_announce(char *); +SIGNAL_TYPE exorcise(int); /* * exorcise - disspell zombies */ diff --git a/hunt/huntd/hunt.h b/hunt/huntd/hunt.h index b5dc9870..10f35af5 100644 --- a/hunt/huntd/hunt.h +++ b/hunt/huntd/hunt.h @@ -1,4 +1,4 @@ -/* $NetBSD: hunt.h,v 1.9 2003/06/11 12:04:06 wiz Exp $ */ +/* $NetBSD: hunt.h,v 1.10 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -415,67 +415,67 @@ extern FLAG no_beep; * function types */ -void add_shot __P((int, int, int, char, int, PLAYER *, int, char)); -int answer __P((void)); -void bad_con __P((void)); -void bad_ver __P((void)); -int broadcast_vec __P((int, struct sockaddr **)); -void ce __P((PLAYER *)); -void cgoto __P((PLAYER *, int, int)); -void check __P((PLAYER *, int, int)); -void checkdam __P((PLAYER *, PLAYER *, IDENT *, int, char)); -void clearwalls __P((void)); -void clear_eol __P((void)); -void clear_the_screen __P((void)); -void clrscr __P((PLAYER *)); -BULLET *create_shot __P((int, int, int, char, int, int, PLAYER *, - IDENT *, int, char)); -void do_connect __P((char *, char, long)); -void do_message __P((void)); -void drawmaze __P((PLAYER *)); -void drawplayer __P((PLAYER *, FLAG)); -void drawstatus __P((PLAYER *)); -void execute __P((PLAYER *)); -void faketalk __P((void)); -void find_driver __P((FLAG)); -void fixshots __P((int, int, char)); -IDENT *get_ident __P((u_long, u_long, char *, char)); -void get_local_name __P((char *)); -int get_remote_name __P((char *)); -BULLET *is_bullet __P((int, int)); -void look __P((PLAYER *)); -void makemaze __P((void)); -void message __P((PLAYER *, char *)); -void mon_execute __P((PLAYER *)); -void moveshots __P((void)); -void open_ctl __P((void)); -int opposite __P((int, char)); -void otto __P((int, int, char)); -void outch __P((PLAYER *, int)); -void outstr __P((PLAYER *, char *, int)); -int player_sym __P((PLAYER *, int, int)); -PLAYER *play_at __P((int, int)); -void playit __P((void)); -void put_ch __P((char)); -void put_str __P((char *)); -int quit __P((int)); -int rand_dir __P((void)); -int rand_num __P((int)); -void redraw_screen __P((void)); -void rmnl __P((char *)); -void rollexpl __P((void)); -void see __P((PLAYER *, int)); -void sendcom __P((PLAYER *, int, ...)); -void showexpl __P((int, int, char)); -void showstat __P((PLAYER *)); -void start_driver __P((void)); -void stmonitor __P((PLAYER *)); -void stplayer __P((PLAYER *, int)); -char translate __P((char)); -SIGNAL_TYPE cleanup __P((int)) __attribute__((__noreturn__)); -SIGNAL_TYPE intr __P((int)); -SIGNAL_TYPE sigalrm __P((int)); -SIGNAL_TYPE sigemt __P((int)); -SIGNAL_TYPE sigterm __P((int)); -SIGNAL_TYPE sigusr1 __P((int)); -SIGNAL_TYPE tstp __P((int)); +void add_shot(int, int, int, char, int, PLAYER *, int, char); +int answer(void); +void bad_con(void); +void bad_ver(void); +int broadcast_vec(int, struct sockaddr **); +void ce(PLAYER *); +void cgoto(PLAYER *, int, int); +void check(PLAYER *, int, int); +void checkdam(PLAYER *, PLAYER *, IDENT *, int, char); +void clearwalls(void); +void clear_eol(void); +void clear_the_screen(void); +void clrscr(PLAYER *); +BULLET *create_shot(int, int, int, char, int, int, PLAYER *, + IDENT *, int, char); +void do_connect(char *, char, long); +void do_message(void); +void drawmaze(PLAYER *); +void drawplayer(PLAYER *, FLAG); +void drawstatus(PLAYER *); +void execute(PLAYER *); +void faketalk(void); +void find_driver(FLAG); +void fixshots(int, int, char); +IDENT *get_ident(u_long, u_long, char *, char); +void get_local_name(char *); +int get_remote_name(char *); +BULLET *is_bullet(int, int); +void look(PLAYER *); +void makemaze(void); +void message(PLAYER *, char *); +void mon_execute(PLAYER *); +void moveshots(void); +void open_ctl(void); +int opposite(int, char); +void otto(int, int, char); +void outch(PLAYER *, int); +void outstr(PLAYER *, char *, int); +int player_sym(PLAYER *, int, int); +PLAYER *play_at(int, int); +void playit(void); +void put_ch(char); +void put_str(char *); +int quit(int); +int rand_dir(void); +int rand_num(int); +void redraw_screen(void); +void rmnl(char *); +void rollexpl(void); +void see(PLAYER *, int); +void sendcom(PLAYER *, int, ...); +void showexpl(int, int, char); +void showstat(PLAYER *); +void start_driver(void); +void stmonitor(PLAYER *); +void stplayer(PLAYER *, int); +char translate(char); +SIGNAL_TYPE cleanup(int) __attribute__((__noreturn__)); +SIGNAL_TYPE intr(int); +SIGNAL_TYPE sigalrm(int); +SIGNAL_TYPE sigemt(int); +SIGNAL_TYPE sigterm(int); +SIGNAL_TYPE sigusr1(int); +SIGNAL_TYPE tstp(int); diff --git a/hunt/huntd/makemaze.c b/hunt/huntd/makemaze.c index e4c55535..4b58f92f 100644 --- a/hunt/huntd/makemaze.c +++ b/hunt/huntd/makemaze.c @@ -1,4 +1,4 @@ -/* $NetBSD: makemaze.c,v 1.3 2003/06/11 12:00:22 wiz Exp $ */ +/* $NetBSD: makemaze.c,v 1.4 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: makemaze.c,v 1.3 2003/06/11 12:00:22 wiz Exp $"); +__RCSID("$NetBSD: makemaze.c,v 1.4 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ # include "hunt.h" @@ -40,10 +40,10 @@ __RCSID("$NetBSD: makemaze.c,v 1.3 2003/06/11 12:00:22 wiz Exp $"); # define ISCLEAR(y,x) (Maze[y][x] == SPACE) # define ODD(n) ((n) & 01) -static int candig __P((int, int)); -static void dig __P((int, int)); -static void dig_maze __P((int, int)); -static void remap __P((void)); +static int candig(int, int); +static void dig(int, int); +static void dig_maze(int, int); +static void remap(void); void makemaze() diff --git a/hunt/huntd/shots.c b/hunt/huntd/shots.c index 7094dded..d028445f 100644 --- a/hunt/huntd/shots.c +++ b/hunt/huntd/shots.c @@ -1,4 +1,4 @@ -/* $NetBSD: shots.c,v 1.4 2003/06/11 12:00:23 wiz Exp $ */ +/* $NetBSD: shots.c,v 1.5 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: shots.c,v 1.4 2003/06/11 12:00:23 wiz Exp $"); +__RCSID("$NetBSD: shots.c,v 1.5 2004/01/27 20:30:29 jsm Exp $"); #endif /* not lint */ # include <err.h> @@ -43,21 +43,21 @@ __RCSID("$NetBSD: shots.c,v 1.4 2003/06/11 12:00:23 wiz Exp $"); # define PLUS_DELTA(x, max) if (x < max) x++; else x-- # define MINUS_DELTA(x, min) if (x > min) x--; else x++ -static void chkshot __P((BULLET *, BULLET *)); -static void chkslime __P((BULLET *, BULLET *)); -static void explshot __P((BULLET *, int, int)); -static void find_under __P((BULLET *, BULLET *)); -static int iswall __P((int, int)); -static void mark_boot __P((BULLET *)); -static void mark_player __P((BULLET *)); +static void chkshot(BULLET *, BULLET *); +static void chkslime(BULLET *, BULLET *); +static void explshot(BULLET *, int, int); +static void find_under(BULLET *, BULLET *); +static int iswall(int, int); +static void mark_boot(BULLET *); +static void mark_player(BULLET *); #ifdef DRONE -static void move_drone __P((BULLET *)); +static void move_drone(BULLET *); #endif -static void move_flyer __P((PLAYER *)); -static int move_normal_shot __P((BULLET *)); -static void move_slime __P((BULLET *, int, BULLET *)); -static void save_bullet __P((BULLET *)); -static void zapshot __P((BULLET *, BULLET *)); +static void move_flyer(PLAYER *); +static int move_normal_shot(BULLET *); +static void move_slime(BULLET *, int, BULLET *); +static void save_bullet(BULLET *); +static void zapshot(BULLET *, BULLET *); /* * moveshots: diff --git a/hunt/huntd/talk_ctl.h b/hunt/huntd/talk_ctl.h index 5cd995df..d7890123 100644 --- a/hunt/huntd/talk_ctl.h +++ b/hunt/huntd/talk_ctl.h @@ -1,4 +1,4 @@ -/* $NetBSD: talk_ctl.h,v 1.5 2003/06/11 12:00:23 wiz Exp $ */ +/* $NetBSD: talk_ctl.h,v 1.6 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -103,4 +103,4 @@ extern CTL_MSG msg; #define p_error(str) warn(str) #endif -void ctl_transact __P((struct in_addr, CTL_MSG, int, CTL_RESPONSE *)); +void ctl_transact(struct in_addr, CTL_MSG, int, CTL_RESPONSE *); diff --git a/larn/create.c b/larn/create.c index ed7d3f00..444f18c4 100644 --- a/larn/create.c +++ b/larn/create.c @@ -1,16 +1,16 @@ -/* $NetBSD: create.c,v 1.6 1997/10/18 20:03:09 christos Exp $ */ +/* $NetBSD: create.c,v 1.7 2004/01/27 20:30:30 jsm Exp $ */ /* create.c Larn is copyrighted 1986 by Noah Morgan. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: create.c,v 1.6 1997/10/18 20:03:09 christos Exp $"); +__RCSID("$NetBSD: create.c,v 1.7 2004/01/27 20:30:30 jsm Exp $"); #endif /* not lint */ #include "header.h" #include "extern.h" #include <unistd.h> -static void fillroom __P((int, int)); +static void fillroom(int, int); /* makeplayer() diff --git a/larn/display.c b/larn/display.c index 6dbba44b..ab59f2b0 100644 --- a/larn/display.c +++ b/larn/display.c @@ -1,16 +1,16 @@ -/* $NetBSD: display.c,v 1.4 1997/10/18 20:03:15 christos Exp $ */ +/* $NetBSD: display.c,v 1.5 2004/01/27 20:30:30 jsm Exp $ */ /* display.c Larn is copyrighted 1986 by Noah Morgan. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: display.c,v 1.4 1997/10/18 20:03:15 christos Exp $"); +__RCSID("$NetBSD: display.c,v 1.5 2004/01/27 20:30:30 jsm Exp $"); #endif /* not lint */ #include "header.h" #include "extern.h" #define makecode(_a,_b,_c) (((_a)<<16) + ((_b)<<8) + (_c)) -static void botsub __P((int, char *)); +static void botsub(int, char *); static int minx, maxx, miny, maxy, k, m; static char bot1f = 0, bot2f = 0, bot3f = 0; diff --git a/larn/extern.h b/larn/extern.h index 6f496777..2e119ba6 100644 --- a/larn/extern.h +++ b/larn/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.3 2001/02/05 00:57:33 christos Exp $ */ +/* $NetBSD: extern.h,v 1.4 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1997 Christos Zoulas. All rights reserved. @@ -30,283 +30,283 @@ */ /* bill.c */ -void mailbill __P((void)); +void mailbill(void); /* config.c */ /* create.c */ -void makeplayer __P((void)); -void newcavelevel __P((int)); -void makemaze __P((int)); -void eat __P((int, int)); -int cannedlevel __P((int)); -void treasureroom __P((int)); -void troom __P((int, int, int, int, int, int)); -void makeobject __P((int)); -void fillmroom __P((int, int, int)); -void froom __P((int, int, int)); -int fillmonst __P((int)); -void sethp __P((int)); -void checkgen __P((void)); +void makeplayer(void); +void newcavelevel(int); +void makemaze(int); +void eat(int, int); +int cannedlevel(int); +void treasureroom(int); +void troom(int, int, int, int, int, int); +void makeobject(int); +void fillmroom(int, int, int); +void froom(int, int, int); +int fillmonst(int); +void sethp(int); +void checkgen(void); /* data.c */ /* diag.c */ -void diag __P((void)); -int dcount __P((int)); -void diagdrawscreen __P((void)); -int savegame __P((char *)); -void restoregame __P((char *)); -void greedy __P((void)); -void fsorry __P((void)); -void fcheat __P((void)); +void diag(void); +int dcount(int); +void diagdrawscreen(void); +int savegame(char *); +void restoregame(char *); +void greedy(void); +void fsorry(void); +void fcheat(void); /* display.c */ -void bottomline __P((void)); -void bottomhp __P((void)); -void bottomspell __P((void)); -void bottomdo __P((void)); -void bot_linex __P((void)); -void bottomgold __P((void)); -void bot_hpx __P((void)); -void bot_spellx __P((void)); -void botside __P((void)); -void draws __P((int, int, int, int)); -void drawscreen __P((void)); -void showcell __P((int, int)); -void show1cell __P((int, int)); -void showplayer __P((void)); -int moveplayer __P((int)); -void seemagic __P((int)); -void seepage __P((void)); +void bottomline(void); +void bottomhp(void); +void bottomspell(void); +void bottomdo(void); +void bot_linex(void); +void bottomgold(void); +void bot_hpx(void); +void bot_spellx(void); +void botside(void); +void draws(int, int, int, int); +void drawscreen(void); +void showcell(int, int); +void show1cell(int, int); +void showplayer(void); +int moveplayer(int); +void seemagic(int); +void seepage(void); /* fortune.c */ -char *fortune __P((void)); +char *fortune(void); /* global.c */ -void raiselevel __P((void)); -void loselevel __P((void)); -void raiseexperience __P((long)); -void loseexperience __P((long)); -void losehp __P((int)); -void losemhp __P((int)); -void raisehp __P((int)); -void raisemhp __P((int)); -void raisespells __P((int)); -void raisemspells __P((int)); -void losespells __P((int)); -void losemspells __P((int)); -int makemonst __P((int)); -void positionplayer __P((void)); -void recalc __P((void)); -void quit __P((void)); -void more __P((void)); -int take __P((int, int)); -int drop_object __P((int)); -void enchantarmor __P((void)); -void enchweapon __P((void)); -int pocketfull __P((void)); -int nearbymonst __P((void)); -int stealsomething __P((void)); -int emptyhanded __P((void)); -void creategem __P((void)); -void adjustcvalues __P((int, int)); -void gettokstr __P((char *)); -int getpassword __P((void)); -int getyn __P((void)); -int packweight __P((void)); -int rnd __P((int)); -int rund __P((int)); +void raiselevel(void); +void loselevel(void); +void raiseexperience(long); +void loseexperience(long); +void losehp(int); +void losemhp(int); +void raisehp(int); +void raisemhp(int); +void raisespells(int); +void raisemspells(int); +void losespells(int); +void losemspells(int); +int makemonst(int); +void positionplayer(void); +void recalc(void); +void quit(void); +void more(void); +int take(int, int); +int drop_object(int); +void enchantarmor(void); +void enchweapon(void); +int pocketfull(void); +int nearbymonst(void); +int stealsomething(void); +int emptyhanded(void); +void creategem(void); +void adjustcvalues(int, int); +void gettokstr(char *); +int getpassword(void); +int getyn(void); +int packweight(void); +int rnd(int); +int rund(int); /* help.c */ -void help __P((void)); -void welcome __P((void)); -void retcont __P((void)); -int openhelp __P((void)); +void help(void); +void welcome(void); +void retcont(void); +int openhelp(void); /* io.c */ -void setupvt100 __P((void)); -void clearvt100 __P((void)); -int lgetchar __P((void)); -void scbr __P((void)); -void sncbr __P((void)); -void newgame __P((void)); -void lprintf __P((const char *, ...)); -void lprint __P((long)); -void lwrite __P((char *, int)); -long lgetc __P((void)); -long lrint __P((void)); -void lrfill __P((char *, int)); -char *lgetw __P((void)); -char *lgetl __P((void)); -int lcreat __P((char *)); -int lopen __P((char *)); -int lappend __P((char *)); -void lrclose __P((void)); -void lwclose __P((void)); -void lprcat __P((char *)); -void cursor __P((int, int)); -void cursors __P((void)); -void init_term __P((void)); -void cl_line __P((int, int)); -void cl_up __P((int, int)); -void cl_dn __P((int, int)); -void standout __P((char *)); -void set_score_output __P((void)); -void lflush __P((void)); -int xputchar __P((int)); -void flush_buf __P((void)); -char *tmcapcnv __P((char *, char *)); -void beep __P((void)); +void setupvt100(void); +void clearvt100(void); +int lgetchar(void); +void scbr(void); +void sncbr(void); +void newgame(void); +void lprintf(const char *, ...); +void lprint(long); +void lwrite(char *, int); +long lgetc(void); +long lrint(void); +void lrfill(char *, int); +char *lgetw(void); +char *lgetl(void); +int lcreat(char *); +int lopen(char *); +int lappend(char *); +void lrclose(void); +void lwclose(void); +void lprcat(char *); +void cursor(int, int); +void cursors(void); +void init_term(void); +void cl_line(int, int); +void cl_up(int, int); +void cl_dn(int, int); +void standout(char *); +void set_score_output(void); +void lflush(void); +int xputchar(int); +void flush_buf(void); +char *tmcapcnv(char *, char *); +void beep(void); /* main.c */ -int main __P((int, char **)); -void showstr __P((void)); -void qshowstr __P((void)); -void t_setup __P((int)); -void t_endup __P((int)); -void showwear __P((void)); -void showwield __P((void)); -void showread __P((void)); -void showeat __P((void)); -void showquaff __P((void)); -void show1 __P((int, char *[])); -void show3 __P((int)); -void randmonst __P((void)); -void parse __P((void)); -void parse2 __P((void)); -void run __P((int)); -void wield __P((void)); -void ydhi __P((int)); -void ycwi __P((int)); -void wear __P((void)); -void dropobj __P((void)); -void readscr __P((void)); -void eatcookie __P((void)); -void quaff __P((void)); -int whatitem __P((char *)); -unsigned long readnum __P((long)); -void szero __P((char *)); +int main(int, char **); +void showstr(void); +void qshowstr(void); +void t_setup(int); +void t_endup(int); +void showwear(void); +void showwield(void); +void showread(void); +void showeat(void); +void showquaff(void); +void show1(int, char *[]); +void show3(int); +void randmonst(void); +void parse(void); +void parse2(void); +void run(int); +void wield(void); +void ydhi(int); +void ycwi(int); +void wear(void); +void dropobj(void); +void readscr(void); +void eatcookie(void); +void quaff(void); +int whatitem(char *); +unsigned long readnum(long); +void szero(char *); /* monster.c */ -void createmonster __P((int)); -int cgood __P((int, int, int, int)); -void createitem __P((int, int)); -void cast __P((void)); -void speldamage __P((int)); -void loseint __P((void)); -int isconfuse __P((void)); -int nospell __P((int, int)); -int fullhit __P((int)); -void direct __P((int, int, char *, int)); -void godirect __P((int, int, char *, int, int)); -void ifblind __P((int, int)); -void tdirect __P((int)); -void omnidirect __P((int, int, char *)); -int vxy __P((int *, int *)); -void dirpoly __P((int)); -void hitmonster __P((int, int)); -int hitm __P((int, int, int)); -void hitplayer __P((int, int)); -void dropsomething __P((int)); -void dropgold __P((int)); -void something __P((int)); -int newobject __P((int, int *)); -int spattack __P((int, int, int)); -void checkloss __P((int)); -int annihilate __P((void)); -int newsphere __P((int, int, int, int)); -int rmsphere __P((int, int)); -void sphboom __P((int, int)); -void genmonst __P((void)); +void createmonster(int); +int cgood(int, int, int, int); +void createitem(int, int); +void cast(void); +void speldamage(int); +void loseint(void); +int isconfuse(void); +int nospell(int, int); +int fullhit(int); +void direct(int, int, char *, int); +void godirect(int, int, char *, int, int); +void ifblind(int, int); +void tdirect(int); +void omnidirect(int, int, char *); +int vxy(int *, int *); +void dirpoly(int); +void hitmonster(int, int); +int hitm(int, int, int); +void hitplayer(int, int); +void dropsomething(int); +void dropgold(int); +void something(int); +int newobject(int, int *); +int spattack(int, int, int); +void checkloss(int); +int annihilate(void); +int newsphere(int, int, int, int); +int rmsphere(int, int); +void sphboom(int, int); +void genmonst(void); /* moreobj.c */ -void oaltar __P((void)); -void othrone __P((int)); -void odeadthrone __P((void)); -void ochest __P((void)); -void ofountain __P((void)); -void fntchange __P((int)); +void oaltar(void); +void othrone(int); +void odeadthrone(void); +void ochest(void); +void ofountain(void); +void fntchange(int); /* movem.c */ -void movemonst __P((void)); -void movemt __P((int, int)); -void mmove __P((int, int, int, int)); -void movsphere __P((void)); +void movemonst(void); +void movemt(int, int); +void mmove(int, int, int, int); +void movsphere(void); /* nap.c */ -void nap __P((int)); +void nap(int); /* object.c */ -void lookforobject __P((void)); -void finditem __P((int)); -void ostairs __P((int)); -void oteleport __P((int)); -void opotion __P((int)); -void quaffpotion __P((int)); -void oscroll __P((int)); -void adjusttime __P((long)); -void read_scroll __P((int)); -void oorb __P((void)); -void opit __P((void)); -void obottomless __P((void)); -void oelevator __P((int)); -void ostatue __P((void)); -void omirror __P((void)); -void obook __P((void)); -void readbook __P((int)); -void ocookie __P((void)); -void ogold __P((int)); -void ohome __P((void)); -void iopts __P((void)); -void ignore __P((void)); +void lookforobject(void); +void finditem(int); +void ostairs(int); +void oteleport(int); +void opotion(int); +void quaffpotion(int); +void oscroll(int); +void adjusttime(long); +void read_scroll(int); +void oorb(void); +void opit(void); +void obottomless(void); +void oelevator(int); +void ostatue(void); +void omirror(void); +void obook(void); +void readbook(int); +void ocookie(void); +void ogold(int); +void ohome(void); +void iopts(void); +void ignore(void); /* regen.c */ -void regen __P((void)); +void regen(void); /* savelev.c */ -void savelevel __P((void)); -void getlevel __P((void)); +void savelevel(void); +void getlevel(void); /* scores.c */ -int readboard __P((void)); -int writeboard __P((void)); -int makeboard __P((void)); -int hashewon __P((void)); -long paytaxes __P((long)); -int winshou __P((void)); -int shou __P((int)); -void showscores __P((void)); -void showallscores __P((void)); -int sortboard __P((void)); -void newscore __P((long, char *, int, int)); -void new1sub __P((long, int, char *, long)); -void new2sub __P((long, int, char *, int)); -void died __P((int)); -void diedsub __P((int)); -void diedlog __P((void)); -int getplid __P((char *)); +int readboard(void); +int writeboard(void); +int makeboard(void); +int hashewon(void); +long paytaxes(long); +int winshou(void); +int shou(int); +void showscores(void); +void showallscores(void); +int sortboard(void); +void newscore(long, char *, int, int); +void new1sub(long, int, char *, long); +void new2sub(long, int, char *, int); +void died(int); +void diedsub(int); +void diedlog(void); +int getplid(char *); /* signal.c */ -void sigsetup __P((void)); +void sigsetup(void); /* store.c */ -void dnd_2hed __P((void)); -void dnd_hed __P((void)); -void dndstore __P((void)); -void sch_hed __P((void)); -void oschool __P((void)); -void obank __P((void)); -void obank2 __P((void)); -void ointerest __P((void)); -void obanksub __P((void)); -void appraise __P((int)); -void otradepost __P((void)); -void cnsitm __P((void)); -void olrs __P((void)); +void dnd_2hed(void); +void dnd_hed(void); +void dndstore(void); +void sch_hed(void); +void oschool(void); +void obank(void); +void obank2(void); +void ointerest(void); +void obanksub(void); +void appraise(int); +void otradepost(void); +void cnsitm(void); +void olrs(void); /* tok.c */ -int yylex __P((void)); -void flushall __P((void)); -void sethard __P((int)); -void readopts __P((void)); +int yylex(void); +void flushall(void); +void sethard(int); +void readopts(void); diff --git a/larn/monster.c b/larn/monster.c index 5d0562a9..7d5dd4b9 100644 --- a/larn/monster.c +++ b/larn/monster.c @@ -1,4 +1,4 @@ -/* $NetBSD: monster.c,v 1.7 2001/02/05 00:57:33 christos Exp $ */ +/* $NetBSD: monster.c,v 1.8 2004/01/27 20:30:30 jsm Exp $ */ /* * monster.c Larn is copyrighted 1986 by Noah Morgan. @@ -100,7 +100,7 @@ */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: monster.c,v 1.7 2001/02/05 00:57:33 christos Exp $"); +__RCSID("$NetBSD: monster.c,v 1.8 2004/01/27 20:30:30 jsm Exp $"); #endif /* not lint */ #include <string.h> @@ -114,7 +114,7 @@ struct isave { /* used for altar reality */ short arg; /* the type of item or hitpoints of monster */ }; -static int dirsub __P((int *, int *)); +static int dirsub(int *, int *); /* * createmonster(monstno) Function to create a monster next to the player * int monstno; diff --git a/larn/moreobj.c b/larn/moreobj.c index f2fe8bcb..ab236281 100644 --- a/larn/moreobj.c +++ b/larn/moreobj.c @@ -1,4 +1,4 @@ -/* $NetBSD: moreobj.c,v 1.5 2001/02/05 00:57:34 christos Exp $ */ +/* $NetBSD: moreobj.c,v 1.6 2004/01/27 20:30:30 jsm Exp $ */ /* * moreobj.c Larn is copyrighted 1986 by Noah Morgan. @@ -9,15 +9,15 @@ */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: moreobj.c,v 1.5 2001/02/05 00:57:34 christos Exp $"); +__RCSID("$NetBSD: moreobj.c,v 1.6 2004/01/27 20:30:30 jsm Exp $"); #endif /* not lint */ #include <stdlib.h> #include <unistd.h> #include "header.h" #include "extern.h" -static void ohear __P((void)); -static void fch __P((int, long *)); +static void ohear(void); +static void fch(int, long *); /* * ****** diff --git a/larn/signal.c b/larn/signal.c index 2b08a052..42493424 100644 --- a/larn/signal.c +++ b/larn/signal.c @@ -1,10 +1,10 @@ -/* $NetBSD: signal.c,v 1.7 2001/02/05 00:57:34 christos Exp $ */ +/* $NetBSD: signal.c,v 1.8 2004/01/27 20:30:30 jsm Exp $ */ /* "Larn is copyrighted 1986 by Noah Morgan.\n" */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: signal.c,v 1.7 2001/02/05 00:57:34 christos Exp $"); +__RCSID("$NetBSD: signal.c,v 1.8 2004/01/27 20:30:30 jsm Exp $"); #endif /* not lint */ #include <signal.h> @@ -14,11 +14,11 @@ __RCSID("$NetBSD: signal.c,v 1.7 2001/02/05 00:57:34 christos Exp $"); #include "header.h" #include "extern.h" -static void s2choose __P((void)); -static void cntlc __P((int)); -static void sgam __P((int)); -static void tstop __P((int)); -static void sigpanic __P((int)); +static void s2choose(void); +static void cntlc(int); +static void sgam(int); +static void tstop(int); +static void sigpanic(int); #define BIT(a) (1<<((a)-1)) diff --git a/larn/store.c b/larn/store.c index 7c963d55..eaa92e52 100644 --- a/larn/store.c +++ b/larn/store.c @@ -1,4 +1,4 @@ -/* $NetBSD: store.c,v 1.9 2003/08/07 09:37:23 agc Exp $ */ +/* $NetBSD: store.c,v 1.10 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)store.c 5.4 (Berkeley) 5/13/91"; #else -__RCSID("$NetBSD: store.c,v 1.9 2003/08/07 09:37:23 agc Exp $"); +__RCSID("$NetBSD: store.c,v 1.10 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -42,12 +42,12 @@ __RCSID("$NetBSD: store.c,v 1.9 2003/08/07 09:37:23 agc Exp $"); #include "header.h" #include "extern.h" -static void handsfull __P((void)); -static void outofstock __P((void)); -static void nogold __P((void)); -static void dnditem __P((int)); -static void banktitle __P((char *)); -static void otradhead __P((void)); +static void handsfull(void); +static void outofstock(void); +static void nogold(void); +static void dnditem(int); +static void banktitle(char *); +static void otradhead(void); static int dndcount = 0, dnditm = 0; diff --git a/mille/mille.h b/mille/mille.h index ea737385..523d6f8e 100644 --- a/mille/mille.h +++ b/mille/mille.h @@ -1,4 +1,4 @@ -/* $NetBSD: mille.h,v 1.12 2003/08/07 09:37:25 agc Exp $ */ +/* $NetBSD: mille.h,v 1.13 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1982, 1993 @@ -231,40 +231,40 @@ extern WINDOW *Board, *Miles, *Score; * functions */ -void account __P((CARD)); -void calcmove __P((void)); -int canplay __P((const PLAY *, const PLAY *, CARD)); -int check_ext __P((bool)); -void check_go __P((void)); -void check_more __P((void)); -void die __P((int)) __attribute__((__noreturn__)); -void domove __P((void)); -bool error __P((const char *, ...)); -void extrapolate __P((PLAY *)); -void finalscore __P((PLAY *)); -CARD getcard __P((void)); -void getmove __P((void)); -int getyn __P((int)); -int haspicked __P((const PLAY *)); -void init __P((void)); -int is_repair __P((CARD)); -int main __P((int, char **)); -void newboard __P((void)); -void newscore __P((void)); -int onecard __P((const PLAY *)); -int playcard __P((PLAY *)); -void prboard __P((void)); -void prompt __P((int)); -void prscore __P((bool)); -int readch __P((void)); -bool rest_f __P((const char *)); -int roll __P((int, int)); -void rub __P((int)); -int safety __P((CARD)); -bool save __P((void)); -void show_card __P((int, int, CARD, CARD *)); -void show_score __P((int, int, int, int *)); -void shuffle __P((void)); -void sort __P((CARD *)); -void undoex __P((int)); -bool varpush __P((int, ssize_t __P((int, const struct iovec *, int)))); +void account(CARD); +void calcmove(void); +int canplay(const PLAY *, const PLAY *, CARD); +int check_ext(bool); +void check_go(void); +void check_more(void); +void die(int) __attribute__((__noreturn__)); +void domove(void); +bool error(const char *, ...); +void extrapolate(PLAY *); +void finalscore(PLAY *); +CARD getcard(void); +void getmove(void); +int getyn(int); +int haspicked(const PLAY *); +void init(void); +int is_repair(CARD); +int main(int, char **); +void newboard(void); +void newscore(void); +int onecard(const PLAY *); +int playcard(PLAY *); +void prboard(void); +void prompt(int); +void prscore(bool); +int readch(void); +bool rest_f(const char *); +int roll(int, int); +void rub(int); +int safety(CARD); +bool save(void); +void show_card(int, int, CARD, CARD *); +void show_score(int, int, int, int *); +void shuffle(void); +void sort(CARD *); +void undoex(int); +bool varpush(int, ssize_t (int, const struct iovec *, int)); diff --git a/mille/table.c b/mille/table.c index 9a54668f..d2201732 100644 --- a/mille/table.c +++ b/mille/table.c @@ -1,4 +1,4 @@ -/* $NetBSD: table.c,v 1.6 2003/08/07 09:37:26 agc Exp $ */ +/* $NetBSD: table.c,v 1.7 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1982, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1982, 1993\n\ #if 0 static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: table.c,v 1.6 2003/08/07 09:37:26 agc Exp $"); +__RCSID("$NetBSD: table.c,v 1.7 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -51,7 +51,7 @@ __RCSID("$NetBSD: table.c,v 1.6 2003/08/07 09:37:26 agc Exp $"); # include "mille.h" -int main __P((int, char **)); +int main(int, char **); int main(argc, argv) diff --git a/mille/varpush.c b/mille/varpush.c index 8e6cf905..47c10555 100644 --- a/mille/varpush.c +++ b/mille/varpush.c @@ -1,4 +1,4 @@ -/* $NetBSD: varpush.c,v 1.7 2003/08/07 09:37:26 agc Exp $ */ +/* $NetBSD: varpush.c,v 1.8 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1982, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)varpush.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: varpush.c,v 1.7 2003/08/07 09:37:26 agc Exp $"); +__RCSID("$NetBSD: varpush.c,v 1.8 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -52,7 +52,7 @@ __RCSID("$NetBSD: varpush.c,v 1.7 2003/08/07 09:37:26 agc Exp $"); bool varpush(file, func) int file; - ssize_t (*func) __P((int, const struct iovec *, int)); + ssize_t (*func)(int, const struct iovec *, int); { int temp; const struct iovec vec[] = { diff --git a/monop/cards.c b/monop/cards.c index db31fb5b..cd0e2362 100644 --- a/monop/cards.c +++ b/monop/cards.c @@ -1,4 +1,4 @@ -/* $NetBSD: cards.c,v 1.13 2003/08/07 09:37:27 agc Exp $ */ +/* $NetBSD: cards.c,v 1.14 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)cards.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: cards.c,v 1.13 2003/08/07 09:37:27 agc Exp $"); +__RCSID("$NetBSD: cards.c,v 1.14 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -57,8 +57,8 @@ static const char *cardfile = "cards.pck"; static FILE *deckf; -static void set_up __P((DECK *)); -static void printmes __P((void)); +static void set_up(DECK *); +static void printmes(void); /* * This routine initializes the decks from the data file, diff --git a/monop/execute.c b/monop/execute.c index f1e63433..828d9908 100644 --- a/monop/execute.c +++ b/monop/execute.c @@ -1,4 +1,4 @@ -/* $NetBSD: execute.c,v 1.10 2003/08/07 09:37:27 agc Exp $ */ +/* $NetBSD: execute.c,v 1.11 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)execute.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: execute.c,v 1.10 2003/08/07 09:37:27 agc Exp $"); +__RCSID("$NetBSD: execute.c,v 1.11 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -57,7 +57,7 @@ static char buf[257]; static bool new_play; /* set if move on to new player */ extern void *heapstart; -static void show_move __P((void)); +static void show_move(void); /* * This routine executes the given command by index number diff --git a/monop/getinp.c b/monop/getinp.c index 9c4f948c..3fb739b4 100644 --- a/monop/getinp.c +++ b/monop/getinp.c @@ -1,4 +1,4 @@ -/* $NetBSD: getinp.c,v 1.11 2003/08/07 09:37:27 agc Exp $ */ +/* $NetBSD: getinp.c,v 1.12 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)getinp.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: getinp.c,v 1.11 2003/08/07 09:37:27 agc Exp $"); +__RCSID("$NetBSD: getinp.c,v 1.12 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -47,7 +47,7 @@ __RCSID("$NetBSD: getinp.c,v 1.11 2003/08/07 09:37:27 agc Exp $"); static char buf[257]; -static int comp __P((const char *)); +static int comp(const char *); int getinp(prompt, list) diff --git a/monop/houses.c b/monop/houses.c index b5a2d8b0..980f784a 100644 --- a/monop/houses.c +++ b/monop/houses.c @@ -1,4 +1,4 @@ -/* $NetBSD: houses.c,v 1.7 2003/08/07 09:37:27 agc Exp $ */ +/* $NetBSD: houses.c,v 1.8 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)houses.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: houses.c,v 1.7 2003/08/07 09:37:27 agc Exp $"); +__RCSID("$NetBSD: houses.c,v 1.8 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -45,9 +45,9 @@ static char cur_prop[80]; static MON *monops[N_MON]; -static void buy_h __P((MON *)); -static void sell_h __P((MON *)); -static void list_cur __P((MON *)); +static void buy_h(MON *); +static void sell_h(MON *); +static void list_cur(MON *); /* * These routines deal with buying and selling houses */ diff --git a/monop/malloc.c b/monop/malloc.c index 7596d815..f5b02396 100644 --- a/monop/malloc.c +++ b/monop/malloc.c @@ -1,4 +1,4 @@ -/* $NetBSD: malloc.c,v 1.2 2003/08/07 09:37:28 agc Exp $ */ +/* $NetBSD: malloc.c,v 1.3 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)malloc.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: malloc.c,v 1.2 2003/08/07 09:37:28 agc Exp $"); +__RCSID("$NetBSD: malloc.c,v 1.3 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -120,16 +120,16 @@ static u_int nmalloc[NBUCKETS]; static mutex_t malloc_mutex = MUTEX_INITIALIZER; -static void morecore __P((int)); -static int findbucket __P((union overhead *, int)); +static void morecore(int); +static int findbucket(union overhead *, int); #ifdef MSTATS -void mstats __P((const char *)); +void mstats(const char *); #endif #if defined(DEBUG) || defined(RCHECK) #define ASSERT(p) if (!(p)) botch(__STRING(p)) -static void botch __P((const char *)); +static void botch(const char *); /* * NOTE: since this may be called while malloc_mutex is locked, stdio must not diff --git a/monop/monop.c b/monop/monop.c index 0e353e58..48cd7695 100644 --- a/monop/monop.c +++ b/monop/monop.c @@ -1,4 +1,4 @@ -/* $NetBSD: monop.c,v 1.14 2003/08/07 09:37:28 agc Exp $ */ +/* $NetBSD: monop.c,v 1.15 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)monop.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: monop.c,v 1.14 2003/08/07 09:37:28 agc Exp $"); +__RCSID("$NetBSD: monop.c,v 1.15 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -49,11 +49,11 @@ __RCSID("$NetBSD: monop.c,v 1.14 2003/08/07 09:37:28 agc Exp $"); #include <unistd.h> #include "monop.def" -int main __P((int, char *[])); -static void getplayers __P((void)); -static void init_players __P((void)); -static void init_monops __P((void)); -static void do_quit __P((int)); +int main(int, char *[]); +static void getplayers(void); +static void init_players(void); +static void init_monops(void); +static void do_quit(int); void *heapstart; /* diff --git a/monop/monop.def b/monop/monop.def index c9462abc..b5951b8a 100644 --- a/monop/monop.def +++ b/monop/monop.def @@ -1,4 +1,4 @@ -/* $NetBSD: monop.def,v 1.8 2004/01/26 09:59:36 jsm Exp $ */ +/* $NetBSD: monop.def,v 1.9 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -76,7 +76,7 @@ int player, /* current player number */ num_luck = sizeof lucky_mes / sizeof (char *); /* list of command functions */ -void (*const func[]) __P((void)) = { /* array of function calls for commands */ +void (*const func[])(void) = { /* array of function calls for commands */ quit, /* quit game |* 0 *| */ printboard, /* print board |* 1 *| */ where, /* where players are |* 2 *| */ diff --git a/monop/monop.ext b/monop/monop.ext index f1214ab2..65652f6b 100644 --- a/monop/monop.ext +++ b/monop/monop.ext @@ -1,4 +1,4 @@ -/* $NetBSD: monop.ext,v 1.6 2004/01/26 09:59:36 jsm Exp $ */ +/* $NetBSD: monop.ext,v 1.7 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -40,7 +40,7 @@ extern const char *const yncoms[], *const comlist[], *name_list[], *const lucky_ extern int num_play, player, num_doub, num_luck; -extern void (*const func[]) __P((void)); +extern void (*const func[])(void); extern DECK deck[2]; diff --git a/monop/monop.h b/monop/monop.h index 4b87996f..0dd92574 100644 --- a/monop/monop.h +++ b/monop/monop.h @@ -1,4 +1,4 @@ -/* $NetBSD: monop.h,v 1.11 2003/08/07 09:37:29 agc Exp $ */ +/* $NetBSD: monop.h,v 1.12 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -134,74 +134,74 @@ typedef struct prp_st UTIL_S; /* cards.c */ -void init_decks __P((void)); -void get_card __P((DECK *)); +void init_decks(void); +void get_card(DECK *); /* execute.c */ -void execute __P((int)); -void do_move __P((void)); -void move __P((int)); -void save __P((void)); -void restore __P((void)); -int rest_f __P((const char *)); +void execute(int); +void do_move(void); +void move(int); +void save(void); +void restore(void); +int rest_f(const char *); /* getinp.c */ -int getinp __P((const char *, const char *const [])); +int getinp(const char *, const char *const []); /* houses.c */ -void buy_houses __P((void)); -void sell_houses __P((void)); +void buy_houses(void); +void sell_houses(void); /* jail.c */ -void card __P((void)); -void ret_card __P((PLAY *)); -void pay __P((void)); -int move_jail __P((int, int )); -void printturn __P((void)); +void card(void); +void ret_card(PLAY *); +void pay(void); +int move_jail(int, int ); +void printturn(void); /* misc.c */ -int getyn __P((const char *)); -void notify __P((void)); -void next_play __P((void)); -int get_int __P((const char *)); -void set_ownlist __P((int)); -void is_monop __P((MON *, int)); -void is_not_monop __P((MON *)); -void list __P((void)); -void list_all __P((void)); -void quit __P((void)); +int getyn(const char *); +void notify(void); +void next_play(void); +int get_int(const char *); +void set_ownlist(int); +void is_monop(MON *, int); +void is_not_monop(MON *); +void list(void); +void list_all(void); +void quit(void); /* morg.c */ -void mortgage __P((void)); -void unmortgage __P((void)); -void force_morg __P((void)); +void mortgage(void); +void unmortgage(void); +void force_morg(void); /* print.c */ -void printboard __P((void)); -void where __P((void)); -void printsq __P((int, bool)); -void printhold __P((int)); +void printboard(void); +void where(void); +void printsq(int, bool); +void printhold(int); /* prop.c */ -void buy __P((int, SQUARE *)); -void add_list __P((int, OWN **, int)); -void del_list __P((int, OWN **, short)); -void bid __P((void)); -int prop_worth __P((PLAY *)); +void buy(int, SQUARE *); +void add_list(int, OWN **, int); +void del_list(int, OWN **, short); +void bid(void); +int prop_worth(PLAY *); /* rent.c */ -void rent __P((SQUARE *)); +void rent(SQUARE *); /* roll.c */ -int roll __P((int, int)); +int roll(int, int); /* spec.c */ -void inc_tax __P((void)); -void goto_jail __P((void)); -void lux_tax __P((void)); -void cc __P((void)); -void chance __P((void)); +void inc_tax(void); +void goto_jail(void); +void lux_tax(void); +void cc(void); +void chance(void); /* trade.c */ -void trade __P((void)); -void resign __P((void)); +void trade(void); +void resign(void); diff --git a/monop/morg.c b/monop/morg.c index cfdbff98..4b8e69f6 100644 --- a/monop/morg.c +++ b/monop/morg.c @@ -1,4 +1,4 @@ -/* $NetBSD: morg.c,v 1.9 2003/08/07 09:37:29 agc Exp $ */ +/* $NetBSD: morg.c,v 1.10 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)morg.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: morg.c,v 1.9 2003/08/07 09:37:29 agc Exp $"); +__RCSID("$NetBSD: morg.c,v 1.10 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -69,11 +69,11 @@ static short square[MAX_PRP+2]; static int num_good,got_houses; -static int set_mlist __P((void)); -static void m __P((int)); -static int set_umlist __P((void)); -static void unm __P((int)); -static void fix_ex __P((int)); +static int set_mlist(void); +static void m(int); +static int set_umlist(void); +static void unm(int); +static void fix_ex(int); /* * This routine is the command level response the mortgage command. diff --git a/monop/print.c b/monop/print.c index 8446abc7..9cd3c95b 100644 --- a/monop/print.c +++ b/monop/print.c @@ -1,4 +1,4 @@ -/* $NetBSD: print.c,v 1.7 2003/08/07 09:37:29 agc Exp $ */ +/* $NetBSD: print.c,v 1.8 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: print.c,v 1.7 2003/08/07 09:37:29 agc Exp $"); +__RCSID("$NetBSD: print.c,v 1.8 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -42,7 +42,7 @@ __RCSID("$NetBSD: print.c,v 1.7 2003/08/07 09:37:29 agc Exp $"); static const char *header = "Name Own Price Mg # Rent"; -static void printmorg __P((const SQUARE *)); +static void printmorg(const SQUARE *); /* * This routine prints out the current board diff --git a/monop/prop.c b/monop/prop.c index dd0fd2c4..2580a62d 100644 --- a/monop/prop.c +++ b/monop/prop.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop.c,v 1.8 2003/08/07 09:37:29 agc Exp $ */ +/* $NetBSD: prop.c,v 1.9 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,14 +34,14 @@ #if 0 static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: prop.c,v 1.8 2003/08/07 09:37:29 agc Exp $"); +__RCSID("$NetBSD: prop.c,v 1.9 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ #include <stdlib.h> #include "monop.ext" -static int value __P((SQUARE *)); +static int value(SQUARE *); /* * This routine deals with buying property, setting all the diff --git a/monop/trade.c b/monop/trade.c index e28a68e3..ff60ca0a 100644 --- a/monop/trade.c +++ b/monop/trade.c @@ -1,4 +1,4 @@ -/* $NetBSD: trade.c,v 1.8 2003/08/07 09:37:30 agc Exp $ */ +/* $NetBSD: trade.c,v 1.9 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)trade.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: trade.c,v 1.8 2003/08/07 09:37:30 agc Exp $"); +__RCSID("$NetBSD: trade.c,v 1.9 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -55,11 +55,11 @@ static int used[MAX_PRP]; static TRADE trades[2]; -static void get_list __P((int, int )); -static int set_list __P((OWN *)); -static void summate __P((void)); -static void do_trade __P((void)); -static void move_em __P((TRADE *, TRADE *)); +static void get_list(int, int ); +static int set_list(OWN *); +static void summate(void); +static void do_trade(void); +static void move_em(TRADE *, TRADE *); void trade() diff --git a/morse/morse.c b/morse/morse.c index 34497ac7..076bec51 100644 --- a/morse/morse.c +++ b/morse/morse.c @@ -1,4 +1,4 @@ -/* $NetBSD: morse.c,v 1.11 2003/08/07 09:37:30 agc Exp $ */ +/* $NetBSD: morse.c,v 1.12 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1988, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ #if 0 static char sccsid[] = "@(#)morse.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: morse.c,v 1.11 2003/08/07 09:37:30 agc Exp $"); +__RCSID("$NetBSD: morse.c,v 1.12 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -95,10 +95,10 @@ static const char "--..", }; -int main __P((int, char *[])); -void morse __P((int)); -void decode __P((const char *)); -void show __P((const char *)); +int main(int, char *[]); +void morse(int); +void decode(const char *); +void show(const char *); static int sflag; static int dflag; diff --git a/number/number.c b/number/number.c index 865e59f9..89cb17a9 100644 --- a/number/number.c +++ b/number/number.c @@ -1,4 +1,4 @@ -/* $NetBSD: number.c,v 1.8 2003/08/07 09:37:31 agc Exp $ */ +/* $NetBSD: number.c,v 1.9 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1988, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)number.c 8.3 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: number.c,v 1.8 2003/08/07 09:37:31 agc Exp $"); +__RCSID("$NetBSD: number.c,v 1.9 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -76,12 +76,12 @@ static const char *const name1[] = { "novemdecillion", "vigintillion", }; -void convert __P((char *)); -int main __P((int, char *[])); -int number __P((const char *, int)); -void pfract __P((int)); -int unit __P((int, const char *)); -void usage __P((void)) __attribute__((__noreturn__)); +void convert(char *); +int main(int, char *[]); +int number(const char *, int); +void pfract(int); +int unit(int, const char *); +void usage(void) __attribute__((__noreturn__)); int lflag; @@ -1,4 +1,4 @@ -/* $NetBSD: pig.c,v 1.9 2003/08/07 09:37:32 agc Exp $ */ +/* $NetBSD: pig.c,v 1.10 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\ #if 0 static char sccsid[] = "@(#)pig.c 8.2 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: pig.c,v 1.9 2003/08/07 09:37:32 agc Exp $"); +__RCSID("$NetBSD: pig.c,v 1.10 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -52,9 +52,9 @@ __RCSID("$NetBSD: pig.c,v 1.9 2003/08/07 09:37:32 agc Exp $"); #include <string.h> #include <unistd.h> -int main __P((int, char *[])); -void pigout __P((char *, int)); -void usage __P((void)) __attribute__((__noreturn__)); +int main(int, char *[]); +void pigout(char *, int); +void usage(void) __attribute__((__noreturn__)); int main(argc, argv) @@ -1,4 +1,4 @@ -/* $NetBSD: pom.c,v 1.13 2003/08/07 09:37:32 agc Exp $ */ +/* $NetBSD: pom.c,v 1.14 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1989, 1993 @@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pom.c,v 1.13 2003/08/07 09:37:32 agc Exp $"); +__RCSID("$NetBSD: pom.c,v 1.14 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -84,12 +84,12 @@ __RCSID("$NetBSD: pom.c,v 1.13 2003/08/07 09:37:32 agc Exp $"); #define Pzero 36.340410 /* lunar mean long of perigee at EPOCH */ #define Nzero 318.510107 /* lunar mean long of node at EPOCH */ -void adj360 __P((double *)); -double dtor __P((double)); -int main __P((int, char *[])); -double potm __P((double)); -time_t parsetime __P((char *)); -void badformat __P((void)) __attribute__((__noreturn__)); +void adj360(double *); +double dtor(double); +int main(int, char *[]); +double potm(double); +time_t parsetime(char *); +void badformat(void) __attribute__((__noreturn__)); int main(argc, argv) @@ -1,4 +1,4 @@ -/* $NetBSD: ppt.c,v 1.15 2003/08/07 09:37:33 agc Exp $ */ +/* $NetBSD: ppt.c,v 1.16 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1988, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ #if 0 static char sccsid[] = "@(#)ppt.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: ppt.c,v 1.15 2003/08/07 09:37:33 agc Exp $"); +__RCSID("$NetBSD: ppt.c,v 1.16 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -51,10 +51,10 @@ __RCSID("$NetBSD: ppt.c,v 1.15 2003/08/07 09:37:33 agc Exp $"); #define EDGE "___________" - void usage __P((void)); - int main __P((int, char *[])); -static void putppt __P((int)); - int getppt __P((const char *)); + void usage(void); + int main(int, char *[]); +static void putppt(int); + int getppt(const char *); void usage(void) diff --git a/primes/primes.c b/primes/primes.c index 44af6ea7..b77a737d 100644 --- a/primes/primes.c +++ b/primes/primes.c @@ -1,4 +1,4 @@ -/* $NetBSD: primes.c,v 1.11 2003/08/07 09:37:33 agc Exp $ */ +/* $NetBSD: primes.c,v 1.12 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1989, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)primes.c 8.5 (Berkeley) 5/10/95"; #else -__RCSID("$NetBSD: primes.c,v 1.11 2003/08/07 09:37:33 agc Exp $"); +__RCSID("$NetBSD: primes.c,v 1.12 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -103,10 +103,10 @@ extern const ubig *pr_limit; /* largest prime in the prime array */ extern const char pattern[]; extern const int pattern_size; /* length of pattern array */ -int main __P((int, char *[])); -void primes __P((ubig, ubig)); -ubig read_num_buf __P((void)); -void usage __P((void)) __attribute__((__noreturn__)); +int main(int, char *[]); +void primes(ubig, ubig); +ubig read_num_buf(void); +void usage(void) __attribute__((__noreturn__)); int main(argc, argv) diff --git a/quiz/quiz.c b/quiz/quiz.c index a3e01436..e860966b 100644 --- a/quiz/quiz.c +++ b/quiz/quiz.c @@ -1,4 +1,4 @@ -/* $NetBSD: quiz.c,v 1.19 2003/08/07 09:37:34 agc Exp $ */ +/* $NetBSD: quiz.c,v 1.20 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\ #if 0 static char sccsid[] = "@(#)quiz.c 8.3 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: quiz.c,v 1.19 2003/08/07 09:37:34 agc Exp $"); +__RCSID("$NetBSD: quiz.c,v 1.20 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -65,16 +65,16 @@ static QE qlist; static int catone, cattwo, tflag; static u_int qsize; -char *appdstr __P((char *, const char *, size_t)); -void downcase __P((char *)); -void get_cats __P((char *, char *)); -void get_file __P((const char *)); -int main __P((int, char *[])); -const char *next_cat __P((const char *)); -void quiz __P((void)); -void score __P((u_int, u_int, u_int)); -void show_index __P((void)); -void usage __P((void)) __attribute__((__noreturn__)); +char *appdstr(char *, const char *, size_t); +void downcase(char *); +void get_cats(char *, char *); +void get_file(const char *); +int main(int, char *[]); +const char *next_cat(const char *); +void quiz(void); +void score(u_int, u_int, u_int); +void show_index(void); +void usage(void) __attribute__((__noreturn__)); int main(argc, argv) diff --git a/quiz/quiz.h b/quiz/quiz.h index 3bfe0445..9884b505 100644 --- a/quiz/quiz.h +++ b/quiz/quiz.h @@ -1,4 +1,4 @@ -/* $NetBSD: quiz.h,v 1.6 2003/08/07 09:37:34 agc Exp $ */ +/* $NetBSD: quiz.h,v 1.7 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -54,6 +54,6 @@ typedef struct qentry { extern char rxperr[]; -int rxp_compile __P((const char *)); -char *rxp_expand __P((void)); -int rxp_match __P((const char *)); +int rxp_compile(const char *); +char *rxp_expand(void); +int rxp_match(const char *); @@ -1,4 +1,4 @@ -/* $NetBSD: rxp.c,v 1.11 2003/08/07 09:37:34 agc Exp $ */ +/* $NetBSD: rxp.c,v 1.12 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)rxp.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: rxp.c,v 1.11 2003/08/07 09:37:34 agc Exp $"); +__RCSID("$NetBSD: rxp.c,v 1.12 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -82,9 +82,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((const char *, int)); -static char *rxp__expand __P((int)); -static int rxp__match __P((const char *, int, Rxp_t *, Rxp_t *, const char *)); +static int rxp__compile(const char *, int); +static char *rxp__expand(int); +static int rxp__match(const char *, int, Rxp_t *, Rxp_t *, const char *); int rxp_compile(s) diff --git a/rain/rain.c b/rain/rain.c index b48382ff..5640de4f 100644 --- a/rain/rain.c +++ b/rain/rain.c @@ -1,4 +1,4 @@ -/* $NetBSD: rain.c,v 1.14 2003/08/07 09:37:35 agc Exp $ */ +/* $NetBSD: rain.c,v 1.15 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: rain.c,v 1.14 2003/08/07 09:37:35 agc Exp $"); +__RCSID("$NetBSD: rain.c,v 1.15 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -58,8 +58,8 @@ __RCSID("$NetBSD: rain.c,v 1.14 2003/08/07 09:37:35 agc Exp $"); volatile sig_atomic_t sig_caught = 0; -int main __P((int, char **)); -void onsig __P((int)); +int main(int, char **); +void onsig(int); int diff --git a/random/random.c b/random/random.c index f504fc53..97b6ea51 100644 --- a/random/random.c +++ b/random/random.c @@ -1,4 +1,4 @@ -/* $NetBSD: random.c,v 1.8 2003/08/07 09:37:35 agc Exp $ */ +/* $NetBSD: random.c,v 1.9 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1994 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\n\ #if 0 static char sccsid[] = "@(#)random.c 8.6 (Berkeley) 6/1/94"; #else -__RCSID("$NetBSD: random.c,v 1.8 2003/08/07 09:37:35 agc Exp $"); +__RCSID("$NetBSD: random.c,v 1.9 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -59,8 +59,8 @@ __RCSID("$NetBSD: random.c,v 1.8 2003/08/07 09:37:35 agc Exp $"); #define MAXRANDOM 2147483647 -int main __P((int, char **)); -void usage __P((void)) __attribute__((__noreturn__)); +int main(int, char **); +void usage(void) __attribute__((__noreturn__)); int main(argc, argv) diff --git a/robots/auto.c b/robots/auto.c index 29bba259..c2babc45 100644 --- a/robots/auto.c +++ b/robots/auto.c @@ -1,4 +1,4 @@ -/* $NetBSD: auto.c,v 1.5 2002/01/31 17:35:52 christos Exp $ */ +/* $NetBSD: auto.c,v 1.6 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -67,16 +67,16 @@ #define CONSDEBUG(a) -static int distance __P((int, int, int, int)); -static int xinc __P((int)); -static int yinc __P((int)); -static const char *find_moves __P((void)); -static COORD *closest_robot __P((int *)); -static COORD *closest_heap __P((int *)); -static char move_towards __P((int, int)); -static char move_away __P((COORD *)); -static char move_between __P((COORD *, COORD *)); -static int between __P((COORD *, COORD *)); +static int distance(int, int, int, int); +static int xinc(int); +static int yinc(int); +static const char *find_moves(void); +static COORD *closest_robot(int *); +static COORD *closest_heap(int *); +static char move_towards(int, int); +static char move_away(COORD *); +static char move_between(COORD *, COORD *); +static int between(COORD *, COORD *); /* distance(): * return "move" number distance of the two coordinates diff --git a/robots/main.c b/robots/main.c index 00d92b23..7877fa92 100644 --- a/robots/main.c +++ b/robots/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.19 2003/08/07 09:37:36 agc Exp $ */ +/* $NetBSD: main.c,v 1.20 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,13 +39,13 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: main.c,v 1.19 2003/08/07 09:37:36 agc Exp $"); +__RCSID("$NetBSD: main.c,v 1.20 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ # include "robots.h" -int main __P((int, char **)); +int main(int, char **); extern const char *Scorefile; extern int Max_per_uid; diff --git a/robots/robots.h b/robots/robots.h index 0676d3fa..b08909ad 100644 --- a/robots/robots.h +++ b/robots/robots.h @@ -1,4 +1,4 @@ -/* $NetBSD: robots.h,v 1.17 2004/01/27 20:26:55 jsm Exp $ */ +/* $NetBSD: robots.h,v 1.18 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -120,27 +120,27 @@ extern jmp_buf End_move; * functions types */ -void add_score __P((int)); -bool another __P((void)); -char automove __P((void)); -int cmp_sc __P((const void *, const void *)); -bool do_move __P((int, int)); -bool eaten __P((const COORD *)); -void flush_in __P((void)); -void get_move __P((void)); -void init_field __P((void)); -bool jumping __P((void)); -void make_level __P((void)); -void move_robots __P((int)); -bool must_telep __P((void)); -void play_level __P((void)); -int query __P((const char *)); -void quit __P((int)) __attribute__((__noreturn__)); -void reset_count __P((void)); -int rnd __P((int)); -COORD *rnd_pos __P((void)); -void score __P((int)); -void set_name __P((SCORE *)); -void show_score __P((void)); -int sign __P((int)); -void telmsg __P((int)); +void add_score(int); +bool another(void); +char automove(void); +int cmp_sc(const void *, const void *); +bool do_move(int, int); +bool eaten(const COORD *); +void flush_in(void); +void get_move(void); +void init_field(void); +bool jumping(void); +void make_level(void); +void move_robots(int); +bool must_telep(void); +void play_level(void); +int query(const char *); +void quit(int) __attribute__((__noreturn__)); +void reset_count(void); +int rnd(int); +COORD *rnd_pos(void); +void score(int); +void set_name(SCORE *); +void show_score(void); +int sign(int); +void telmsg(int); diff --git a/robots/score.c b/robots/score.c index ad337605..4c87bd4e 100644 --- a/robots/score.c +++ b/robots/score.c @@ -1,4 +1,4 @@ -/* $NetBSD: score.c,v 1.16 2003/08/07 09:37:37 agc Exp $ */ +/* $NetBSD: score.c,v 1.17 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: score.c,v 1.16 2003/08/07 09:37:37 agc Exp $"); +__RCSID("$NetBSD: score.c,v 1.17 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -49,8 +49,8 @@ static SCORE Top[MAXSCORES]; static u_int32_t numscores, max_uid; -static void read_score __P((int)); -static void write_score __P((int)); +static void read_score(int); +static void write_score(int); /* * read_score: diff --git a/rogue/main.c b/rogue/main.c index a2fad94f..3bd75fe6 100644 --- a/rogue/main.c +++ b/rogue/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.5 2003/08/07 09:37:38 agc Exp $ */ +/* $NetBSD: main.c,v 1.6 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1988, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: main.c,v 1.5 2003/08/07 09:37:38 agc Exp $"); +__RCSID("$NetBSD: main.c,v 1.6 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -60,7 +60,7 @@ __RCSID("$NetBSD: main.c,v 1.5 2003/08/07 09:37:38 agc Exp $"); #include "rogue.h" -int main __P((int, char **)); +int main(int, char **); int main(argc, argv) diff --git a/rogue/rogue.h b/rogue/rogue.h index ebb4e595..6aa47c5d 100644 --- a/rogue/rogue.h +++ b/rogue/rogue.h @@ -1,4 +1,4 @@ -/* $NetBSD: rogue.h,v 1.15 2004/01/01 16:05:12 jsm Exp $ */ +/* $NetBSD: rogue.h,v 1.16 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1988, 1993 @@ -443,299 +443,299 @@ struct rogue_time { #include <sys/types.h> #include <unistd.h> -object *alloc_object __P((void)); -object *check_duplicate __P((object *, object *)); -const char *get_ench_color __P((void)); -object *get_letter_object __P((int)); -object *get_thrown_at_monster __P((object *, short, short *, short *)); -object *get_zapped_monster __P((short, short *, short *)); -object *gr_monster __P((object *, int)); -object *gr_object __P((void)); -char *md_getenv __P((const char *)); +object *alloc_object(void); +object *check_duplicate(object *, object *); +const char *get_ench_color(void); +object *get_letter_object(int); +object *get_thrown_at_monster(object *, short, short *, short *); +object *get_zapped_monster(short, short *, short *); +object *gr_monster(object *, int); +object *gr_object(void); +char *md_getenv(const char *); const char * - md_gln __P((void)); -char *md_malloc __P((int)); -const char *mon_name __P((const object *)); -const char *name_of __P((const object *)); -object *object_at __P((object *, short, short)); -object *pick_up __P((int, int, short *)); -void add_exp __P((int, boolean)); -void add_mazes __P((void)); -void add_traps __P((void)); -void aggravate __P((void)); -void aim_monster __P((object *)); -void bounce __P((short, short, short, short, short)); -void byebye __P((int)); -void c_object_for_wizard __P((void)); -void call_it __P((void)); -boolean can_move __P((int, int, int, int)); -boolean can_turn __P((int, int)); -void center __P((short, const char *)); -void check_gold_seeker __P((object *)); -boolean check_hunger __P((boolean)); -boolean check_imitator __P((object *)); -void check_message __P((void)); -int check_up __P((void)); -void clean_up __P((const char *)) __attribute__((__noreturn__)); -void clear_level __P((void)); -void cnfs __P((void)); -int coin_toss __P((void)); -int connect_rooms __P((short, short)); -void cough_up __P((object *)); -void create_monster __P((void)); -int damage_for_strength __P((void)); -void darken_room __P((short)); -void disappear __P((object *)); -void do_args __P((int, char **)); -void do_opts __P((void)); -void do_put_on __P((object *, boolean)); -void do_shell __P((void)); -void do_wear __P((object *)); -void do_wield __P((object *)); -void dr_course __P((object *, boolean, short, short)); -void drain_life __P((void)); -void draw_magic_map __P((void)); -void draw_simple_passage __P((short, short, short, short, short)); -void drop __P((void)); -int drop_check __P((void)); -void drop_level __P((void)); -void eat __P((void)); -void edit_opts __P((void)); -void env_get_value __P((char **, char *, boolean)); -void error_save __P((int)) __attribute__((__noreturn__)); -void fight __P((int)); -void fill_it __P((int, boolean)); -void fill_out_level __P((void)); -boolean flame_broil __P((object *)); -int flit __P((object *)); -void flop_weapon __P((object *, short, short)); -void free_object __P((object *)); -void free_stuff __P((object *)); -void freeze __P((object *)); -int get_armor_class __P((const object *)); -int get_com_id __P((int *, short)); -int get_damage __P((const char *, boolean)); -void get_desc __P((const object *, char *)); -int get_dir __P((short, short, short, short)); -void get_dir_rc __P((short, short *, short *, short)); -char get_dungeon_char __P((short, short)); -int get_exp_level __P((long)); -void get_food __P((object *, boolean)); -int get_hit_chance __P((const object *)); -int get_input_line __P((const char *, const char *, char *, const char *, boolean, boolean)); -char get_mask_char __P((unsigned short)); -int get_number __P((const char *)); -boolean get_oth_room __P((short, short *, short *)); -int get_rand __P((int, int)); -short get_room_number __P((int, int)); -int get_value __P((const object *)); -int get_w_damage __P((const object *)); -void get_wand_and_ring_materials __P((void)); -int get_weapon_damage __P((const object *)); -char gmc __P((object *)); -char gmc_row_col __P((int, int)); -void go_blind __P((void)); -boolean gold_at __P((int, int)); -void gr_armor __P((object *)); -char gr_dir __P((void)); -char gr_obj_char __P((void)); -void gr_potion __P((object *)); -void gr_ring __P((object *, boolean)); -short gr_room __P((void)); -void gr_row_col __P((short *, short *, unsigned short)); -void gr_scroll __P((object *)); -void gr_wand __P((object *)); -void gr_weapon __P((object *, int)); -void hallucinate __P((void)); -boolean has_amulet __P((void)); -boolean has_been_touched __P((const struct rogue_time *, const struct rogue_time *)); -void heal __P((void)); -void hide_boxed_passage __P((int, int, int, int, int)); -void hold_monster __P((void)); -int hp_raise __P((void)); -void id_all __P((void)); -void id_com __P((void)); -void id_trap __P((void)); -void id_type __P((void)); -void idntfy __P((void)); -boolean imitating __P((int, int)); -int init __P((int, char **)); -void init_str __P((char **, const char *)); -void insert_score __P((char [][], char [][], const char *, short, short, const object *, int)); -void inv_armor_weapon __P((boolean)); -void inv_rings __P((void)); -void inventory __P((const object *, unsigned short)); -boolean is_all_connected __P((void)); -boolean is_digit __P((int)); -boolean is_direction __P((short, short *)); -boolean is_pack_letter __P((short *, unsigned short *)); -boolean is_passable __P((int, int)); -boolean is_vowel __P((short)); -void kick_into_pack __P((void)); -void killed_by __P((const object *, short)) __attribute__((__noreturn__)); -long lget_number __P((const char *)); -void light_passage __P((int, int)); -void light_up_room __P((int)); -boolean m_confuse __P((object *)); -void make_level __P((void)); -void make_maze __P((short, short, short, short, short, short)); -void make_party __P((void)); -void make_room __P((short, short, short, short)); -void make_scroll_titles __P((void)); -boolean mask_pack __P((const object *, unsigned short)); -boolean mask_room __P((short, short *, short *, unsigned short)); -boolean md_df __P((const char *)); -void md_exit __P((int)) __attribute__((__noreturn__)); -void md_gct __P((struct rogue_time *)); -int md_get_file_id __P((const char *)); -void md_gfmt __P((const char *, struct rogue_time *)); -int md_gseed __P((void)); -void md_heed_signals __P((void)); -void md_ignore_signals __P((void)); -int md_link_count __P((const char *)); -void md_lock __P((boolean)); -void md_shell __P((const char *)); -void md_sleep __P((int)); -void md_slurp __P((void)); -void message __P((const char *, boolean)); -void mix_colors __P((void)); -void mix_random_rooms __P((void)); -int mon_can_go __P((const object *, int, int)); -int mon_damage __P((object *, short)); -void mon_hit __P((object *)); -boolean mon_sees __P((const object *, int, int)); -int move_confused __P((object *)); -void move_mon_to __P((object *, int, int)); -void move_onto __P((void)); -int mtry __P((object *, int, int)); -void multiple_move_rogue __P((short)); -void mv_1_monster __P((object *, int, int)); -void mv_aquatars __P((void)); -void mv_mons __P((void)); -int name_cmp __P((char *, const char *)); -short next_avail_ichar __P((void)); -boolean next_to_something __P((int, int)); -void nickize __P((char *, const char *, const char *)); -int no_room_for_monster __P((int)); -int one_move_rogue __P((short, short)); -void onintr __P((int)); -void opt_erase __P((int)); -void opt_go __P((int)); -void opt_show __P((int)); -short pack_count __P((const object *)); -short pack_letter __P((const char *, unsigned short)); -void pad __P((const char *, short)); -void party_monsters __P((int, int)); -short party_objects __P((int)); -void place_at __P((object *, int, int)); -void plant_gold __P((int, int, boolean)); -void play_level __P((void)); -void player_init __P((void)); -void potion_heal __P((int)); -int pr_com_id __P((int)); -int pr_motion_char __P((int)); -void print_stats __P((int)); -void put_amulet __P((void)); -void put_door __P((room *, short, short *, short *)); -void put_gold __P((void)); -void put_m_at __P((int, int, object *)); -void put_mons __P((void)); -void put_objects __P((void)); -void put_on_ring __P((void)); -void put_player __P((short)); -void put_scores __P((const object *, short)) __attribute__((__noreturn__)); -void put_stairs __P((void)); -void quaff __P((void)); -void quit __P((boolean)); -int r_index __P((const char *, int, boolean)); -void r_read __P((FILE *, char *, int)); -void r_write __P((FILE *, const char *, int)); -void rand_around __P((short, short *, short *)); -int rand_percent __P((int)); -void rand_place __P((object *)); -void read_pack __P((object *, FILE *, boolean)); -void read_scroll __P((void)); -void read_string __P((char *, FILE *, size_t)); -void recursive_deadend __P((short, const short *, short, short)); -boolean reg_move __P((void)); -void relight __P((void)); -void remessage __P((short)); -void remove_ring __P((void)); -void rest __P((int)); -void restore __P((const char *)); -int rgetchar __P((void)); -void ring_stats __P((boolean)); -int rogue_can_see __P((int, int)); -void rogue_damage __P((short, object *, short)); -void rogue_hit __P((object *, boolean)); -int rogue_is_around __P((int, int)); -long rrandom __P((void)); -void rust __P((object *)); -void rw_dungeon __P((FILE *, boolean)); -void rw_id __P((struct id *, FILE *, int, boolean)); -void rw_rooms __P((FILE *, boolean)); -void s_con_mon __P((object *)); -int same_col __P((int, int)); -int same_row __P((int, int)); -void save_game __P((void)); -void save_into_file __P((const char *)); -void save_screen __P((void)); -void search __P((short, boolean)); -boolean seek_gold __P((object *)); -void sell_pack __P((void)); -void sf_error __P((void)) __attribute__((__noreturn__)); -void show_average_hp __P((void)); -void show_monsters __P((void)); -void show_objects __P((void)); -void show_traps __P((void)); -void single_inv __P((short)); -void sound_bell __P((void)); -void special_hit __P((object *)); -void srrandom __P((int)); -void start_window __P((void)); -void steal_gold __P((object *)); -void steal_item __P((object *)); -void sting __P((object *)); -void stop_window __P((void)); -void take_a_nap __P((void)); -void take_from_pack __P((object *, object *)); -void take_off __P((void)); -void tele __P((void)); -void tele_away __P((object *)); -void throw __P((void)); -boolean throw_at_monster __P((object *, object *)); -int to_hit __P((const object *)); -short trap_at __P((int, int)); -void trap_player __P((int, int)); -boolean try_to_cough __P((short, short, object *)); -void turn_passage __P((short, boolean)); -void un_put_on __P((object *)); -void unblind __P((void)); -void unconfuse __P((void)); -void uncurse_all __P((void)); -void unhallucinate __P((void)); -void unwear __P((object *)); -void unwield __P((object *)); -void vanish __P((object *, short, object *)); -void visit_rooms __P((int)); -void wait_for_ack __P((void)); -void wake_room __P((short, boolean, short, short)); -void wake_up __P((object *)); -void wanderer __P((void)); -void wdrain_life __P((object *)); -void wear __P((void)); -void wield __P((void)); -void win __P((void)) __attribute__((__noreturn__)); -void wizardize __P((void)); -void write_pack __P((const object *, FILE *)); -void write_string __P((char *, FILE *)); -long xxx __P((boolean)); -void xxxx __P((char *, short)); -void zap_monster __P((object *, unsigned short)); -void zapp __P((void)); -object *add_to_pack __P((object *, object *, int)); -struct id *get_id_table __P((const object *)); -unsigned short gr_what_is __P((void)); + md_gln(void); +char *md_malloc(int); +const char *mon_name(const object *); +const char *name_of(const object *); +object *object_at(object *, short, short); +object *pick_up(int, int, short *); +void add_exp(int, boolean); +void add_mazes(void); +void add_traps(void); +void aggravate(void); +void aim_monster(object *); +void bounce(short, short, short, short, short); +void byebye(int); +void c_object_for_wizard(void); +void call_it(void); +boolean can_move(int, int, int, int); +boolean can_turn(int, int); +void center(short, const char *); +void check_gold_seeker(object *); +boolean check_hunger(boolean); +boolean check_imitator(object *); +void check_message(void); +int check_up(void); +void clean_up(const char *) __attribute__((__noreturn__)); +void clear_level(void); +void cnfs(void); +int coin_toss(void); +int connect_rooms(short, short); +void cough_up(object *); +void create_monster(void); +int damage_for_strength(void); +void darken_room(short); +void disappear(object *); +void do_args(int, char **); +void do_opts(void); +void do_put_on(object *, boolean); +void do_shell(void); +void do_wear(object *); +void do_wield(object *); +void dr_course(object *, boolean, short, short); +void drain_life(void); +void draw_magic_map(void); +void draw_simple_passage(short, short, short, short, short); +void drop(void); +int drop_check(void); +void drop_level(void); +void eat(void); +void edit_opts(void); +void env_get_value(char **, char *, boolean); +void error_save(int) __attribute__((__noreturn__)); +void fight(int); +void fill_it(int, boolean); +void fill_out_level(void); +boolean flame_broil(object *); +int flit(object *); +void flop_weapon(object *, short, short); +void free_object(object *); +void free_stuff(object *); +void freeze(object *); +int get_armor_class(const object *); +int get_com_id(int *, short); +int get_damage(const char *, boolean); +void get_desc(const object *, char *); +int get_dir(short, short, short, short); +void get_dir_rc(short, short *, short *, short); +char get_dungeon_char(short, short); +int get_exp_level(long); +void get_food(object *, boolean); +int get_hit_chance(const object *); +int get_input_line(const char *, const char *, char *, const char *, boolean, boolean); +char get_mask_char(unsigned short); +int get_number(const char *); +boolean get_oth_room(short, short *, short *); +int get_rand(int, int); +short get_room_number(int, int); +int get_value(const object *); +int get_w_damage(const object *); +void get_wand_and_ring_materials(void); +int get_weapon_damage(const object *); +char gmc(object *); +char gmc_row_col(int, int); +void go_blind(void); +boolean gold_at(int, int); +void gr_armor(object *); +char gr_dir(void); +char gr_obj_char(void); +void gr_potion(object *); +void gr_ring(object *, boolean); +short gr_room(void); +void gr_row_col(short *, short *, unsigned short); +void gr_scroll(object *); +void gr_wand(object *); +void gr_weapon(object *, int); +void hallucinate(void); +boolean has_amulet(void); +boolean has_been_touched(const struct rogue_time *, const struct rogue_time *); +void heal(void); +void hide_boxed_passage(int, int, int, int, int); +void hold_monster(void); +int hp_raise(void); +void id_all(void); +void id_com(void); +void id_trap(void); +void id_type(void); +void idntfy(void); +boolean imitating(int, int); +int init(int, char **); +void init_str(char **, const char *); +void insert_score(char [][], char [][], const char *, short, short, const object *, int); +void inv_armor_weapon(boolean); +void inv_rings(void); +void inventory(const object *, unsigned short); +boolean is_all_connected(void); +boolean is_digit(int); +boolean is_direction(short, short *); +boolean is_pack_letter(short *, unsigned short *); +boolean is_passable(int, int); +boolean is_vowel(short); +void kick_into_pack(void); +void killed_by(const object *, short) __attribute__((__noreturn__)); +long lget_number(const char *); +void light_passage(int, int); +void light_up_room(int); +boolean m_confuse(object *); +void make_level(void); +void make_maze(short, short, short, short, short, short); +void make_party(void); +void make_room(short, short, short, short); +void make_scroll_titles(void); +boolean mask_pack(const object *, unsigned short); +boolean mask_room(short, short *, short *, unsigned short); +boolean md_df(const char *); +void md_exit(int) __attribute__((__noreturn__)); +void md_gct(struct rogue_time *); +int md_get_file_id(const char *); +void md_gfmt(const char *, struct rogue_time *); +int md_gseed(void); +void md_heed_signals(void); +void md_ignore_signals(void); +int md_link_count(const char *); +void md_lock(boolean); +void md_shell(const char *); +void md_sleep(int); +void md_slurp(void); +void message(const char *, boolean); +void mix_colors(void); +void mix_random_rooms(void); +int mon_can_go(const object *, int, int); +int mon_damage(object *, short); +void mon_hit(object *); +boolean mon_sees(const object *, int, int); +int move_confused(object *); +void move_mon_to(object *, int, int); +void move_onto(void); +int mtry(object *, int, int); +void multiple_move_rogue(short); +void mv_1_monster(object *, int, int); +void mv_aquatars(void); +void mv_mons(void); +int name_cmp(char *, const char *); +short next_avail_ichar(void); +boolean next_to_something(int, int); +void nickize(char *, const char *, const char *); +int no_room_for_monster(int); +int one_move_rogue(short, short); +void onintr(int); +void opt_erase(int); +void opt_go(int); +void opt_show(int); +short pack_count(const object *); +short pack_letter(const char *, unsigned short); +void pad(const char *, short); +void party_monsters(int, int); +short party_objects(int); +void place_at(object *, int, int); +void plant_gold(int, int, boolean); +void play_level(void); +void player_init(void); +void potion_heal(int); +int pr_com_id(int); +int pr_motion_char(int); +void print_stats(int); +void put_amulet(void); +void put_door(room *, short, short *, short *); +void put_gold(void); +void put_m_at(int, int, object *); +void put_mons(void); +void put_objects(void); +void put_on_ring(void); +void put_player(short); +void put_scores(const object *, short) __attribute__((__noreturn__)); +void put_stairs(void); +void quaff(void); +void quit(boolean); +int r_index(const char *, int, boolean); +void r_read(FILE *, char *, int); +void r_write(FILE *, const char *, int); +void rand_around(short, short *, short *); +int rand_percent(int); +void rand_place(object *); +void read_pack(object *, FILE *, boolean); +void read_scroll(void); +void read_string(char *, FILE *, size_t); +void recursive_deadend(short, const short *, short, short); +boolean reg_move(void); +void relight(void); +void remessage(short); +void remove_ring(void); +void rest(int); +void restore(const char *); +int rgetchar(void); +void ring_stats(boolean); +int rogue_can_see(int, int); +void rogue_damage(short, object *, short); +void rogue_hit(object *, boolean); +int rogue_is_around(int, int); +long rrandom(void); +void rust(object *); +void rw_dungeon(FILE *, boolean); +void rw_id(struct id *, FILE *, int, boolean); +void rw_rooms(FILE *, boolean); +void s_con_mon(object *); +int same_col(int, int); +int same_row(int, int); +void save_game(void); +void save_into_file(const char *); +void save_screen(void); +void search(short, boolean); +boolean seek_gold(object *); +void sell_pack(void); +void sf_error(void) __attribute__((__noreturn__)); +void show_average_hp(void); +void show_monsters(void); +void show_objects(void); +void show_traps(void); +void single_inv(short); +void sound_bell(void); +void special_hit(object *); +void srrandom(int); +void start_window(void); +void steal_gold(object *); +void steal_item(object *); +void sting(object *); +void stop_window(void); +void take_a_nap(void); +void take_from_pack(object *, object *); +void take_off(void); +void tele(void); +void tele_away(object *); +void throw(void); +boolean throw_at_monster(object *, object *); +int to_hit(const object *); +short trap_at(int, int); +void trap_player(int, int); +boolean try_to_cough(short, short, object *); +void turn_passage(short, boolean); +void un_put_on(object *); +void unblind(void); +void unconfuse(void); +void uncurse_all(void); +void unhallucinate(void); +void unwear(object *); +void unwield(object *); +void vanish(object *, short, object *); +void visit_rooms(int); +void wait_for_ack(void); +void wake_room(short, boolean, short, short); +void wake_up(object *); +void wanderer(void); +void wdrain_life(object *); +void wear(void); +void wield(void); +void win(void) __attribute__((__noreturn__)); +void wizardize(void); +void write_pack(const object *, FILE *); +void write_string(char *, FILE *); +long xxx(boolean); +void xxxx(char *, short); +void zap_monster(object *, unsigned short); +void zapp(void); +object *add_to_pack(object *, object *, int); +struct id *get_id_table(const object *); +unsigned short gr_what_is(void); extern boolean ask_quit; extern boolean being_held; diff --git a/snake/snake/snake.c b/snake/snake/snake.c index e308c5bc..34413fa6 100644 --- a/snake/snake/snake.c +++ b/snake/snake/snake.c @@ -1,4 +1,4 @@ -/* $NetBSD: snake.c,v 1.18 2003/08/07 09:37:45 agc Exp $ */ +/* $NetBSD: snake.c,v 1.19 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94"; #else -__RCSID("$NetBSD: snake.c,v 1.18 2003/08/07 09:37:45 agc Exp $"); +__RCSID("$NetBSD: snake.c,v 1.19 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -115,29 +115,29 @@ FILE *logfile; int lcnt, ccnt; /* user's idea of screen size */ int chunk; /* amount of money given at a time */ -void chase __P((struct point *, struct point *)); -int chk __P((const struct point *)); -void drawbox __P((void)); -void flushi __P((void)); -void home __P((void)); -void length __P((int)); -void logit __P((const char *)); -int main __P((int, char **)); -void mainloop __P((void)) __attribute__((__noreturn__)); -struct point *point __P((struct point *, int, int)); -int post __P((int, int)); -int pushsnake __P((void)); -void right __P((const struct point *)); -void setup __P((void)); -void snap __P((void)); -void snrand __P((struct point *)); -void spacewarp __P((int)); -void stop __P((int)) __attribute__((__noreturn__)); -int stretch __P((const struct point *)); -void surround __P((struct point *)); -void suspend __P((void)); -void win __P((const struct point *)); -void winnings __P((int)); +void chase(struct point *, struct point *); +int chk(const struct point *); +void drawbox(void); +void flushi(void); +void home(void); +void length(int); +void logit(const char *); +int main(int, char **); +void mainloop(void) __attribute__((__noreturn__)); +struct point *point(struct point *, int, int); +int post(int, int); +int pushsnake(void); +void right(const struct point *); +void setup(void); +void snap(void); +void snrand(struct point *); +void spacewarp(int); +void stop(int) __attribute__((__noreturn__)); +int stretch(const struct point *); +void surround(struct point *); +void suspend(void); +void win(const struct point *); +void winnings(int); int main(argc, argv) diff --git a/snake/snscore/snscore.c b/snake/snscore/snscore.c index ce120b2d..a0e928c7 100644 --- a/snake/snscore/snscore.c +++ b/snake/snscore/snscore.c @@ -1,4 +1,4 @@ -/* $NetBSD: snscore.c,v 1.14 2003/08/07 09:37:47 agc Exp $ */ +/* $NetBSD: snscore.c,v 1.15 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)snscore.c 8.1 (Berkeley) 7/19/93"; #else -__RCSID("$NetBSD: snscore.c,v 1.14 2003/08/07 09:37:47 agc Exp $"); +__RCSID("$NetBSD: snscore.c,v 1.15 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -61,7 +61,7 @@ struct player { char *name; } players[MAXPLAYERS], temp; -int main __P((void)); +int main(void); int main() diff --git a/tetris/input.h b/tetris/input.h index 5ff868b7..856c66a8 100644 --- a/tetris/input.h +++ b/tetris/input.h @@ -1,4 +1,4 @@ -/* $NetBSD: input.h,v 1.4 2003/08/07 09:37:48 agc Exp $ */ +/* $NetBSD: input.h,v 1.5 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -34,6 +34,6 @@ * @(#)input.h 8.1 (Berkeley) 5/31/93 */ -int rwait __P((struct timeval *)); -int tgetchar __P((void)); -void tsleep __P((void)); +int rwait(struct timeval *); +int tgetchar(void); +void tsleep(void); diff --git a/tetris/scores.c b/tetris/scores.c index 9a020083..bf18aa98 100644 --- a/tetris/scores.c +++ b/tetris/scores.c @@ -1,4 +1,4 @@ -/* $NetBSD: scores.c,v 1.12 2003/08/07 09:37:48 agc Exp $ */ +/* $NetBSD: scores.c,v 1.13 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -74,11 +74,11 @@ static int nscores; static int gotscores; static struct highscore scores[NUMSPOTS]; -static int checkscores __P((struct highscore *, int)); -static int cmpscores __P((const void *, const void *)); -static void getscores __P((FILE **)); -static void printem __P((int, int, struct highscore *, int, const char *)); -static char *thisuser __P((void)); +static int checkscores(struct highscore *, int); +static int cmpscores(const void *, const void *); +static void getscores(FILE **); +static void printem(int, int, struct highscore *, int, const char *); +static char *thisuser(void); /* * Read the score file. Can be called from savescore (before showscores) diff --git a/tetris/scores.h b/tetris/scores.h index eac47aa6..2a5baa4f 100644 --- a/tetris/scores.h +++ b/tetris/scores.h @@ -1,4 +1,4 @@ -/* $NetBSD: scores.h,v 1.3 2003/08/07 09:37:48 agc Exp $ */ +/* $NetBSD: scores.h,v 1.4 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -48,5 +48,5 @@ struct highscore { #define MAXSCORES 9 /* maximum high score entries per person */ #define EXPIRATION (5L * 365 * 24 * 60 * 60) -void savescore __P((int)); -void showscores __P((int)); +void savescore(int); +void showscores(int); diff --git a/tetris/screen.c b/tetris/screen.c index d46423a1..ce561282 100644 --- a/tetris/screen.c +++ b/tetris/screen.c @@ -1,4 +1,4 @@ -/* $NetBSD: screen.c,v 1.18 2003/08/07 09:37:48 agc Exp $ */ +/* $NetBSD: screen.c,v 1.19 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -60,10 +60,10 @@ static cell curscreen[B_SIZE]; /* 1 => standout (or otherwise marked) */ static int curscore; static int isset; /* true => terminal is in game mode */ static struct termios oldtt; -static void (*tstp) __P((int)); +static void (*tstp)(int); -static void scr_stop __P((int)); -static void stopset __P((int)) __attribute__((__noreturn__)); +static void scr_stop(int); +static void stopset(int) __attribute__((__noreturn__)); /* @@ -252,7 +252,7 @@ scr_set() struct winsize ws; struct termios newtt; sigset_t sigset, osigset; - void (*ttou) __P((int)); + void (*ttou)(int); sigemptyset(&sigset); sigaddset(&sigset, SIGTSTP); diff --git a/tetris/screen.h b/tetris/screen.h index 940fc60e..99779e07 100644 --- a/tetris/screen.h +++ b/tetris/screen.h @@ -1,4 +1,4 @@ -/* $NetBSD: screen.h,v 1.7 2003/08/07 09:37:48 agc Exp $ */ +/* $NetBSD: screen.h,v 1.8 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -46,10 +46,10 @@ extern char *SOstr; /* begin standout mode */ #define putpad(s) tputs(s, 1, put) void moveto(int, int); -int put __P((int)); /* just calls putchar; for tputs */ -void scr_clear __P((void)); -void scr_end __P((void)); -void scr_init __P((void)); -void scr_msg __P((char *, int)); -void scr_set __P((void)); -void scr_update __P((void)); +int put(int); /* just calls putchar; for tputs */ +void scr_clear(void); +void scr_end(void); +void scr_init(void); +void scr_msg(char *, int); +void scr_set(void); +void scr_update(void); diff --git a/tetris/tetris.c b/tetris/tetris.c index 5b770cc4..3be171fd 100644 --- a/tetris/tetris.c +++ b/tetris/tetris.c @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.c,v 1.16 2003/08/07 09:37:48 agc Exp $ */ +/* $NetBSD: tetris.c,v 1.17 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -74,11 +74,11 @@ gid_t gid, egid; char key_msg[100]; int showpreview; -static void elide __P((void)); -static void setup_board __P((void)); - int main __P((int, char **)); - void onintr __P((int)) __attribute__((__noreturn__)); - void usage __P((void)) __attribute__((__noreturn__)); +static void elide(void); +static void setup_board(void); + int main(int, char **); + void onintr(int) __attribute__((__noreturn__)); + void usage(void) __attribute__((__noreturn__)); /* * Set up the initial board. The bottom display row is completely set, diff --git a/tetris/tetris.h b/tetris/tetris.h index 68268f2e..6b3664ba 100644 --- a/tetris/tetris.h +++ b/tetris/tetris.h @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.h,v 1.9 2003/08/07 09:37:49 agc Exp $ */ +/* $NetBSD: tetris.h,v 1.10 2004/01/27 20:30:30 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -169,6 +169,6 @@ extern gid_t gid, egid; extern char key_msg[100]; extern int showpreview; -int fits_in __P((const struct shape *, int)); -void place __P((const struct shape *, int, int)); -void stop __P((const char *)) __attribute__((__noreturn__)); +int fits_in(const struct shape *, int); +void place(const struct shape *, int, int); +void stop(const char *) __attribute__((__noreturn__)); diff --git a/trek/compkl.c b/trek/compkl.c index ecc6979b..85a94853 100644 --- a/trek/compkl.c +++ b/trek/compkl.c @@ -1,4 +1,4 @@ -/* $NetBSD: compkl.c,v 1.5 2003/08/07 09:37:50 agc Exp $ */ +/* $NetBSD: compkl.c,v 1.6 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)compkl.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: compkl.c,v 1.5 2003/08/07 09:37:50 agc Exp $"); +__RCSID("$NetBSD: compkl.c,v 1.6 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -52,7 +52,7 @@ __RCSID("$NetBSD: compkl.c,v 1.5 2003/08/07 09:37:50 agc Exp $"); ** move. */ -static void sortkl __P((void)); +static void sortkl(void); void compkldist(f) diff --git a/trek/computer.c b/trek/computer.c index 818b5b94..57f48467 100644 --- a/trek/computer.c +++ b/trek/computer.c @@ -1,4 +1,4 @@ -/* $NetBSD: computer.c,v 1.9 2003/08/07 09:37:50 agc Exp $ */ +/* $NetBSD: computer.c,v 1.10 2004/01/27 20:30:30 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)computer.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: computer.c,v 1.9 2003/08/07 09:37:50 agc Exp $"); +__RCSID("$NetBSD: computer.c,v 1.10 2004/01/27 20:30:30 jsm Exp $"); #endif #endif /* not lint */ @@ -104,8 +104,8 @@ struct cvntab Cputab[] = { NULL, NULL, NULL, 0 } }; -static int kalc __P((int, int, int, int, double *)); -static void prkalc __P((int, double)); +static int kalc(int, int, int, int, double *); +static void prkalc(int, double); /*ARGSUSED*/ void diff --git a/trek/dumpgame.c b/trek/dumpgame.c index f0d4cbd3..0e09e56c 100644 --- a/trek/dumpgame.c +++ b/trek/dumpgame.c @@ -1,4 +1,4 @@ -/* $NetBSD: dumpgame.c,v 1.8 2003/08/07 09:37:51 agc Exp $ */ +/* $NetBSD: dumpgame.c,v 1.9 2004/01/27 20:30:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)dumpgame.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: dumpgame.c,v 1.8 2003/08/07 09:37:51 agc Exp $"); +__RCSID("$NetBSD: dumpgame.c,v 1.9 2004/01/27 20:30:31 jsm Exp $"); #endif #endif /* not lint */ @@ -53,7 +53,7 @@ struct dump int count; }; -static int readdump __P((int)); +static int readdump(int); struct dump Dump_template[] = diff --git a/trek/getpar.c b/trek/getpar.c index 125cb9c8..5d568323 100644 --- a/trek/getpar.c +++ b/trek/getpar.c @@ -1,4 +1,4 @@ -/* $NetBSD: getpar.c,v 1.11 2003/08/07 09:37:51 agc Exp $ */ +/* $NetBSD: getpar.c,v 1.12 2004/01/27 20:30:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)getpar.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: getpar.c,v 1.11 2003/08/07 09:37:51 agc Exp $"); +__RCSID("$NetBSD: getpar.c,v 1.12 2004/01/27 20:30:31 jsm Exp $"); #endif #endif /* not lint */ @@ -44,7 +44,7 @@ __RCSID("$NetBSD: getpar.c,v 1.11 2003/08/07 09:37:51 agc Exp $"); #include "getpar.h" #include "trek.h" -static int testterm __P((void)); +static int testterm(void); /** ** get integer parameter diff --git a/trek/getpar.h b/trek/getpar.h index 23b2bab7..8363697f 100644 --- a/trek/getpar.h +++ b/trek/getpar.h @@ -1,4 +1,4 @@ -/* $NetBSD: getpar.h,v 1.8 2003/11/17 11:16:10 wiz Exp $ */ +/* $NetBSD: getpar.h,v 1.9 2004/01/27 20:30:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -31,7 +31,7 @@ * @(#)getpar.h 8.1 (Berkeley) 5/31/93 */ -typedef void (*cmdfun) __P((int)); +typedef void (*cmdfun)(int); struct cvntab /* used for getcodpar() parameter list */ { const char *abrev; @@ -40,11 +40,11 @@ struct cvntab /* used for getcodpar() parameter list */ int value2; }; -int getintpar __P((const char *)); -double getfltpar __P((const char *)); -int getynpar __P((const char *)); -const struct cvntab *getcodpar __P((const char *, const struct cvntab[])); -void getstrpar __P((const char *, char *, int, const char *)); -int testnl __P((void)); -void skiptonl __P((int)); -int readdelim __P((int)); +int getintpar(const char *); +double getfltpar(const char *); +int getynpar(const char *); +const struct cvntab *getcodpar(const char *, const struct cvntab[]); +void getstrpar(const char *, char *, int, const char *); +int testnl(void); +void skiptonl(int); +int readdelim(int); diff --git a/trek/main.c b/trek/main.c index 6acbbfbc..8bb090d4 100644 --- a/trek/main.c +++ b/trek/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.11 2003/08/07 09:37:52 agc Exp $ */ +/* $NetBSD: main.c,v 1.12 2004/01/27 20:30:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: main.c,v 1.11 2003/08/07 09:37:52 agc Exp $"); +__RCSID("$NetBSD: main.c,v 1.12 2004/01/27 20:30:31 jsm Exp $"); #endif #endif /* not lint */ @@ -157,7 +157,7 @@ uid_t Mother = 51 + (51 << 8); jmp_buf env; -int main __P((int, char **)); +int main(int, char **); int main(argc, argv) diff --git a/trek/torped.c b/trek/torped.c index e270b6dc..893a706a 100644 --- a/trek/torped.c +++ b/trek/torped.c @@ -1,4 +1,4 @@ -/* $NetBSD: torped.c,v 1.7 2003/08/07 09:37:54 agc Exp $ */ +/* $NetBSD: torped.c,v 1.8 2004/01/27 20:30:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)torped.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: torped.c,v 1.7 2003/08/07 09:37:54 agc Exp $"); +__RCSID("$NetBSD: torped.c,v 1.8 2004/01/27 20:30:31 jsm Exp $"); #endif #endif /* not lint */ @@ -63,7 +63,7 @@ __RCSID("$NetBSD: torped.c,v 1.7 2003/08/07 09:37:54 agc Exp $"); ** the misfire damages your torpedo tubes. */ -static int randcourse __P((int)); +static int randcourse(int); /*ARGSUSED*/ void diff --git a/trek/trek.h b/trek/trek.h index 31efa6a2..5a824dc3 100644 --- a/trek/trek.h +++ b/trek/trek.h @@ -1,4 +1,4 @@ -/* $NetBSD: trek.h,v 1.9 2003/08/07 09:37:55 agc Exp $ */ +/* $NetBSD: trek.h,v 1.10 2004/01/27 20:30:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -374,155 +374,155 @@ extern struct Etc_struct Etc; extern int Trace; /* abandon.c */ -void abandon __P((int)); +void abandon(int); /* attack.c */ -void attack __P((int)); +void attack(int); /* autover.c */ -void autover __P((void)); +void autover(void); /* capture.c */ -void capture __P((int)); -struct kling *selectklingon __P((void)); +void capture(int); +struct kling *selectklingon(void); /* cgetc.c */ -char cgetc __P((int)); +char cgetc(int); /* check_out.c */ -int check_out __P((int)); +int check_out(int); /* checkcond.c */ -void checkcond __P((void)); +void checkcond(void); /* compkl.c */ -void compkldist __P((int)); +void compkldist(int); /* computer.c */ -void computer __P((int)); +void computer(int); /* damage.c */ -void damage __P((int, double)); +void damage(int, double); /* damaged.c */ -int damaged __P((int)); +int damaged(int); /* dcrept.c */ -void dcrept __P((int)); +void dcrept(int); /* destruct.c */ -void destruct __P((int)); +void destruct(int); /* dock.c */ -void dock __P((int)); -void undock __P((int)); +void dock(int); +void undock(int); /* dumpgame.c */ -void dumpgame __P((int)); -int restartgame __P((void)); +void dumpgame(int); +int restartgame(void); /* dumpme.c */ -void dumpme __P((int)); +void dumpme(int); /* dumpssradio.c */ -int dumpssradio __P((void)); +int dumpssradio(void); /* events.c */ -int events __P((int)); +int events(int); /* externs.c */ /* getcodi.c */ -int getcodi __P((int *, double *)); +int getcodi(int *, double *); /* help.c */ -void help __P((int)); +void help(int); /* impulse.c */ -void impulse __P((int)); +void impulse(int); /* initquad.c */ -void initquad __P((int)); -void sector __P((int *, int *)); +void initquad(int); +void sector(int *, int *); /* kill.c */ -void killk __P((int, int )); -void killb __P((int, int )); -void kills __P((int, int , int)); -void killd __P((int, int , int)); +void killk(int, int ); +void killb(int, int ); +void kills(int, int , int); +void killd(int, int , int); /* klmove.c */ -void klmove __P((int)); +void klmove(int); /* lose.c */ -void lose __P((int)) __attribute__((__noreturn__)); +void lose(int) __attribute__((__noreturn__)); /* lrscan.c */ -void lrscan __P((int)); +void lrscan(int); /* move.c */ -double move __P((int, int, double, double)); +double move(int, int, double, double); /* nova.c */ -void nova __P((int, int )); +void nova(int, int ); /* out.c */ -void out __P((int)); +void out(int); /* phaser.c */ -void phaser __P((int)); +void phaser(int); /* play.c */ -void myreset __P((int)) __attribute__((__noreturn__)); -void play __P((void)) __attribute__((__noreturn__)); +void myreset(int) __attribute__((__noreturn__)); +void play(void) __attribute__((__noreturn__)); /* ram.c */ -void ram __P((int, int )); +void ram(int, int ); /* ranf.c */ -int ranf __P((int)); -double franf __P((void)); +int ranf(int); +double franf(void); /* rest.c */ -void rest __P((int)); +void rest(int); /* schedule.c */ -struct event *schedule __P((int, double, int, int , int)); -void reschedule __P((struct event *, double)); -void unschedule __P((struct event *)); -struct event *xsched __P((int, int, int, int , int )); -void xresched __P((struct event *, int, int)); +struct event *schedule(int, double, int, int , int); +void reschedule(struct event *, double); +void unschedule(struct event *); +struct event *xsched(int, int, int, int , int ); +void xresched(struct event *, int, int); /* score.c */ -long score __P((void)); +long score(void); /* setup.c */ -void setup __P((void)); +void setup(void); /* setwarp.c */ -void setwarp __P((int)); +void setwarp(int); /* shield.c */ -void shield __P((int)); +void shield(int); /* snova.c */ -void snova __P((int, int )); +void snova(int, int ); /* srscan.c */ -void srscan __P((int)); +void srscan(int); /* systemname.c */ -const char *systemname __P((const struct quad *)); +const char *systemname(const struct quad *); /* torped.c */ -void torped __P((int)); +void torped(int); /* visual.c */ -void visual __P((int)); +void visual(int); /* warp.c */ -void dowarp __P((int)); -void warp __P((int, int, double)); +void dowarp(int); +void warp(int, int, double); /* win.c */ -void win __P((void)) __attribute__((__noreturn__)); +void win(void) __attribute__((__noreturn__)); diff --git a/worm/worm.c b/worm/worm.c index 2bd65d10..f0656c3c 100644 --- a/worm/worm.c +++ b/worm/worm.c @@ -1,4 +1,4 @@ -/* $NetBSD: worm.c,v 1.24 2003/08/07 09:37:56 agc Exp $ */ +/* $NetBSD: worm.c,v 1.25 2004/01/27 20:30:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: worm.c,v 1.24 2003/08/07 09:37:56 agc Exp $"); +__RCSID("$NetBSD: worm.c,v 1.25 2004/01/27 20:30:31 jsm Exp $"); #endif #endif /* not lint */ @@ -80,17 +80,17 @@ int visible_len; int lastch; char outbuf[BUFSIZ]; -void crash __P((void)) __attribute__((__noreturn__)); -void display __P((const struct body *, char)); -int main __P((int, char **)); -void leave __P((int)) __attribute__((__noreturn__)); -void life __P((void)); -void newpos __P((struct body *)); -void process __P((int)); -void prize __P((void)); -int rnd __P((int)); -void setup __P((void)); -void wake __P((int)); +void crash(void) __attribute__((__noreturn__)); +void display(const struct body *, char); +int main(int, char **); +void leave(int) __attribute__((__noreturn__)); +void life(void); +void newpos(struct body *); +void process(int); +void prize(void); +int rnd(int); +void setup(void); +void wake(int); int main(argc, argv) diff --git a/worms/worms.c b/worms/worms.c index dac6fa9c..23c0e178 100644 --- a/worms/worms.c +++ b/worms/worms.c @@ -1,4 +1,4 @@ -/* $NetBSD: worms.c,v 1.12 2003/08/07 09:37:57 agc Exp $ */ +/* $NetBSD: worms.c,v 1.13 2004/01/27 20:30:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: worms.c,v 1.12 2003/08/07 09:37:57 agc Exp $"); +__RCSID("$NetBSD: worms.c,v 1.13 2004/01/27 20:30:31 jsm Exp $"); #endif #endif /* not lint */ @@ -179,9 +179,9 @@ static struct worm { volatile sig_atomic_t sig_caught = 0; -int main __P((int, char **)); -void nomem __P((void)) __attribute__((__noreturn__)); -void onsig __P((int)); +int main(int, char **); +void nomem(void) __attribute__((__noreturn__)); +void onsig(int); int main(argc, argv) diff --git a/wump/wump.c b/wump/wump.c index a3d7a1a4..6cdd0bf0 100644 --- a/wump/wump.c +++ b/wump/wump.c @@ -1,4 +1,4 @@ -/* $NetBSD: wump.c,v 1.15 2003/08/07 09:37:57 agc Exp $ */ +/* $NetBSD: wump.c,v 1.16 2004/01/27 20:30:31 jsm Exp $ */ /* * Copyright (c) 1989, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)wump.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: wump.c,v 1.15 2003/08/07 09:37:57 agc Exp $"); +__RCSID("$NetBSD: wump.c,v 1.16 2004/01/27 20:30:31 jsm Exp $"); #endif #endif /* not lint */ @@ -112,30 +112,30 @@ int arrow_num = NUMBER_OF_ARROWS; /* arrow inventory */ char answer[20]; /* user input */ -int bats_nearby __P((void)); -void cave_init __P((void)); -void clear_things_in_cave __P((void)); -void display_room_stats __P((void)); -int gcd __P((int, int)); -int getans __P((const char *)); -void initialize_things_in_cave __P((void)); -void instructions __P((void)); -int int_compare __P((const void *, const void *)); -void jump __P((int)); -void kill_wump __P((void)); -int main __P((int, char **)); -int move_to __P((const char *)); -void move_wump __P((void)); -void no_arrows __P((void)); -void pit_kill __P((void)); -int pit_nearby __P((void)); -void pit_survive __P((void)); -int shoot __P((char *)); -void shoot_self __P((void)); -int take_action __P((void)); -void usage __P((void)) __attribute__((__noreturn__)); -void wump_kill __P((void)); -int wump_nearby __P((void)); +int bats_nearby(void); +void cave_init(void); +void clear_things_in_cave(void); +void display_room_stats(void); +int gcd(int, int); +int getans(const char *); +void initialize_things_in_cave(void); +void instructions(void); +int int_compare(const void *, const void *); +void jump(int); +void kill_wump(void); +int main(int, char **); +int move_to(const char *); +void move_wump(void); +void no_arrows(void); +void pit_kill(void); +int pit_nearby(void); +void pit_survive(void); +int shoot(char *); +void shoot_self(void); +int take_action(void); +void usage(void) __attribute__((__noreturn__)); +void wump_kill(void); +int wump_nearby(void); int main(argc, argv) |