Advanced Rogue 7: convert to ANSI-style function declarations.
Almost 1500 lines of compiler warnings remain, and the GCC developers are already working on a new version with even more warnings turned on by default.
This commit is contained in:
parent
f38b2223c8
commit
e8e6e604c3
39 changed files with 1181 additions and 889 deletions
|
|
@ -117,10 +117,8 @@ static bool used[MAX3(NCOLORS, NSTONES, NWOOD)];
|
|||
* make sure all the percentages specified in the tables add up to the
|
||||
* right amounts
|
||||
*/
|
||||
badcheck(name, magic, bound)
|
||||
char *name;
|
||||
register struct magic_item *magic;
|
||||
register int bound;
|
||||
void
|
||||
badcheck(char *name, struct magic_item *magic, int bound)
|
||||
{
|
||||
register struct magic_item *end;
|
||||
|
||||
|
|
@ -140,7 +138,8 @@ register int bound;
|
|||
* Initialize the potion color scheme for this time
|
||||
*/
|
||||
|
||||
init_colors()
|
||||
void
|
||||
init_colors(void)
|
||||
{
|
||||
register int i, j;
|
||||
|
||||
|
|
@ -166,7 +165,8 @@ init_colors()
|
|||
* do any initialization for food
|
||||
*/
|
||||
|
||||
init_foods()
|
||||
void
|
||||
init_foods(void)
|
||||
{
|
||||
register int i;
|
||||
|
||||
|
|
@ -182,7 +182,8 @@ init_foods()
|
|||
* Initialize the construction materials for wands and staffs
|
||||
*/
|
||||
|
||||
init_materials()
|
||||
void
|
||||
init_materials(void)
|
||||
{
|
||||
register int i, j;
|
||||
register char *str;
|
||||
|
|
@ -232,7 +233,8 @@ init_materials()
|
|||
* do any initialization for miscellaneous magic
|
||||
*/
|
||||
|
||||
init_misc()
|
||||
void
|
||||
init_misc(void)
|
||||
{
|
||||
register int i;
|
||||
|
||||
|
|
@ -250,7 +252,8 @@ init_misc()
|
|||
* Generate the names of the various scrolls
|
||||
*/
|
||||
|
||||
init_names()
|
||||
void
|
||||
init_names(void)
|
||||
{
|
||||
register int nsyl;
|
||||
register char *cp, *sp;
|
||||
|
|
@ -287,7 +290,8 @@ init_names()
|
|||
* roll up the rogue
|
||||
*/
|
||||
|
||||
init_player()
|
||||
void
|
||||
init_player(void)
|
||||
{
|
||||
int stat_total, round, minimum, maximum, ch, i, j;
|
||||
short do_escape, *our_stats[NUMABILITIES-1];
|
||||
|
|
@ -587,7 +591,8 @@ init_player()
|
|||
* Initialize the ring stone setting scheme for this time
|
||||
*/
|
||||
|
||||
init_stones()
|
||||
void
|
||||
init_stones(void)
|
||||
{
|
||||
register int i, j;
|
||||
|
||||
|
|
@ -613,7 +618,8 @@ init_stones()
|
|||
* init_things
|
||||
* Initialize the probabilities for types of things
|
||||
*/
|
||||
init_things()
|
||||
void
|
||||
init_things(void)
|
||||
{
|
||||
register struct magic_item *mp;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue