switch source tree from k&r to c99

This commit is contained in:
nhmall
2021-01-26 21:06:16 -05:00
parent a2a9cb7b4f
commit f963c5aca7
232 changed files with 12099 additions and 17782 deletions

View File

@@ -9,7 +9,7 @@
/* take away the hero's money */
void
take_gold()
take_gold(void)
{
struct obj *otmp, *nobj;
int lost_money = 0;
@@ -32,7 +32,7 @@ take_gold()
/* #sit command */
int
dosit()
dosit(void)
{
static const char sit_message[] = "sit on the %s.";
register struct trap *trap = t_at(u.ux, u.uy);
@@ -331,7 +331,7 @@ dosit()
/* curse a few inventory items at random! */
void
rndcurse()
rndcurse(void)
{
int nobj = 0;
int cnt, onum;
@@ -401,7 +401,7 @@ rndcurse()
/* remove a random INTRINSIC ability */
void
attrcurse()
attrcurse(void)
{
switch (rnd(11)) {
case 1: