diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-16 21:28:12 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-16 21:28:12 +0000 |
commit | 6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch) | |
tree | ee423c619fad03813234b9362694a17f3a638f0b /games/larn | |
parent | c707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff) |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'games/larn')
-rw-r--r-- | games/larn/create.c | 6 | ||||
-rw-r--r-- | games/larn/display.c | 6 | ||||
-rw-r--r-- | games/larn/extern.h | 478 | ||||
-rw-r--r-- | games/larn/monster.c | 6 | ||||
-rw-r--r-- | games/larn/moreobj.c | 8 | ||||
-rw-r--r-- | games/larn/signal.c | 14 | ||||
-rw-r--r-- | games/larn/store.c | 16 |
7 files changed, 267 insertions, 267 deletions
diff --git a/games/larn/create.c b/games/larn/create.c index 2ec0c2e94dc..374a69efe4a 100644 --- a/games/larn/create.c +++ b/games/larn/create.c @@ -1,16 +1,16 @@ -/* $OpenBSD: create.c,v 1.4 1998/09/15 05:12:31 pjanzen Exp $ */ +/* $OpenBSD: create.c,v 1.5 2002/02/16 21:27:10 millert Exp $ */ /* $NetBSD: create.c,v 1.6 1997/10/18 20:03:09 christos Exp $ */ /* create.c Larn is copyrighted 1986 by Noah Morgan. */ #ifndef lint -static char rcsid[] = "$OpenBSD: create.c,v 1.4 1998/09/15 05:12:31 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: create.c,v 1.5 2002/02/16 21:27:10 millert 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/games/larn/display.c b/games/larn/display.c index cd2da384683..471888dbdf1 100644 --- a/games/larn/display.c +++ b/games/larn/display.c @@ -1,16 +1,16 @@ -/* $OpenBSD: display.c,v 1.2 1998/09/15 05:12:31 pjanzen Exp $ */ +/* $OpenBSD: display.c,v 1.3 2002/02/16 21:27:10 millert Exp $ */ /* $NetBSD: display.c,v 1.4 1997/10/18 20:03:15 christos Exp $ */ /* display.c Larn is copyrighted 1986 by Noah Morgan. */ #ifndef lint -static char rcsid[] = "$OpenBSD: display.c,v 1.2 1998/09/15 05:12:31 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: display.c,v 1.3 2002/02/16 21:27:10 millert 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/games/larn/extern.h b/games/larn/extern.h index f34aba76774..6c2edea50fa 100644 --- a/games/larn/extern.h +++ b/games/larn/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.1 1998/09/15 05:12:31 pjanzen Exp $ */ +/* $OpenBSD: extern.h,v 1.2 2002/02/16 21:27:10 millert Exp $ */ /* $NetBSD: extern.h,v 1.1 1997/10/18 20:03:17 christos Exp $ */ /* @@ -31,283 +31,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 lstandout __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 lbeep __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 lstandout(char *); +void set_score_output(void); +void lflush(void); +int xputchar(int); +void flush_buf(void); +char *tmcapcnv(char *, char *); +void lbeep(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/games/larn/monster.c b/games/larn/monster.c index 65dc04589a5..da2af0dc06a 100644 --- a/games/larn/monster.c +++ b/games/larn/monster.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monster.c,v 1.4 1999/05/30 02:23:16 pjanzen Exp $ */ +/* $OpenBSD: monster.c,v 1.5 2002/02/16 21:27:10 millert Exp $ */ /* $NetBSD: monster.c,v 1.5 1997/10/18 20:03:29 christos Exp $ */ /* @@ -100,7 +100,7 @@ * */ #ifndef lint -static char rcsid[] = "$OpenBSD: monster.c,v 1.4 1999/05/30 02:23:16 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: monster.c,v 1.5 2002/02/16 21:27:10 millert Exp $"; #endif /* not lint */ #include <ctype.h> @@ -115,7 +115,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/games/larn/moreobj.c b/games/larn/moreobj.c index edc283d11a6..d399e7d4fbb 100644 --- a/games/larn/moreobj.c +++ b/games/larn/moreobj.c @@ -1,4 +1,4 @@ -/* $OpenBSD: moreobj.c,v 1.3 1998/09/15 05:12:32 pjanzen Exp $ */ +/* $OpenBSD: moreobj.c,v 1.4 2002/02/16 21:27:10 millert Exp $ */ /* $NetBSD: moreobj.c,v 1.4 1997/10/18 20:03:32 christos Exp $ */ /* @@ -9,7 +9,7 @@ * oaltar() othrone() ochest() ofountain() */ #ifndef lint -static char rcsid[] = "$OpenBSD: moreobj.c,v 1.3 1998/09/15 05:12:32 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: moreobj.c,v 1.4 2002/02/16 21:27:10 millert Exp $"; #endif /* not lint */ #include <stdio.h> @@ -18,8 +18,8 @@ static char rcsid[] = "$OpenBSD: moreobj.c,v 1.3 1998/09/15 05:12:32 pjanzen Exp #include "header.h" #include "extern.h" -static void ohear __P((int)); -static void fch __P((int, long *)); +static void ohear(int); +static void fch(int, long *); /* * ****** diff --git a/games/larn/signal.c b/games/larn/signal.c index cf1cc7ddc59..ba05e2cbb62 100644 --- a/games/larn/signal.c +++ b/games/larn/signal.c @@ -1,10 +1,10 @@ -/* $OpenBSD: signal.c,v 1.4 2001/09/04 23:35:57 millert Exp $ */ +/* $OpenBSD: signal.c,v 1.5 2002/02/16 21:27:10 millert Exp $ */ /* $NetBSD: signal.c,v 1.6 1997/10/18 20:03:50 christos Exp $ */ /* "Larn is copyrighted 1986 by Noah Morgan.\n" */ #ifndef lint -static char rcsid[] = "$OpenBSD: signal.c,v 1.4 2001/09/04 23:35:57 millert Exp $"; +static char rcsid[] = "$OpenBSD: signal.c,v 1.5 2002/02/16 21:27:10 millert Exp $"; #endif /* not lint */ #include <stdio.h> @@ -14,11 +14,11 @@ static char rcsid[] = "$OpenBSD: signal.c,v 1.4 2001/09/04 23:35:57 millert 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); static void s2choose() diff --git a/games/larn/store.c b/games/larn/store.c index 57b36797a6d..a9fb06d23ea 100644 --- a/games/larn/store.c +++ b/games/larn/store.c @@ -1,4 +1,4 @@ -/* $OpenBSD: store.c,v 1.4 1998/09/15 05:12:33 pjanzen Exp $ */ +/* $OpenBSD: store.c,v 1.5 2002/02/16 21:27:10 millert Exp $ */ /* $NetBSD: store.c,v 1.6 1997/10/18 20:03:52 christos Exp $ */ /*- @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)store.c 5.4 (Berkeley) 5/13/91"; #else -static char rcsid[] = "$OpenBSD: store.c,v 1.4 1998/09/15 05:12:33 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: store.c,v 1.5 2002/02/16 21:27:10 millert Exp $"; #endif #endif /* not lint */ @@ -47,12 +47,12 @@ static char rcsid[] = "$OpenBSD: store.c,v 1.4 1998/09/15 05:12:33 pjanzen 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; |