Advanced Rogue 5: convert to ANSI function declarations.

This still leaves over a thousand lines of warning messages, mostly
related to the return types of daemons and fuses.
This commit is contained in:
John "Elwin" Edwards 2016-02-07 14:39:21 -05:00
parent 59f448e92e
commit f38b2223c8
37 changed files with 977 additions and 733 deletions

View file

@ -11,7 +11,8 @@
#include "curses.h"
#include "rogue.h"
extern char rnd_terrain(), get_terrain();
char rnd_terrain(void);
char get_terrain(char one, char two, char three, char four);
/*
* init_terrain:
@ -19,7 +20,7 @@ extern char rnd_terrain(), get_terrain();
*/
void
init_terrain()
init_terrain(void)
{
register struct room *rp;
@ -38,11 +39,9 @@ init_terrain()
void
do_terrain(basey, basex, deltay, deltax, fresh)
int basey, basex, deltay, deltax;
bool fresh;
do_terrain(int basey, int basex, int deltay, int deltax, bool fresh)
{
register cury, curx; /* Current y and x positions */
int cury, curx; /* Current y and x positions */
/* Lay out the boundary */
for (cury=1; cury<LINES-2; cury++) { /* Vertical "walls" */
@ -125,7 +124,7 @@ bool fresh;
*/
char
rnd_terrain()
rnd_terrain(void)
{
int chance = rnd(100);
@ -149,8 +148,7 @@ rnd_terrain()
*/
char
get_terrain(one, two, three, four)
char one, two, three, four;
get_terrain(char one, char two, char three, char four)
{
register int i;
int forest = 0, mountain = 0, lake = 0, meadow = 0, total = 0;
@ -203,8 +201,7 @@ char one, two, three, four;
*/
void
lake_check(place)
coord *place;
lake_check(coord *place)
{
NOOP(place);
}